diff --git a/src/Makefile.am b/src/Makefile.am index 0704e760620feb6f3cd3900ea47a4cc81a275b7f..054cec1480a225f9e8391754e279acc22a9fa71e 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -10,3 +10,4 @@ sefht_fcgi_SOURCES += macro.h sefht_fcgi_SOURCES += sefht.h sefht_fcgi_SOURCES += cms.c cms.h sefht_fcgi_SOURCES += data.c data.h +sefht_fcgi_SOURCES += fragment.c fragment.h diff --git a/src/fragment.c b/src/fragment.c new file mode 100644 index 0000000000000000000000000000000000000000..837cf5648b0b198497b1d81701cc820911130c63 --- /dev/null +++ b/src/fragment.c @@ -0,0 +1,50 @@ +/* + * fragment.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 "fragment.h" + + +struct SH_Fragment * +SH_Fragment_new () +{ + struct SH_Fragment * fragment; + fragment = malloc (sizeof (struct SH_Fragment)); + + if (fragment == NULL) { + EXIT; + } + + return fragment; +} + +void +SH_Fragment_free (struct SH_Fragment * fragment) +{ + free (fragment); + return; +} diff --git a/src/fragment.h b/src/fragment.h new file mode 100644 index 0000000000000000000000000000000000000000..68066f0a6a62adc56c3a2b26ba4f47b988269182 --- /dev/null +++ b/src/fragment.h @@ -0,0 +1,37 @@ +/* + * fragment.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 _FRAGMENT_H +#define _FRAGMENT_H + + +struct SH_Fragment +{ + // +}; + +struct SH_Fragment * SH_Fragment_new (); +void SH_Fragment_free (struct SH_Fragment * fragment); + +#endif /* _FRAGMENT_H */