2008-08-10 19:38:31 +02:00
|
|
|
/*
|
2014-10-15 23:08:53 +02:00
|
|
|
Configentry - single entries from configfiles
|
2008-08-10 19:38:31 +02:00
|
|
|
|
|
|
|
|
Copyright (C) Lumiera.org
|
|
|
|
|
2008, Christian Thaeter <ct@pipapo.org>
|
|
|
|
|
|
|
|
|
|
This program is free software; you can redistribute it and/or
|
|
|
|
|
modify it under the terms of the GNU General Public License as
|
2010-12-17 23:28:49 +01:00
|
|
|
published by the Free Software Foundation; either version 2 of
|
|
|
|
|
the License, or (at your option) any later version.
|
2008-08-10 19:38:31 +02:00
|
|
|
|
|
|
|
|
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., 675 Mass Ave, Cambridge, MA 02139, USA.
|
|
|
|
|
|
2014-10-15 23:08:53 +02:00
|
|
|
* *****************************************************/
|
2008-08-10 19:38:31 +02:00
|
|
|
|
|
|
|
|
|
2014-10-15 23:08:53 +02:00
|
|
|
#include "lib/safeclib.h"
|
|
|
|
|
#include "common/configentry.h"
|
2008-08-10 19:38:31 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
LumieraConfigitem
|
|
|
|
|
lumiera_configentry_new (LumieraConfigitem tmp)
|
|
|
|
|
{
|
|
|
|
|
LumieraConfigentry self = lumiera_malloc (sizeof (*self));
|
|
|
|
|
lumiera_configitem_move ((LumieraConfigitem)self, tmp);
|
|
|
|
|
|
2011-09-25 19:10:57 +02:00
|
|
|
//////////////////////////////////////////////////////////////////TICKET #839 initialise other stuff here (lookup, parent, ...)
|
2008-08-10 19:38:31 +02:00
|
|
|
|
|
|
|
|
return (LumieraConfigitem)self;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
LumieraConfigitem
|
|
|
|
|
lumiera_configentry_destroy (LumieraConfigitem self)
|
|
|
|
|
{
|
2011-09-25 19:10:57 +02:00
|
|
|
//////////////////////////////////////////////////////////////////TICKET #839 cleanup other stuff here (lookup, parent, ...)
|
2008-08-10 19:38:31 +02:00
|
|
|
|
|
|
|
|
return self;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
struct lumiera_configitem_vtable lumiera_configentry_funcs =
|
|
|
|
|
{
|
2011-02-06 02:39:34 +01:00
|
|
|
.newitem = lumiera_configentry_new,
|
2008-08-10 19:38:31 +02:00
|
|
|
.destroy = lumiera_configentry_destroy
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|