Commit Graph

16 Commits

Author SHA1 Message Date
Marcel Holtmann e5120c96e9 gdbus: Update copyright information 2011-01-01 17:32:29 -08:00
Johan Hedberg a437bfba54 gdbus: fix accessing freed callback data
cb->disc_func or cb->conn_func could remove the callback so this needs
to be checked for before continuing processing.
2010-12-10 00:07:53 +01:00
Lucas De Marchi 752a2ccec8 gdbus: explicitly compare pointers to NULL
This patch was generated by the following semantic patch
(http://coccinelle.lip6.fr/)

// <smpl>
@fix disable is_null,isnt_null1@
expression *E;
@@

- !E
+ E == NULL
// </smpl>
2010-12-08 16:33:06 +01:00
Luiz Augusto von Dentz fbf3bcd87d Fix calling watch callbacks after it has been removed
Pending call should be removed if the watch is removed since the
application no longer expect that to be reached and may already freed the
data associated with it.
2010-09-08 18:28:23 +02:00
Luiz Augusto Von Dentz 79e5dc585d Fix signal watch when a service name is given
The bus name should be resolved when adding a watch by service name since
messages do always come with sender set to owner's bus name, also it
should listen to owner updates since it can change without invalidating
the watch.
2010-09-08 18:28:23 +02:00
Luiz Augusto Von Dentz 93d5bd6af8 Do not automatically remove watches for service names
Services can be owned again so it is perfectly fine to keep the watch.
2010-09-08 18:28:23 +02:00
Zhenhua Zhang 04fffa93a1 Free service data in service_reply
Avoid the memory leak of server_data.
2010-07-26 07:30:48 -07:00
Vinicius Costa Gomes 2e9a16ce07 Fix: a pending call was leaking in check_service
This was triggering an assert inside libdbus when the timeout inside
the leaking pending call expired. The assert said that we were trying
to remove an nonexistent timeout.
2010-02-17 01:59:31 -08:00
Luiz Augusto Von Dentz a6fc21fd1f Fix regression when removing watches
filter_data_find return the first data registered in this case so there is
no guarantee that it return the same data as passed to
filter_data_remove_callback which is the one that should be removed.

The fix is to simple cache the connection removing the correct data before
checking if there is any filter left.
2010-01-08 04:24:09 -08:00
Marcel Holtmann 8e0de054cd Update copyright information of D-Bus helper library 2010-01-01 17:05:57 -08:00
Luiz Augusto Von Dentz 71ac4f60d9 Fix undefined symbols 2009-12-29 17:37:35 -08:00
Luiz Augusto Von Dentz e8111c8229 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.
2009-12-29 01:19:38 -08:00
Johan Hedberg b8addb4af3 Use NameHasOwner instead of ListNames for name checking 2009-08-08 10:34:08 -07:00
Marcel Holtmann 2520e26820 Fix blocking service watch initial connect handling 2009-08-06 22:13:09 -07:00
Luiz Augusto von Dentz 5106f7a8cf Fix crash when calling g_dbus_remove_watch from watch callback 2009-05-06 13:55:09 -07:00
Marcel Holtmann 7851155b80 Add D-Bus helper library for GLib integration 2009-04-26 20:51:36 +02:00