adjust to new gvdb APIs
[dconf.git] / tests / dconf-mock.h
blob10e6095966f5dba71d83adf39101f9ec23b19fdd
1 #ifndef __dconf_mock_h__
2 #define __dconf_mock_h__
4 #include "../gvdb/gvdb-reader.h"
5 #include <gio/gio.h>
7 typedef GVariant * (* DConfMockDBusSyncCallHandler) (GBusType bus_type,
8 const gchar *bus_name,
9 const gchar *object_path,
10 const gchar *interface_name,
11 const gchar *method_name,
12 GVariant *parameters,
13 const GVariantType *expected_type,
14 GError **error);
16 extern DConfMockDBusSyncCallHandler dconf_mock_dbus_sync_call_handler;
17 extern GQueue dconf_mock_dbus_outstanding_call_handles;
19 void dconf_mock_shm_reset (void);
20 gint dconf_mock_shm_flag (const gchar *name);
21 void dconf_mock_shm_assert_log (const gchar *expected_log);
23 GvdbTable * dconf_mock_gvdb_table_new (void);
24 void dconf_mock_gvdb_table_insert (GvdbTable *table,
25 const gchar *name,
26 GVariant *value,
27 GvdbTable *subtable);
28 void dconf_mock_gvdb_table_invalidate (GvdbTable *table);
29 void dconf_mock_gvdb_install (const gchar *filename,
30 GvdbTable *table);
31 GvdbTable * dconf_mock_gvdb_table_ref (GvdbTable *table);
33 #endif