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

added Fragment

Fragment is the core of SeFHT. (As the name suggests) It represents a
Node inside the DOM and all subsequent Nodes (a Tree).
parent 4b178d2f
No related branches found
No related tags found
No related merge requests found
...@@ -10,3 +10,4 @@ sefht_fcgi_SOURCES += macro.h ...@@ -10,3 +10,4 @@ sefht_fcgi_SOURCES += macro.h
sefht_fcgi_SOURCES += sefht.h sefht_fcgi_SOURCES += sefht.h
sefht_fcgi_SOURCES += cms.c cms.h sefht_fcgi_SOURCES += cms.c cms.h
sefht_fcgi_SOURCES += data.c data.h sefht_fcgi_SOURCES += data.c data.h
sefht_fcgi_SOURCES += fragment.c fragment.h
/*
* 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;
}
/*
* 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 */
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