tests: fix a trivial error in the engine test
[dconf.git] / dbus-1 / dconf-dbus-1.h
blobbd204be0b06ce97bfeffeea7dc8252565186db95
1 /**
2 * Copyright © 2010 Canonical Limited
4 * This program is free software: you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation, either version 3 of the licence, or (at
7 * your option) any later version.
9 * This program is distributed in the hope that it will be useful, but
10 * WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program. If not, see <http://www.gnu.org/licenses/>.
17 * Author: Ryan Lortie <desrt@desrt.ca>
18 **/
20 #ifndef _dconf_dbus_1_h_
21 #define _dconf_dbus_1_h_
23 #include <dbus/dbus.h>
24 #include <glib.h>
26 G_BEGIN_DECLS
28 typedef struct _DConfDBusClient DConfDBusClient;
30 typedef void (* DConfDBusNotify) (DConfDBusClient *dcdbc,
31 const gchar *key,
32 gpointer user_data);
34 DConfDBusClient * dconf_dbus_client_new (const gchar *profile,
35 DBusConnection *session,
36 DBusConnection *system);
37 void dconf_dbus_client_unref (DConfDBusClient *dcdbc);
38 DConfDBusClient * dconf_dbus_client_ref (DConfDBusClient *dcdbc);
40 GVariant * dconf_dbus_client_read (DConfDBusClient *dcdbc,
41 const gchar *key);
42 gboolean dconf_dbus_client_write (DConfDBusClient *dcdbc,
43 const gchar *key,
44 GVariant *value);
45 void dconf_dbus_client_subscribe (DConfDBusClient *dcdbc,
46 const gchar *name,
47 DConfDBusNotify notify,
48 gpointer user_data);
49 void dconf_dbus_client_unsubscribe (DConfDBusClient *dcdbc,
50 DConfDBusNotify notify,
51 gpointer user_data);
52 gboolean dconf_dbus_client_has_pending (DConfDBusClient *dcdbc);
54 G_END_DECLS
56 #endif /* _dconf_dbus_1_h_ */