Skip to content
Snippets Groups Projects
Commit 1ec675ad authored by Jonathan Schöbel's avatar Jonathan Schöbel
Browse files

added cms

cms will be the base "object", that performs all neccessary actions.
parent d939fbdd
No related branches found
No related tags found
No related merge requests found
......@@ -29,7 +29,11 @@ long_line_column=72
[files]
current_page=0
FILE_NAME_0=865;C;0;EUTF-8;1;1;0;%2Fhome%2Fjonathan%2FDokumente%2Fprojekte%2Fprgm%2Finternet%2Fweb%2FSeFHT%2Fsrc%2Fmain.c;0;8
FILE_NAME_0=935;C;0;EUTF-8;1;1;0;%2Fhome%2Fjonathan%2FDokumente%2Fprojekte%2Fprgm%2Finternet%2Fweb%2FSeFHT%2Fsrc%2Fmain.c;0;8
FILE_NAME_1=974;C;0;EUTF-8;1;1;0;%2Fhome%2Fjonathan%2FDokumente%2Fprojekte%2Fprgm%2Finternet%2Fweb%2FSeFHT%2Fsrc%2Fcms.c;0;8
FILE_NAME_2=594;C;0;EUTF-8;1;1;0;%2Fhome%2Fjonathan%2FDokumente%2Fprojekte%2Fprgm%2Finternet%2Fweb%2FSeFHT%2Fsrc%2Fcms.h;0;8
FILE_NAME_3=903;C;0;EUTF-8;1;1;0;%2Fhome%2Fjonathan%2FDokumente%2Fprojekte%2Fprgm%2Finternet%2Fweb%2FSeFHT%2Fsrc%2Fmacro.h;0;8
FILE_NAME_4=226;Make;0;EUTF-8;1;1;0;%2Fhome%2Fjonathan%2FDokumente%2Fprojekte%2Fprgm%2Finternet%2Fweb%2FSeFHT%2Fsrc%2FMakefile.am;0;8
[VTE]
last_dir=/home/jonathan/Dokumente/projekte/prgm/internet/web/SeFHT/src
......
......@@ -6,3 +6,5 @@ bin_PROGRAMS = sefht.fcgi
sefht_fcgi_SOURCES =
sefht_fcgi_SOURCES += main.c
sefht_fcgi_SOURCES += macro.h
sefht_fcgi_SOURCES += cms.c cms.h
/*
* cms.c
*
* Copyright 2022 Jonathan Schöbel <jonathan@Ubermos-2019>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
* MA 02110-1301, USA.
*
*
*/
#include <stdlib.h>
#include "macro.h"
#include "cms.h"
struct SH_Cms *
SH_Cms_new ()
{
struct SH_Cms * cms;
cms = malloc (sizeof (struct SH_Cms));
if (cms == NULL) {
EXIT;
}
return cms;
}
void
SH_Cms_free (struct SH_Cms * cms)
{
free (cms);
return;
}
/*
* cms.h
*
* Copyright 2022 Jonathan Schöbel <jonathan@Ubermos-2019>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
* MA 02110-1301, USA.
*
*
*/
#ifndef _CMS_H
#define _CMS_H
struct SH_Cms
{
//
};
struct SH_Cms * SH_Cms_new ();
void SH_Cms_free (struct SH_Cms * cms);
#endif /* _CMS_H */
/*
* macro.h
*
* Copyright 2022 Jonathan Schöbel <jonathan@Ubermos-2019>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
* MA 02110-1301, USA.
*
*
*/
#ifndef _MACRO_H
#define _MACRO_H
#include <stdlib.h>
#define EXIT exit (EXIT_FAILURE)
#endif /* _MACRO_H */
......@@ -23,9 +23,18 @@
#include <stdio.h>
#include "cms.h"
int main(int argc, char **argv)
{
/* startup */
struct SH_Cms * cms = SH_Cms_new ();
/* startup */
/* shutdown */
SH_Cms_free (cms);
/* shutdown */
return 0;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment