Commit Graph

34 Commits

Author SHA1 Message Date
José Roberto de Souza 29c5ffc21a edbus: Mark instrospectable as dirty when needed
Patch by: José Roberto de Souza  <zehortigoza@profusion.mobi>



SVN revision: 81494
2012-12-20 22:04:02 +00:00
José Roberto de Souza ad6fdc585a edbus: Remove object path of service if ObjectManager is the last optional iface
Patch by: José Roberto de Souza  <zehortigoza@profusion.mobi>



SVN revision: 81416
2012-12-20 01:55:47 +00:00
Lucas De Marchi bb50f86bc5 edbus: (de)yodafy free cb functions
edbus_connection_cb_free_add     -> edbus_connection_free_cb_add
edbus_connection_cb_free_del     -> edbus_connection_free_cb_del
edbus_object_cb_free_add         -> edbus_object_free_cb_add
edbus_object_cb_free_del         -> edbus_object_free_cb_del
edbus_pending_cb_free_add        -> edbus_pending_free_cb_add
edbus_pending_cb_free_del        -> edbus_pending_free_cb_del
edbus_proxy_cb_free_add          -> edbus_proxy_free_cb_add
edbus_proxy_cb_free_del          -> edbus_proxy_free_cb_del
edbus_signal_handler_cb_free_add -> edbus_signal_handler_free_cb_add
edbus_signal_handler_cb_free_del -> edbus_signal_handler_free_cb_del



SVN revision: 81389
2012-12-19 17:30:11 +00:00
Lucas De Marchi dcda0e6610 edbus: Fix leftover unref after edbus_service_signal_send change
SVN revision: 81388
2012-12-19 17:30:03 +00:00
Lucas De Marchi 6038eeaf47 edbus: unexport edbus_message_signal_new()
Signals need to be sent with edbus_service_signal_emit() -- for basic
messages -- or edbus_service_signal_new() + edbus_service_signal_send --
for complex messages.  Otherwise it's possible to send signals that are
not in the service introspection or that have different signatures by
mistake/typo.



SVN revision: 81311
2012-12-18 21:38:49 +00:00
Lucas De Marchi 7b2ff200f8 edbus: unref sent signal, also for complex types
SVN revision: 81310
2012-12-18 21:38:43 +00:00
Lucas De Marchi b98d5f16b3 edbus: rename functions edbus_message{_iter,}_arguments_set
Rename these functions since they do not set the data in the
iterator/message but rather they append the data.

Also improve the documentation of edbus_message_iter_arguments_append()
to clarify its usage.



SVN revision: 81295
2012-12-18 20:05:02 +00:00
José Roberto de Souza 36e5dd2ebc edbus: Fix invalid access memory in edbus_service_interface_unregister()
_object_unregister is called synchronized by libdbus, so when _interface_free() ran
your object its already freed.

==30579== Invalid read of size 4
==30579==    at 0x4775190: _find_object_manager_parent (edbus_service.c:803)
==30579==    by 0x4775292: _interface_free (edbus_service.c:1011)
==30579==    by 0x4777F1D: edbus_service_interface_unregister (edbus_service.c:1101)
==30579==    by 0x40CBD28: elm_dbus_menu_delete (elm_dbus_menu.c:128)
==30579==    by 0x414552F: _elm_menu_smart_del (elm_menu.c:562)
==30579==    by 0x4810F39: _eo_op_internal (eo.c:363)
==30579==    by 0x4812E1B: eo_do_internal (eo.c:403)
==30579==    by 0x4279D02: evas_object_smart_del (evas_object_smart.c:1080)

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



SVN revision: 81180
2012-12-17 19:48:54 +00:00
José Roberto de Souza 3a4cbf1e4c edbus: Change some function parameters to const
Patch by: José Roberto de Souza  <zehortigoza@profusion.mobi>



SVN revision: 80699
2012-12-11 19:51:02 +00:00
José Roberto de Souza 851fcb14ff edbus: Add Variant to Property set function
Patch by: José Roberto de Souza  <zehortigoza@profusion.mobi>



SVN revision: 80696
2012-12-11 19:50:49 +00:00
José Roberto de Souza c3828323c2 edbus: Fix search of children objects when path = "/"
Example: there's an object in "/org/bla" and we are adding an object in
"/". Thus the second should becaome the parent of the first, which was a
root object since it had no parent yet.

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



SVN revision: 79386
2012-11-16 13:07:38 +00:00
José Roberto de Souza e3607b5b35 edbus: Cosmetic change
There's no need to call eina_array_count(). Pop until it finishes.

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



SVN revision: 79384
2012-11-16 13:07:26 +00:00
José Roberto de Souza f1db6fcba9 edbus: Remove stringshare of Instrospectable interface
Patch by: José Roberto de Souza  <zehortigoza@profusion.mobi>



SVN revision: 79383
2012-11-16 13:07:21 +00:00
José Roberto de Souza 2c9e6e4760 edbus: Add edbus_service_object_manager_attach/detach
Patch by: José Roberto de Souza  <zehortigoza@profusion.mobi>



SVN revision: 79382
2012-11-16 13:07:14 +00:00
José Roberto de Souza 7c2d19fce2 edbus: Add input message to get property function
Without this message, it's not possible for user create the error
message. Also update the docs to clarify usage of the Get/Set callbacks.

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



SVN revision: 79380
2012-11-16 13:06:53 +00:00
Lucas De Marchi 0fa753cd7d edbus: add const where it's due and remove casts
SVN revision: 79185
2012-11-12 16:16:16 +00:00
Lucas De Marchi c2de1aa13e edbus: check signature earlier and fail on invalid signature
The problem is: if there's any arg with invalid signatures, we cannot
continue adding the interface. Just fail with a log message so user will
notice it.

This means we need to check if signals are valid much earlier. Actually
before even adding the object/interface.

Also change the iteration on signals so we don't use a needless index.



SVN revision: 79184
2012-11-12 16:16:10 +00:00
Lucas De Marchi 1478175b5f edbus: do not alloc/free eina_strbuf. Reset it instead
SVN revision: 79183
2012-11-12 16:16:04 +00:00
Lucas De Marchi e877a52f97 edbus: simplify/unify appending args to methods/signals
Functions to append methods/properties/signals also marked as inline as
they should be called by only one place.



SVN revision: 79182
2012-11-12 16:15:58 +00:00
Lucas De Marchi 219ca93d23 edbus: compat introspection with no annotation/arg
SVN revision: 79181
2012-11-12 16:15:52 +00:00
Lucas De Marchi 8fe3146fe8 edbus: fix checking if root objects are our son
strncmp'ing is not sufficient because it whould fail in case an object
like "/org/bla" is registered (and in conn->root_objs) and we were
registering "/org/blatest/". We would incorrectly put "/org/bla" as son
of "/org/blatest". Fix this by looking up the next char, checking if
it's a slash.

Also re-format the code a little bit.



SVN revision: 79179
2012-11-12 16:07:12 +00:00
Lucas De Marchi 312bb0d887 edbus: simplify and fix formatting
SVN revision: 79178
2012-11-12 16:07:06 +00:00
Lucas De Marchi 0bc346c979 edbus: move function up - no fwd declaration when not needed
SVN revision: 79177
2012-11-12 16:07:01 +00:00
Lucas De Marchi e619f29e6e edbus: simplify and explain code
No need to strlen(obj->path) twice per loop iteration. Do it only once
and add a comment explaining the difference between handling "/" and
"/my/path/to/obj".



SVN revision: 79176
2012-11-12 16:06:51 +00:00
José Roberto de Souza fb26be4f1b edbus: Append path of child objects in Introspectable
Patch by: José Roberto de Souza  <zehortigoza@profusion.mobi>



SVN revision: 79175
2012-11-12 16:06:41 +00:00
Carsten Haitzler 2c93e58673 even if we have an older libdbus - let's #define the strings that are
missing - at r4untime we wont get them, but hey - we'll compile at
least and when dbus is upgrade... we'll get them and work right. :)



SVN revision: 79080
2012-11-10 04:26:48 +00:00
José Roberto de Souza 5169b73515 edbus: Add invalidate to EDBus_Property
Patch by: José Roberto de Souza  <zehortigoza@profusion.mobi>



SVN revision: 79036
2012-11-09 18:35:20 +00:00
José Roberto de Souza ffc6f5cf9f edbus: Implement DBus.Properties for services
Patch by: José Roberto de Souza  <zehortigoza@profusion.mobi>



SVN revision: 79035
2012-11-09 18:35:14 +00:00
Sebastian Dransfeld 593b9c00e0 edbus: typo
SVN revision: 78810
2012-11-02 01:46:50 +00:00
José Roberto de Souza 5719e45bbd edbus: Use separate struct for description of Service Interface
Patch by: José Roberto de Souza  <zehortigoza@profusion.mobi>



SVN revision: 78801
2012-11-01 16:41:04 +00:00
José Roberto de Souza b0c6e26b47 edbus: Fix instrospect signature
Patch by: José Roberto de Souza  <zehortigoza@profusion.mobi>



SVN revision: 78541
2012-10-26 16:45:58 +00:00
José Roberto de Souza c6bf21cbbe edbus: Use NULL instead of EDBUS_ARGS({"", ""})
Patch by: José Roberto de Souza  <zehortigoza@profusion.mobi>



SVN revision: 78192
2012-10-18 17:00:28 +00:00
José Roberto de Souza fe34dc2b72 edbus: Remove edbus_real_method
Patch by: José Roberto de Souza  <zehortigoza@profusion.mobi>



SVN revision: 77656
2012-10-09 15:23:25 +00:00
Lucas De Marchi 5934eb6788 Add new edbus library, aka e_dbus v2
SVN revision: 76775
2012-09-17 20:41:05 +00:00