2
* Copyright (C) 1999, 2000 Red Hat Inc.
4
* This library is free software; you can redistribute it and/or
5
* modify it under the terms of the GNU Library General Public
6
* License as published by the Free Software Foundation; either
7
* version 2 of the License, or (at your option) any later version.
9
* This library is distributed in the hope that it will be useful,
10
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12
* Library General Public License for more details.
14
* You should have received a copy of the GNU Library General Public
15
* License along with this library; if not, write to the
16
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
17
* Boston, MA 02111-1307, USA.
20
#ifndef GCONF_XML_ENTRY_H
21
#define GCONF_XML_ENTRY_H
23
#include <gconf/gconf.h>
24
#include <gnome-xml/tree.h>
26
/* Entry stores all the information about a given key */
28
typedef struct _Entry Entry;
29
Entry* entry_new (const gchar *relative_name);
30
void entry_destroy (Entry *entry);
31
const gchar* entry_get_name (Entry *entry);
35
/* no set_name, you can't change an entry's name */
36
void entry_set_node (Entry *entry,
38
xmlNodePtr entry_get_node (Entry *entry);
39
void entry_fill_from_node (Entry *entry);
40
void entry_sync_to_node (Entry *entry);
41
GConfValue* entry_get_value (Entry *entry,
42
const gchar **locales,
44
void entry_set_value (Entry *entry,
46
gboolean entry_unset_value (Entry *entry,
48
GConfMetaInfo* entry_get_metainfo (Entry *entry);
49
void entry_set_mod_time (Entry *entry,
51
void entry_set_mod_user (Entry *e,
53
const gchar* entry_get_schema_name (Entry *e);
54
void entry_set_schema_name (Entry *e,
58
void my_xmlSetProp(xmlNodePtr node,
62
char* my_xmlGetProp(xmlNodePtr node,