Commit Graph

228 Commits

Author SHA1 Message Date
José Roberto de Souza d1d298e4c2 eldbus: Use EINA_LIST_FREE instead of EINA_LIST_FOREACH to send interfaces add 2013-08-26 15:16:26 -03:00
José Roberto de Souza 36b71d867c eldbus: Send property changed signals before close connection 2013-08-26 15:16:18 -03:00
José Roberto de Souza 26a6b01369 eldbus: Correctly append name of interface removed 2013-08-23 16:05:18 -03:00
José Roberto de Souza fe6a51f7e9 eldbus: Mark introspection of parent object as dirty when adding a child object 2013-08-23 16:05:06 -03:00
José Roberto de Souza 914e05c2ad eldbus: Improve error message when connection get fail 2013-08-15 14:46:30 -03:00
Stefan Schmidt d7d347da0a eldbus: Fix copy and paste error.
We are in the remove case here. The interfaces_added looks like a missed change
from the copy and paste of the add case.

CID 1039671
2013-08-09 10:27:54 +01:00
José Roberto de Souza cbd0ccbbbe eldbus: Check if property_get_all() returned a error before read properties 2013-07-25 14:22:40 -03:00
José Roberto de Souza 353de50898 eldbus: Correclty check if user already create a object manager iface to object
CID: 1039421
2013-07-08 13:52:12 -03:00
José Roberto de Souza 8f69b20a6d eldbus: Remove unnecessary function - _eldbus_connection_unref()
Neither internal function call this function.
2013-07-05 16:08:06 -03:00
José Roberto de Souza 20d9e486a8 eldbus: Handle removal of last reference of connection inside of callback 2013-07-05 16:08:01 -03:00
Carsten Haitzler bf482c7742 eldbus - better fix for dbus_conn becoming null in dispatch 2013-07-04 10:56:43 +09:00
Carsten Haitzler bdd57af113 eldbus - only unref client conns that are not null after dispatch 2013-07-04 08:41:45 +09:00
Eduardo Lima (Etrunko) 2e7479f8db eldbus: Missing dbus_connection_unref() in error path
Signed-off-by: Eduardo Lima (Etrunko) <eduardo.lima@intel.com>
2013-06-27 17:31:22 -03:00
Eduardo Lima (Etrunko) f6295c5828 eldbus: Call dbus_bus_register() for TYPE_ADDRESS connections
From D-Bus documentation:

http://dbus.freedesktop.org/doc/api/html/group__DBusBus.html

dbus_bus_register():

    If you open a bus connection with dbus_connection_open() or
    dbus_connection_open_private() you will have to dbus_bus_register()
    yourself, or make the appropriate registration method calls yourself.

Signed-off-by: Eduardo Lima (Etrunko) <eduardo.lima@intel.com>
2013-06-27 17:24:46 -03:00
Eduardo Lima (Etrunko) 6f255a7ccc eldbus: Add proxy call to org.freedesktop.DBus.Hello
Signed-off-by: Eduardo Lima (Etrunko) <eduardo.lima@intel.com>
2013-06-27 16:43:24 -03:00
Carsten Haitzler 29b3c80385 eldbus: error message iters should be initted as readonly. 2013-06-22 20:15:44 +09:00
Mike Blumenkrantz 5ca64106a2 more descriptive error message in eldbus when property fetching fails 2013-06-20 08:13:55 +01:00
José Roberto de Souza 274799cb08 eldbus: Fix crash when eldbus is shutdown and we have a live connection of type address
Also show info about each connection of type address live.
2013-06-10 11:30:49 -03:00
Eduardo Lima (Etrunko) 4fc274253d eldbus: Welcome two new APIs and one connection type
eldbus_address_connection_get() and eldbus_private_address_connection_get()
are similar to the respective _connection_get() counterparts, but enables
users to connect to buses other than system or session.

The new type introduced for those connections is ELDBUS_CONNECTION_TYPE_ADDRESS
and they require an additional address parameter, which will be passed to
dbus_connection_open().

Signed-off-by: Eduardo Lima (Etrunko) <eduardo.lima@intel.com>
2013-05-28 09:42:29 -03:00
Eduardo Lima (Etrunko) 1ac40b5502 eldbus: New internal function _eldbus_connection_free()
This is actually a split on the _eldbus_connection_unref() function, that
will be called either when the refcount reaches 0 or to force the deletion
of an Eldus_Connection.

The second use case will be contemplated in a following patch.

Signed-off-by: Eduardo Lima (Etrunko) <eduardo.lima@intel.com>
2013-05-28 09:42:29 -03:00
Eduardo Lima (Etrunko) fb0dc85bc3 eldbus: Reset value of fd_handler after deletion
Signed-off-by: Eduardo Lima (Etrunko) <eduardo.lima@intel.com>
2013-05-28 09:42:29 -03:00
Jérémy Zurcher 57b2cb5239 eldbus_service: explicitly set flags to 0 in static _Signal and _Method structs 2013-05-07 22:16:37 +02:00
José Roberto de Souza 12855e5fe7 eldbus: Fix interface_unregister() 2013-05-04 10:38:55 -03:00
José Roberto de Souza 9e4dc299a7 eldbus: Fix eldbus_service_*_get() functions over FDO interfaces 2013-05-04 10:38:55 -03:00
José Roberto de Souza d6c7732931 eldbus: Fix eldbus_pending_destination_get(), it was returnig the method name 2013-05-04 10:38:55 -03:00
Lucas De Marchi 49f16237c0 eldbus: Add EINA_ARG_NONNULL to new API function 2013-05-04 10:38:55 -03:00
José Roberto de Souza dd25e02d5c eldbus: Add eldbus_message_iter_fixed_array_append() 2013-05-04 10:38:55 -03:00
Lucas De Marchi 4e3804041f Rename edbus->eldbus
git grep -l edbus2 | while read f; do sed -i 's/edbus2/eldbus/g' "$f"; done
find . -name '*edbus2*' -exec rename edbus2 eldbus {} \;

git grep -l "EDBUS" | while read f; do sed -i 's/EDBUS/ELDBUS/g' "$f"; done
git grep -l "EDBus" | while read f; do sed -i 's/EDBus/Eldbus/g' "$f"; done
git grep -l "edbus (v2)" | while read f; do sed -i 's/edbus (v2)/eldbus/g' "$f"; done
git grep -l "Edbus" | while read f; do sed -i 's/Edbus/Eldbus/g' "$f"; done
git grep -l "edbus" | while read f; do sed -i 's/edbus/eldbus/g' "$f"; done

find . -name '*edbus*' -exec rename edbus eldbus {} \;
find . -name '*EDBus*' -exec rename EDBus Eldbus {} \;
2013-04-23 12:36:29 -03:00