diff options
author | Ryan Lortie <desrt@desrt.ca> | 2010-07-15 21:18:55 -0400 |
---|---|---|
committer | Ryan Lortie <desrt@desrt.ca> | 2010-07-15 21:30:53 -0400 |
commit | e7fd6d849feaea45d76cda1eb074c9ea59b85637 (patch) | |
tree | ee014c5ab816989bf19c730f16373359453bb2e0 /service/dconf-writer.h | |
parent | c37c49a0c25505e0136158b56aba3703db0fa828 (diff) | |
download | dconf-e7fd6d849feaea45d76cda1eb074c9ea59b85637.tar.gz |
Many improvements
- support the notion of 'profiles'
This is how we will configure layering of databases in dconf. It's
not wired-up yet (except to choose the name of the user database).
- support multiple writers in the service
Using the (very freshly API-broken) GDBus subtree support.
Introspection returns the names of existing databases, but any
object path can be used to create a new database.
- support the start of the 'shm' file
Used to prevent the reader from reopening the gvdb every time.
dconf reads now involve zero system calls in the usual case.
The server is queried on startup for the location of the shm files.
By default, this is in ~/.cache/dconf/ for now. This won't work
properly on NFS, but it's a start.
Diffstat (limited to 'service/dconf-writer.h')
-rw-r--r-- | service/dconf-writer.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/service/dconf-writer.h b/service/dconf-writer.h new file mode 100644 index 0000000..55611b1 --- /dev/null +++ b/service/dconf-writer.h @@ -0,0 +1,18 @@ +#include <glib.h> + +typedef struct OPAQUE_TYPE__DConfWriter DConfWriter; + +const gchar * dconf_writer_get_shm_dir (void); +gchar ** dconf_writer_list_existing (void); +void dconf_writer_init (void); +DConfWriter * dconf_writer_new (const gchar *name); +gboolean dconf_writer_write (DConfWriter *writer, + const gchar *name, + GVariant *value, + GError **error); +gboolean dconf_writer_write_many (DConfWriter *writer, + const gchar *prefix, + const gchar * const *keys, + GVariant * const *values, + gsize n_items, + GError **error); |