initial commit
[gconf-editor] / src / gconf-util.h
1 /* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
2 /*
3  * Copyright (C) 2001, 2002 Anders Carlsson <andersca@gnu.org>
4  *
5  * This program is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU General Public License as
7  * published by the Free Software Foundation; either version 2 of the
8  * License, or (at your option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13  * General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this program; if not, write to the Free Software
17  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
18  */
19
20 #ifndef __GCONF_UTIL_H__
21 #define __GCONF_UTIL_H__
22
23 #include <glib.h>
24 #include <glib-object.h>
25
26 #include <gconf/gconf.h>
27 #include <gconf/gconf-client.h>
28
29 #define GCONF_TYPE_VALUE (gconf_value_get_type ())
30
31 GType gconf_value_get_type (void);
32 gchar *gconf_get_key_name_from_path (const gchar *path);
33 gchar *gconf_value_type_to_string (GConfValueType value_type);
34 GConfSchema *gconf_client_get_schema_for_key (GConfClient *client, const char *key);
35 gboolean gconf_util_can_edit_defaults (void);
36 gboolean gconf_util_can_edit_mandatory (void);
37
38 #endif /* __GCONF_UTIL_H__ */