diff options
author | Luiz Augusto Von Dentz <luiz.dentz-von@nokia.com> | 2009-12-29 10:53:21 +0200 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2009-12-29 01:19:57 -0800 |
commit | de273c875c25c1bd5ab8a012bd9e4ec01b6516d2 (patch) | |
tree | e48521f67647839cc9deb02d5bb7f89be1e4aec1 /gdbus/gdbus.h | |
parent | 8e894565e933d77aae491ec1bfd3204836f00fff (diff) | |
download | connman-de273c875c25c1bd5ab8a012bd9e4ec01b6516d2.tar.gz connman-de273c875c25c1bd5ab8a012bd9e4ec01b6516d2.tar.bz2 connman-de273c875c25c1bd5ab8a012bd9e4ec01b6516d2.zip |
Add initial implementation of g_dbus_add_signal_watch
With g_dbus_add_signal_watch there is no need to register multiple filters
for dbus nor add matching rules manually.
Diffstat (limited to 'gdbus/gdbus.h')
-rw-r--r-- | gdbus/gdbus.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gdbus/gdbus.h b/gdbus/gdbus.h index 244f7977..170b6691 100644 --- a/gdbus/gdbus.h +++ b/gdbus/gdbus.h @@ -125,8 +125,10 @@ guint g_dbus_add_disconnect_watch(DBusConnection *connection, const char *name, GDBusWatchFunction function, void *user_data, GDBusDestroyFunction destroy); guint g_dbus_add_signal_watch(DBusConnection *connection, - const char *rule, GDBusSignalFunction function, - void *user_data, GDBusDestroyFunction destroy); + const char *sender, const char *path, + const char *interface, const char *member, + GDBusSignalFunction function, void *user_data, + GDBusDestroyFunction destroy); gboolean g_dbus_remove_watch(DBusConnection *connection, guint tag); void g_dbus_remove_all_watches(DBusConnection *connection); |