~ubuntu-branches/ubuntu/quantal/gconf/quantal

« back to all changes in this revision

Viewing changes to gconf/gconf-sources.h

  • Committer: Bazaar Package Importer
  • Author(s): Josselin Mouette
  • Date: 2007-11-01 18:47:26 UTC
  • mto: (7.1.1 lenny) (1.2.1) (76.1.1 oneiric-proposed)
  • mto: This revision was merged to the branch mainline in revision 7.
  • Revision ID: james.westby@ubuntu.com-20071101184726-e3e4cxfcp41tz6ui
Tags: upstream-2.20.1
ImportĀ upstreamĀ versionĀ 2.20.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
#include <glib.h>
25
25
#include "gconf-error.h"
26
26
#include "gconf-value.h"
 
27
#include "gconf-listeners.h"
27
28
 
28
29
/* Sources are not interchangeable; different backend engines will return 
29
30
 * GConfSource with different private elements.
50
51
  GCONF_SOURCE_ALL_FLAGS = ((1 << 0) | (1 << 1))
51
52
} GConfSourceFlags;
52
53
 
 
54
typedef void (* GConfSourceNotifyFunc) (GConfSource *source,
 
55
                                        const gchar *location,
 
56
                                        gpointer     user_data);
 
57
 
53
58
GConfSource*  gconf_resolve_address         (const gchar* address,
54
59
                                             GError** err);
55
60
 
60
65
 
61
66
struct _GConfSources {
62
67
  GList* sources;
63
 
  
64
68
};
65
69
 
 
70
typedef struct
 
71
{
 
72
  GConfSources *modified_sources;
 
73
  char         *key;
 
74
} GConfUnsetNotify;
 
75
 
 
76
 
66
77
/* Even on error, this gives you an empty source list, i.e.  never
67
78
   returns NULL but may set the error if some addresses weren't
68
79
   resolved and may contain no sources.  */
69
 
GConfSources* gconf_sources_new_from_addresses (const gchar **addresses,
 
80
GConfSources* gconf_sources_new_from_addresses (GSList* addresses,
70
81
                                                GError   **err);
71
82
GConfSources* gconf_sources_new_from_source    (GConfSource   *source);
72
83
void          gconf_sources_free               (GConfSources  *sources);
81
92
                                                GError   **err);
82
93
void          gconf_sources_set_value          (GConfSources  *sources,
83
94
                                                const gchar   *key,
84
 
                                                GConfValue    *value,
 
95
                                                const GConfValue *value,
 
96
                                                GConfSources **modified_sources,
85
97
                                                GError   **err);
86
98
void          gconf_sources_unset_value        (GConfSources  *sources,
87
99
                                                const gchar   *key,
88
100
                                                const gchar   *locale,
 
101
                                                GConfSources **modified_sources,
89
102
                                                GError   **err);
 
103
void          gconf_sources_recursive_unset    (GConfSources  *sources,
 
104
                                                const gchar   *key,
 
105
                                                const gchar   *locale,
 
106
                                                GConfUnsetFlags flags,
 
107
                                                GSList      **notifies,
 
108
                                                GError      **err);
90
109
GSList*       gconf_sources_all_entries        (GConfSources  *sources,
91
110
                                                const gchar   *dir,
92
111
                                                const gchar  **locales,
118
137
                                                gboolean* is_writable,
119
138
                                                GError** err);
120
139
 
 
140
void          gconf_sources_set_notify_func    (GConfSources          *sources,
 
141
                                                GConfSourceNotifyFunc  notify_func,
 
142
                                                gpointer               user_data);
 
143
void          gconf_sources_add_listener       (GConfSources          *sources,
 
144
                                                guint                  id,
 
145
                                                const gchar           *location);
 
146
void          gconf_sources_remove_listener    (GConfSources          *sources,
 
147
                                                guint                  id);
 
148
 
 
149
gboolean      gconf_sources_is_affected        (GConfSources *sources,
 
150
                                                GConfSource  *modified_src,
 
151
                                                const char   *key);
 
152
 
121
153
#endif
122
 
 
123
 
 
124
 
 
125
 
 
126
 
 
127
 
 
128