diff options
author | Vinicius Costa Gomes <vinicius.gomes@openbossa.org> | 2012-10-10 20:55:53 -0300 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@intel.com> | 2012-10-11 08:55:50 +0200 |
commit | 0f92869a3be7b8561dc79cee97464db65b0efc55 (patch) | |
tree | 9abe92315e7f2d19c7e63f663bb1b30b6e296536 /src | |
parent | 9b8871db95d02e87c39c3e6220f71965ec78ca62 (diff) |
gattrib: Add support for listening for events for specific handles
We want only the profile that implements a service to be notified of
changes on that service. Before this patch, all the registered event
notifiers are being called.
Diffstat (limited to 'src')
-rw-r--r-- | src/attrib-server.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/attrib-server.c b/src/attrib-server.c index 7117fbe2..ea27b137 100644 --- a/src/attrib-server.c +++ b/src/attrib-server.c @@ -1096,7 +1096,7 @@ guint attrib_channel_attach(GAttrib *attrib) channel->attrib = g_attrib_ref(attrib); channel->id = g_attrib_register(channel->attrib, GATTRIB_ALL_REQS, - channel_handler, channel, NULL); + GATTRIB_ALL_HANDLES, channel_handler, channel, NULL); channel->cleanup_id = g_io_add_watch(io, G_IO_HUP, channel_watch_cb, channel); |