~ubuntu-branches/ubuntu/oneiric/rhythmbox/oneiric

« back to all changes in this revision

Viewing changes to lib/eel-gconf-extensions.h

  • Committer: Bazaar Package Importer
  • Author(s): Rico Tzschichholz
  • Date: 2011-07-29 16:41:38 UTC
  • mto: This revision was merged to the branch mainline in revision 191.
  • Revision ID: james.westby@ubuntu.com-20110729164138-wwicy8nqalm18ck7
Tags: upstream-2.90.1~20110802
ImportĀ upstreamĀ versionĀ 2.90.1~20110802

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
2
 
 
3
 
/*
4
 
   Copyright (C) 2000, 2001 Eazel, Inc.
5
 
 
6
 
   The Gnome Library is free software; you can redistribute it and/or
7
 
   modify it under the terms of the GNU Library General Public License as
8
 
   published by the Free Software Foundation; either version 2 of the
9
 
   License, or (at your option) any later version.
10
 
 
11
 
   The Gnome Library is distributed in the hope that it will be useful,
12
 
   but WITHOUT ANY WARRANTY; without even the implied warranty of
13
 
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14
 
   Library General Public License for more details.
15
 
 
16
 
   You should have received a copy of the GNU Library General Public
17
 
   License along with the Gnome Library; see the file COPYING.LIB.  If not,
18
 
   write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
19
 
   Boston, MA 02110-1301  USA.
20
 
 
21
 
   Authors: Ramiro Estrugo <ramiro@eazel.com>
22
 
*/
23
 
 
24
 
#ifndef EEL_GCONF_EXTENSIONS_H
25
 
#define EEL_GCONF_EXTENSIONS_H
26
 
 
27
 
#include <glib.h>
28
 
#include <gconf/gconf.h>
29
 
#include <gconf/gconf-client.h>
30
 
 
31
 
#ifdef __cplusplus
32
 
extern "C" {
33
 
#endif
34
 
 
35
 
#define EEL_GCONF_UNDEFINED_CONNECTION 0
36
 
 
37
 
GConfClient *eel_gconf_client_get_global   (void);
38
 
gboolean     eel_gconf_handle_error        (GError                **error);
39
 
void         eel_gconf_set_boolean         (const char             *key,
40
 
                                            gboolean                boolean_value);
41
 
gboolean     eel_gconf_get_boolean         (const char             *key);
42
 
int          eel_gconf_get_integer         (const char             *key);
43
 
void         eel_gconf_set_integer         (const char             *key,
44
 
                                            int                     int_value);
45
 
gfloat       eel_gconf_get_float           (const char             *key);
46
 
void         eel_gconf_set_float           (const char             *key,
47
 
                                            gfloat                 float_value);
48
 
char *       eel_gconf_get_string          (const char             *key);
49
 
void         eel_gconf_set_string          (const char             *key,
50
 
                                            const char             *string_value);
51
 
GSList *     eel_gconf_get_string_list     (const char             *key);
52
 
void         eel_gconf_set_string_list     (const char             *key,
53
 
                                            const GSList           *string_list_value);
54
 
gboolean     eel_gconf_is_default          (const char             *key);
55
 
gboolean     eel_gconf_monitor_add         (const char             *directory);
56
 
gboolean     eel_gconf_monitor_remove      (const char             *directory);
57
 
void         eel_gconf_suggest_sync        (void);
58
 
GConfValue*  eel_gconf_get_value           (const char             *key);
59
 
gboolean     eel_gconf_value_is_equal      (const GConfValue       *a,
60
 
                                            const GConfValue       *b);
61
 
void         eel_gconf_set_value           (const char *key, GConfValue *value);
62
 
void         eel_gconf_value_free          (GConfValue             *value);
63
 
 
64
 
GSList      *eel_gconf_get_integer_list    (const char *key);
65
 
void         eel_gconf_set_integer_list    (const char *key,
66
 
                                            const GSList *slist);
67
 
 
68
 
guint        eel_gconf_notification_add    (const char *key,
69
 
                                            GConfClientNotifyFunc notification_callback,
70
 
                                            gpointer callback_data);
71
 
void         eel_gconf_notification_remove (guint notification_id);
72
 
 
73
 
void         eel_gconf_unset               (const char *key);
74
 
 
75
 
#ifdef __cplusplus
76
 
}
77
 
#endif
78
 
 
79
 
#endif /* EEL_GCONF_EXTENSIONS_H */