diff options
author | Havoc Pennington <hp@src.gnome.org> | 1999-10-27 03:46:27 +0000 |
---|---|---|
committer | Havoc Pennington <hp@src.gnome.org> | 1999-10-27 03:46:27 +0000 |
commit | e4540115bd054c1374015766da18ea668db9d1e0 (patch) | |
tree | 705037b50e7410d04549be2d5248c616a77cefb9 /gconf/gconf-client.h | |
parent | d811d96b925bca2bfaf7cafd642da59d7c02c409 (diff) | |
download | gconf-e4540115bd054c1374015766da18ea668db9d1e0.tar.gz |
Finish the GTK wrapper object (except for preload optimization and
attempting to compile it). API should be final and working though.
Fixed indentation/comments in a couple other files.
Diffstat (limited to 'gconf/gconf-client.h')
-rw-r--r-- | gconf/gconf-client.h | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/gconf/gconf-client.h b/gconf/gconf-client.h index 412042fd..0dd0579e 100644 --- a/gconf/gconf-client.h +++ b/gconf/gconf-client.h @@ -97,6 +97,7 @@ struct _GConfClient gpointer parent_user_data; GSList* dir_list; GHashTable* cache_hash; + GConfListeners* listeners; }; struct _GConfClientClass @@ -110,7 +111,7 @@ struct _GConfClientClass */ void (* value_changed) (GConfClient* client, - const gchar* relative_key, + const gchar* key, GConfValue* value); /* General note about error handling: AVOID DIALOG DELUGES. @@ -173,6 +174,7 @@ guint gconf_client_notify_add(GConfClient* client, const gchar* namespace_section, /* dir or key to listen to */ GConfClientNotifyFunc func, gpointer user_data, + GFreeFunc destroy_notify, GConfError** err); void gconf_client_notify_remove (GConfClient* client, @@ -197,6 +199,25 @@ void gconf_client_set_error_handling(GConfClient* client, /* + * If you know you're done reading values for a while, + * you can blow away the cache. Note that this nullifies the effect of + * any preloading you may have done. However it frees some memory. + */ +void gconf_client_clear_cache(GConfClient* client); + +/* + * Preload a directory; the directory must have been added already. + * This is only useful as an optimization if you clear the cache, + * then later want to do a lot of reads again. It's not useful + * unless you clear the cache, because you can preload when you + * call gconf_client_add_dir() + */ +void gconf_client_preload (GConfClient* client, + const gchar* dirname, + GConfClientPreloadType type, + GConfError** err); + +/* * Basic key-manipulation facilities */ |