Lumiera  0.pre.03
»edit your freedom«
configentry.c
Go to the documentation of this file.
1 /*
2  Configentry - single entries from configfiles
3 
4  Copyright (C)
5  2008, Christian Thaeter <ct@pipapo.org>
6 
7   **Lumiera** is free software; you can redistribute it and/or modify it
8   under the terms of the GNU General Public License as published by the
9   Free Software Foundation; either version 2 of the License, or (at your
10   option) any later version. See the file COPYING for further details.
11 
12 * *****************************************************************/
13 
14 
22 #include "lib/safeclib.h"
23 #include "common/configentry.h"
24 
25 
26 
27 LumieraConfigitem
28 lumiera_configentry_new (LumieraConfigitem tmp)
29 {
30  LumieraConfigentry self = lumiera_malloc (sizeof (*self));
31  lumiera_configitem_move ((LumieraConfigitem)self, tmp);
32 
34 
35  return (LumieraConfigitem)self;
36 }
37 
38 
39 LumieraConfigitem
40 lumiera_configentry_destroy (LumieraConfigitem self)
41 {
43 
44  return self;
45 }
46 
47 struct lumiera_configitem_vtable lumiera_configentry_funcs =
48  {
49  .newitem = lumiera_configentry_new,
50  .destroy = lumiera_configentry_destroy
51  };
52 
53 
54 
Portable and safe wrappers around some C-Lib functions.
Draft for a configuration system (2008).
void * lumiera_malloc(size_t size)
Allocate memory.
Definition: safeclib.c:113