summaryrefslogtreecommitdiff
path: root/engine/dconf-engine.h
diff options
context:
space:
mode:
authorRyan Lortie <desrt@desrt.ca>2010-07-15 21:18:55 -0400
committerRyan Lortie <desrt@desrt.ca>2010-07-15 21:30:53 -0400
commite7fd6d849feaea45d76cda1eb074c9ea59b85637 (patch)
treeee014c5ab816989bf19c730f16373359453bb2e0 /engine/dconf-engine.h
parentc37c49a0c25505e0136158b56aba3703db0fa828 (diff)
downloaddconf-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.h9
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);