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 /engine/dconf-engine.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 'engine/dconf-engine.h')
-rw-r--r-- | engine/dconf-engine.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/engine/dconf-engine.h b/engine/dconf-engine.h index af9547c..08f84b8 100644 --- a/engine/dconf-engine.h +++ b/engine/dconf-engine.h @@ -20,10 +20,13 @@ typedef struct -typedef GVariant * (*DConfEngineServiceFunc) (DConfEngine *engine, - DConfEngineMessage *message); +typedef GVariant * (*DConfEngineServiceFunc) (DConfEngineMessage *message); + +void dconf_engine_set_service_func (DConfEngineServiceFunc func); +DConfEngine * dconf_engine_new (void); +DConfEngine * dconf_engine_new_for_db (DConfEngineServiceFunc *service, + const gchar *db_name); -DConfEngine * dconf_engine_new (const gchar *context); void dconf_engine_unref (DConfEngine *engine); DConfEngine * dconf_engine_ref (DConfEngine *engine); |