summaryrefslogtreecommitdiffstats
path: root/gdbus
AgeCommit message (Collapse)AuthorFilesLines
2010-12-08gdbus: explicitly compare pointers to NULLLucas De Marchi3-24/+23
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-10-13gdbus: fix not handling bus disconnectsLuiz Augusto von Dentz1-0/+4
We where not dispatching data when a bus disconnects which cause Disconnected signal to not be processed and thus causing the process to either not exit or to not trigger callbacks registered with g_dbus_set_disconnect_function. To fix this now we always schedule a dispatch which will make sure data still not processed will make its way to the proper handlers even if disconnected.
2010-09-09Add support for builtin GDBus security using PolicyKitMarcel Holtmann2-1/+247
2010-09-09Add support for GDBus security action and flagsMarcel Holtmann2-3/+21
2010-09-09Use simpler error callbacks for GDBus security hooksMarcel Holtmann2-8/+30
2010-09-09Add support for GDBus security handlersMarcel Holtmann2-22/+156
2010-09-08Fix calling watch callbacks after it has been removedLuiz Augusto von Dentz1-30/+49
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-08Fix signal watch when a service name is givenLuiz Augusto Von Dentz1-33/+128
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-08Do not automatically remove watches for service namesLuiz Augusto Von Dentz1-6/+7
Services can be owned again so it is perfectly fine to keep the watch.
2010-08-19Add printf format attribute for error creation helperMarcel Holtmann1-1/+2
2010-07-26Free service data in service_replyZhenhua Zhang1-1/+1
Avoid the memory leak of server_data.
2010-04-30Fix parent path introspection data invalidation for multiple levelsJohan Hedberg1-1/+3
In the case that parent path data needs to be invalidated we shouldn't stop at the immediate parent if it doesn't have our own handler registered but should continue upwards in the tree until we reach root or our own handler.
2010-04-29Fix memory leak in g_dbus_register_interfaceJohan Hedberg1-1/+3
2010-03-07Make interface callback tables constMarcel Holtmann2-16/+16
2010-03-07Fix the case when the requested name is already in useVinicius Costa Gomes1-1/+5
We weren't setting the dbus error in this situation.
2010-02-17Fix: a pending call was leaking in check_serviceVinicius Costa Gomes1-0/+2
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-01-27Remove unneeded use of status variableMarcel Holtmann1-8/+2
2010-01-27Introduce g_dbus_setup_private() to gdbusForrest Zhao2-13/+55
g_dbus_setup_private() is used to setup private DBusConnection
2010-01-08Fix regression when removing watchesLuiz Augusto Von Dentz1-5/+9
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-02Cleanup of D-Bus mainloop integrationMarcel Holtmann1-84/+107
2010-01-01Update copyright information of D-Bus helper libraryMarcel Holtmann4-4/+4
2009-12-29Fix undefined symbolsLuiz Augusto Von Dentz1-2/+2
2009-12-29Port gdbus to use g_dbus_add_signal_watchLuiz Augusto Von Dentz1-11/+10
2009-12-29Add initial implementation of g_dbus_add_signal_watchLuiz Augusto Von Dentz2-202/+321
With g_dbus_add_signal_watch there is no need to register multiple filters for dbus nor add matching rules manually.
2009-12-16Fix D-Bus timeout handlingDaniel Orstadius1-1/+16
Timeouts should also be removed in the remove_timeout callback in addition to the timeout_handler_free function. This is how dbus-glib does it and it seems to prevent crashes in certain situations.
2009-10-29Fix message handling for autostart.Claudio Takahasi1-0/+3
Current implementation of libdbus Request name is blocking, consequently the first incomming message that triggered the service autostart is not being processed properly.
2009-09-24gdbus: handle introspection generally in generic_message.RISKÓ Gergely1-43/+59
Previously it was a specific case, now introspection is just another interface, which is always implemented. It is registered/unregistered when an object path is referenced first/last.
2009-09-14Add introspection interface to the output of introspection callsRISKÓ Gergely1-1/+7
This provides better compatibility with some D-Bus clients, such as qdbus.
2009-08-24Convert to fully non-recursive build systemMarcel Holtmann1-8/+0
2009-08-08Use NameHasOwner instead of ListNames for name checkingJohan Hedberg1-15/+9
2009-08-06Fix blocking service watch initial connect handlingMarcel Holtmann3-46/+96
2009-05-11Make the parent path invalidateableDenis Kenzior1-1/+5
2009-05-06Fix crash when calling g_dbus_remove_watch from watch callbackLuiz Augusto von Dentz1-10/+41
2009-04-26Add D-Bus helper library for GLib integrationMarcel Holtmann5-0/+1540