diff --git a/sefht.geany b/sefht.geany index 7f08fc451cc6a283db9e3e12a80fdf551b2e93cf..9301b8640fa9e913662b9e6d4e329434340f87d2 100644 --- a/sefht.geany +++ b/sefht.geany @@ -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 diff --git a/src/Makefile.am b/src/Makefile.am index d2b854044a4a4ce5da025721f046c602a7e6dcd2..d13e2dd42fab3ee87d4dbeecd380f71cf7a364e0 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -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 diff --git a/src/cms.c b/src/cms.c new file mode 100644 index 0000000000000000000000000000000000000000..805cb12efb14e392fbf484f86211939f40a0eb8a --- /dev/null +++ b/src/cms.c @@ -0,0 +1,50 @@ +/* + * 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; +} + diff --git a/src/cms.h b/src/cms.h new file mode 100644 index 0000000000000000000000000000000000000000..6f6e97aa8f398ddf986909763a2fd39b6cdeb9fc --- /dev/null +++ b/src/cms.h @@ -0,0 +1,35 @@ +/* + * 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 */ diff --git a/src/macro.h b/src/macro.h new file mode 100644 index 0000000000000000000000000000000000000000..c86b70297b432a7a71518e73dd79e610085d0923 --- /dev/null +++ b/src/macro.h @@ -0,0 +1,33 @@ +/* + * 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 */ diff --git a/src/main.c b/src/main.c index 60e080b81fcaf1ea945138feb336dd6c9f46d991..68e5091019c85fddef96ecc0a667747f7e3282ab 100644 --- a/src/main.c +++ b/src/main.c @@ -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; }