Lumiera  0.pre.03
»edityourfreedom«
configentry.c
Go to the documentation of this file.
1 /*
2  Configentry - single entries from configfiles
3 
4  Copyright (C) Lumiera.org
5  2008, Christian Thaeter <ct@pipapo.org>
6 
7  This program is free software; you can redistribute it and/or
8  modify it under the terms of the GNU General Public License as
9  published by the Free Software Foundation; either version 2 of
10  the License, or (at your option) any later version.
11 
12  This program is distributed in the hope that it will be useful,
13  but WITHOUT ANY WARRANTY; without even the implied warranty of
14  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  GNU General Public License for more details.
16 
17  You should have received a copy of the GNU General Public License
18  along with this program; if not, write to the Free Software
19  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
20 
21 * *****************************************************/
22 
23 
31 #include "lib/safeclib.h"
32 #include "common/configentry.h"
33 
34 
35 
38 {
39  LumieraConfigentry self = lumiera_malloc (sizeof (*self));
41 
43 
44  return (LumieraConfigitem)self;
45 }
46 
47 
50 {
52 
53  return self;
54 }
55 
57  {
60  };
61 
62 
63 
LumieraConfigitem lumiera_configitem_move(LumieraConfigitem self, LumieraConfigitem source)
Definition: configitem.c:144
Portable and safe wrappers around some C-Lib functions.
struct lumiera_configitem_vtable lumiera_configentry_funcs
Definition: configentry.c:56
Draft for a configuration system (2008).
lumiera_configitem * LumieraConfigitem
Definition: configitem.h:62
LumieraConfigitem lumiera_configentry_new(LumieraConfigitem tmp)
Definition: configentry.c:37
lumiera_configentry * LumieraConfigentry
Definition: configentry.h:41
void * lumiera_malloc(size_t size)
Allocate memory.
Definition: safeclib.c:67
LumieraConfigitem(* newitem)(LumieraConfigitem)
Definition: configitem.h:74
LumieraConfigitem lumiera_configentry_destroy(LumieraConfigitem self)
Definition: configentry.c:49