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>
20 #ifndef _dconf_dbus_1_h_
21 #define _dconf_dbus_1_h_
23 #include <dbus/dbus.h>
28 typedef struct _DConfDBusClient DConfDBusClient
;
30 typedef void (* DConfDBusNotify
) (DConfDBusClient
*dcdbc
,
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
,
42 gboolean
dconf_dbus_client_write (DConfDBusClient
*dcdbc
,
45 void dconf_dbus_client_subscribe (DConfDBusClient
*dcdbc
,
47 DConfDBusNotify notify
,
49 void dconf_dbus_client_unsubscribe (DConfDBusClient
*dcdbc
,
50 DConfDBusNotify notify
,
52 gboolean
dconf_dbus_client_has_pending (DConfDBusClient
*dcdbc
);
56 #endif /* _dconf_dbus_1_h_ */