change GSettingsBackend.list() API

This commit is contained in:
Ryan Lortie 2010-05-24 22:20:47 -04:00
parent 1b7f645492
commit 84a0605342
2 changed files with 31 additions and 29 deletions

View File

@ -65,35 +65,37 @@ struct _GSettingsBackendClass
{ {
GObjectClass parent_class; GObjectClass parent_class;
gboolean (*supports_context) (const gchar *context); gboolean (*supports_context) (const gchar *context);
GVariant * (*read) (GSettingsBackend *backend, GVariant * (*read) (GSettingsBackend *backend,
const gchar *key, const gchar *key,
const GVariantType *expected_type, const GVariantType *expected_type,
gboolean default_value); gboolean default_value);
gchar ** (*list) (GSettingsBackend *backend, gchar ** (*list) (GSettingsBackend *backend,
const gchar *path, const gchar *path,
gsize *length); gchar **resets,
gboolean (*write) (GSettingsBackend *backend, gsize n_resets,
const gchar *key, gsize *length);
GVariant *value, gboolean (*write) (GSettingsBackend *backend,
gpointer origin_tag); const gchar *key,
gboolean (*write_keys) (GSettingsBackend *backend, GVariant *value,
GTree *tree, gpointer origin_tag);
gpointer origin_tag); gboolean (*write_keys) (GSettingsBackend *backend,
void (*reset) (GSettingsBackend *backend, GTree *tree,
const gchar *key, gpointer origin_tag);
gpointer origin_tag); void (*reset) (GSettingsBackend *backend,
void (*reset_path) (GSettingsBackend *backend, const gchar *key,
const gchar *path, gpointer origin_tag);
gpointer origin_tag); void (*reset_path) (GSettingsBackend *backend,
gboolean (*get_writable) (GSettingsBackend *backend, const gchar *path,
const gchar *key); gpointer origin_tag);
void (*subscribe) (GSettingsBackend *backend, gboolean (*get_writable) (GSettingsBackend *backend,
const gchar *name); const gchar *key);
void (*unsubscribe) (GSettingsBackend *backend, void (*subscribe) (GSettingsBackend *backend,
const gchar *name); const gchar *name);
void (*sync) (GSettingsBackend *backend); void (*unsubscribe) (GSettingsBackend *backend,
const gchar *name);
void (*sync) (GSettingsBackend *backend);
gpointer padding[8]; gpointer padding[8];
}; };