forked from nemomobile/mce
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mce-gconf.h
44 lines (39 loc) · 1.68 KB
/
mce-gconf.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
/**
* @file mce-gconf.h
* Headers for the GConf handling code for the Mode Control Entity
* <p>
* Copyright © 2004-2007 Nokia Corporation and/or its subsidiary(-ies).
* <p>
* @author David Weinehall <[email protected]>
*
* mce is free software; you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License
* version 2.1 as published by the Free Software Foundation.
*
* mce 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
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with mce. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef _MCE_GCONF_H_
#define _MCE_GCONF_H_
#include <glib.h> /* gboolean, gpointer,
* gchar, guint, gint
*/
#include <gconf/gconf-client.h> /* GConfClientNotifyFunc */
gboolean mce_gconf_set_int(const gchar *const key, const gint value);
gboolean mce_gconf_get_bool(const gchar *const key, gboolean *value);
gboolean mce_gconf_get_int(const gchar *const key, gint *value);
gboolean mce_gconf_get_int_list(const gchar *const key, GSList **values);
gboolean mce_gconf_get_string(const gchar *const key, gchar **value);
gboolean mce_gconf_set_string(const gchar *const key, const gchar *const value);
gboolean mce_gconf_notifier_add(const gchar *path, const gchar *key,
const GConfClientNotifyFunc callback,
guint *cb_id);
void mce_gconf_notifier_remove(gpointer cb_id, gpointer user_data);
gboolean mce_gconf_init(void);
void mce_gconf_exit(void);
#endif /* _MCE_GCONF_H_ */