Commit Graph

14 Commits

Author SHA1 Message Date
Davide Andreoli 8ecd30d578 Add a new API to edbus to let it create an EDbus session from
an existing DBus connection.

This is needed by the python bindings, was done the same way
in edbus1, so it should fit here also

NOTE: I did not test this yet, and I'm not into the edbus code,
so I please who know the code to give a look. thanks

NOTE2: I don't think this need Changelog and stuff as we are probably
the only users of this function, let me know if i'm wrong
2013-02-28 20:33:29 +01:00
Daniel Willmann cd9b6bed62 edbus: Fix array access of shared_connection
type is an enum which can be 0. Make sure that it isn't before accessing
shared_connections[type - 1]
Found with klocwork

Signed-off-by: Daniel Willmann <d.willmann@samsung.com>
2013-02-18 12:22:45 +00:00
José Roberto de Souza ba63fa7ed2 efl/edbus: Fix edbus_name_owner_changed() when bus name is not on bus
If we pass the last argument as TRUE, that means user want to know the actual
bus id of the bus name and if the bus name is not registered it never notify
the user.

This bug was insert when fixing another one, because of that there more code
here to fix the previous bug too.

Patch by: José Roberto de Souza <zezsouza@gmail.com>



SVN revision: 83082
2013-01-22 13:34:34 +00:00
Lucas De Marchi d976c23f58 efl/edbus: remove bogus line
My bad when applying José's patch.




SVN revision: 82786
2013-01-14 22:39:03 +00:00
José Roberto de Souza 283805237a edbus: Dont call dispatch_name_owner_change() if we get a error message
Patch by: José Roberto de Souza  <zehortigoza@profusion.mobi>



SVN revision: 82784
2013-01-14 22:34:51 +00:00
José Roberto de Souza 9690409636 edbus: Fix signal handler extra match check
When an extra argument didn't match, instead of going to the next signal
handler we were skiping to next extra match argument because we were
calling "continue" inside EINA_INLIST_FOREACH.

Patch by: José Roberto de Souza  <zehortigoza@profusion.mobi>



SVN revision: 82351
2013-01-07 15:20:16 +00:00
Ulisses Furquim af8c81634f edbus: Fix connection name leak
Hack to fix the connection name leak. The problem is that each signal
handler has a reference to the FDO_BUS connection name and when the
penultimate connection name is released (and therefore its signal
handler), FDO_BUS is released, too.

Check if cn is still in the hash before trying to free it.

Patch by: Ulisses Furquim <ulisses@profusion.mobi>



SVN revision: 82077
2013-01-03 14:06:20 +00:00
José Roberto de Souza 32d7c8d5a9 edbus: Remove Connection_Context_NOC_Cb marked to be deleted
Patch by: José Roberto de Souza  <zehortigoza@profusion.mobi>



SVN revision: 82076
2013-01-03 14:06:14 +00:00
José Roberto de Souza 30a6da0e7f edbus: Suppress warnings of unused parameters
Patch by: José Roberto de Souza  <zehortigoza@profusion.mobi>



SVN revision: 82072
2013-01-03 14:05:51 +00:00
José Roberto de Souza 9e1f5d80fe edbus: Increment/decrement edbus refcount when processing signals
This allows the user to shutdown edbus inside a signal callback.

Patch by: José Roberto de Souza  <zehortigoza@profusion.mobi>



SVN revision: 82071
2013-01-03 14:05:45 +00:00
José Roberto de Souza 3988f3fe52 edbus: Test if connection_name could be freed in name_owner_changed_callback_del
Patch by: José Roberto de Souza  <zehortigoza@profusion.mobi>



SVN revision: 82010
2013-01-02 20:31:53 +00:00
Ulisses Furquim 4f6a4e59a4 edbus: do not crash when dispatching signals
Make sure the next signal handler for the connection is always known and
not vanish under us.

Patch by: Ulisses Furquim <ulisses@profusion.mobi>



SVN revision: 81847
2012-12-28 21:05:57 +00:00
Mike Blumenkrantz 6196c88b1b same edbus commit as last commit
SVN revision: 81840
2012-12-28 20:02:31 +00:00
Gustavo Sverzut Barbieri 331488d1ce efl: merge edbus (v2).
SVN revision: 81825
2012-12-28 17:53:25 +00:00