platform/upstream/eldbus.git
11 years agoedbus: Dont create proxy of FDO.Instropectable
José Roberto de Souza [Tue, 11 Dec 2012 19:52:24 +0000 (19:52 +0000)]
edbus: Dont create proxy of FDO.Instropectable

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

SVN revision: 80712

11 years agoedbus: Dont create proxy of FDO.Peer
José Roberto de Souza [Tue, 11 Dec 2012 19:52:20 +0000 (19:52 +0000)]
edbus: Dont create proxy of FDO.Peer

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

SVN revision: 80711

11 years agoedbus: Fix typo in object manager
José Roberto de Souza [Tue, 11 Dec 2012 19:52:15 +0000 (19:52 +0000)]
edbus: Fix typo in object manager

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

SVN revision: 80710

11 years agoedbus: Dont create proxy of Object Manager on edbus_object_managed_objects_get()
José Roberto de Souza [Tue, 11 Dec 2012 19:52:11 +0000 (19:52 +0000)]
edbus: Dont create proxy of Object Manager on edbus_object_managed_objects_get()

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

SVN revision: 80709

11 years agoedbus: Only one ref of Properties interface in each object
José Roberto de Souza [Tue, 11 Dec 2012 19:52:06 +0000 (19:52 +0000)]
edbus: Only one ref of Properties interface in each object

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

SVN revision: 80708

11 years agoedbus: Better naming for FDO proxy in connection
Lucas De Marchi [Tue, 11 Dec 2012 19:52:02 +0000 (19:52 +0000)]
edbus: Better naming for FDO proxy in connection

Patch by: Lucas De Marchi <lucas.de.marchi@gmail.com>

SVN revision: 80707

11 years agoedbus: Keep only one reference of object and proxy of dbus daemon interface per conne...
José Roberto de Souza [Tue, 11 Dec 2012 19:51:38 +0000 (19:51 +0000)]
edbus: Keep only one reference of object and proxy of dbus daemon interface per connection

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

SVN revision: 80706

11 years agoedbus: simplify returning new ref of obj/proxy
Lucas De Marchi [Tue, 11 Dec 2012 19:51:34 +0000 (19:51 +0000)]
edbus: simplify returning new ref of obj/proxy

Patch by: Lucas De Marchi <lucas.de.marchi@gmail.com>

SVN revision: 80705

11 years agoedbus: Add ref to object and proxy in edbus_object/proxy_get
José Roberto de Souza [Tue, 11 Dec 2012 19:51:29 +0000 (19:51 +0000)]
edbus: Add ref to object and proxy in edbus_object/proxy_get

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

SVN revision: 80704

11 years agoedbus: Fix typo on doc of edbus_message_arguments_get
José Roberto de Souza [Tue, 11 Dec 2012 19:51:25 +0000 (19:51 +0000)]
edbus: Fix typo on doc of edbus_message_arguments_get

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

SVN revision: 80703

11 years agoedbus: Add object method call
José Roberto de Souza [Tue, 11 Dec 2012 19:51:20 +0000 (19:51 +0000)]
edbus: Add object method call

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

SVN revision: 80702

11 years agoedbus: Add missing break in edbus_message_from_eina_value
José Roberto de Souza [Tue, 11 Dec 2012 19:51:16 +0000 (19:51 +0000)]
edbus: Add missing break in edbus_message_from_eina_value

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

SVN revision: 80701

11 years agoedbus: Add example for reading str array inside a variant using eina_value
José Roberto de Souza [Tue, 11 Dec 2012 19:51:12 +0000 (19:51 +0000)]
edbus: Add example for reading str array inside a variant using eina_value

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

SVN revision: 80700

11 years agoedbus: Change some function parameters to const
José Roberto de Souza [Tue, 11 Dec 2012 19:51:02 +0000 (19:51 +0000)]
edbus: Change some function parameters to const

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

SVN revision: 80699

11 years agoedbus: Signal property changed after a successful property-set in complex server...
José Roberto de Souza [Tue, 11 Dec 2012 19:50:58 +0000 (19:50 +0000)]
edbus: Signal property changed after a successful property-set in complex server example

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

SVN revision: 80698

11 years agoedbus: Fix signature check in edbus_message_iter_fixed_array_get()
José Roberto de Souza [Tue, 11 Dec 2012 19:50:53 +0000 (19:50 +0000)]
edbus: Fix signature check in edbus_message_iter_fixed_array_get()

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

SVN revision: 80697

11 years agoedbus: Add Variant to Property set function
José Roberto de Souza [Tue, 11 Dec 2012 19:50:49 +0000 (19:50 +0000)]
edbus: Add Variant to Property set function

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

SVN revision: 80696

11 years agoedbus: Add proxy to Proxy_Event_Property_Changed
José Roberto de Souza [Tue, 11 Dec 2012 19:50:45 +0000 (19:50 +0000)]
edbus: Add proxy to Proxy_Event_Property_Changed

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

SVN revision: 80695

11 years agoedbus: Remove signal_handler_del over a already freed signal
José Roberto de Souza [Tue, 11 Dec 2012 19:50:40 +0000 (19:50 +0000)]
edbus: Remove signal_handler_del over a already freed signal

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

SVN revision: 80694

11 years agoedbus: Add Disconnected event in connection
José Roberto de Souza [Tue, 11 Dec 2012 19:50:29 +0000 (19:50 +0000)]
edbus: Add Disconnected event in connection

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

SVN revision: 80693

11 years agoedbus: Remove unnecessary connection events
José Roberto de Souza [Tue, 11 Dec 2012 19:50:25 +0000 (19:50 +0000)]
edbus: Remove unnecessary connection events

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

SVN revision: 80692

11 years agoedbus: Add edbus_private_connection_get()
José Roberto de Souza [Tue, 11 Dec 2012 19:50:20 +0000 (19:50 +0000)]
edbus: Add edbus_private_connection_get()

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

SVN revision: 80691

11 years agoedbus: Refactor examples
José Roberto de Souza [Tue, 11 Dec 2012 19:50:16 +0000 (19:50 +0000)]
edbus: Refactor examples

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

SVN revision: 80690

11 years agoedbus: Support '(' and '{' in edbus_message_iter_get_and_next()
José Roberto de Souza [Tue, 11 Dec 2012 19:50:11 +0000 (19:50 +0000)]
edbus: Support '(' and '{' in edbus_message_iter_get_and_next()

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

SVN revision: 80689

11 years agoedbus: Allow to monitor unique id in edbus_name_owner_changed_callback_add
José Roberto de Souza [Tue, 11 Dec 2012 19:50:06 +0000 (19:50 +0000)]
edbus: Allow to monitor unique id in edbus_name_owner_changed_callback_add

This allows to monitor when a client exits. Clients in general don't
register a name in the bus and in some cases it's even not allowed to do
(for example an agent talking to bluetoothd, that runs in system bus).

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

SVN revision: 80687

11 years agoedbus: Fix bug found in refactored banshee example
José Roberto de Souza [Tue, 11 Dec 2012 19:50:01 +0000 (19:50 +0000)]
edbus: Fix bug found in refactored banshee example

Refactor edbus_signal_handler_add() so internal signal handlers don't
set the connection free callback. This fixes the bug in which
EDBus_Connection was freeing the signal handler of EDBus_Conenction_Name

==22814== Invalid read of size 4
==22814==    at 0x40564B0: edbus_signal_handler_del (edbus_signal_handler.c:278)
==22814==    by 0x4040E65: _edbus_connection_name_unref (edbus_core.c:507)
==22814==    by 0x404106B: edbus_connection_name_owner_monitor (edbus_core.c:520)
==22814==    by 0x4055F63: _edbus_signal_handler_clean (edbus_signal_handler.c:217)
==22814==    by 0x40564F8: edbus_signal_handler_del (edbus_signal_handler.c:279)
==22814==    by 0x4043088: _edbus_connection_unref (edbus_core.c:1045)
==22814==    by 0x404352F: edbus_connection_unref (edbus_core.c:1105)
==22814==    by 0x80498AA: main (banshee.c:233)
==22814==  Address 0x44bea48 is 0 bytes inside a block of size 72 free'd
==22814==    at 0x402C06C: free (in /usr/lib/valgrind/vgpreload_memcheck-x86-linux.so)
==22814==    by 0x4056118: _edbus_signal_handler_del (edbus_signal_handler.c:249)
==22814==    by 0x4056401: edbus_signal_handler_unref (edbus_signal_handler.c:272)
==22814==    by 0x4056503: edbus_signal_handler_del (edbus_signal_handler.c:280)
==22814==    by 0x4043088: _edbus_connection_unref (edbus_core.c:1045)
==22814==    by 0x404352F: edbus_connection_unref (edbus_core.c:1105)
==22814==    by 0x80498AA: main (banshee.c:233)
==22814==
CRI<22814>: src/lib/edbus_signal_handler.c:278 edbus_signal_handler_del() *** Eina Magic Check Failed !!!
    Input handle has already been freed!
    *** NAUGHTY PROGRAMMER!!!
    *** SPANK SPANK SPANK!!!
    *** Now go fix your code. Tut tut tut!

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

SVN revision: 80686

11 years agoedbus: Refactor banshee example
José Roberto de Souza [Tue, 11 Dec 2012 19:49:57 +0000 (19:49 +0000)]
edbus: Refactor banshee example

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

SVN revision: 80685

11 years agoedbus: Refactor edbus_connection_name
José Roberto de Souza [Tue, 11 Dec 2012 19:49:46 +0000 (19:49 +0000)]
edbus: Refactor edbus_connection_name

Simplifications on "monitor" of NameOwnerChanged
Life cycle tied with refcount, objs, and name_owner_changed list.

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

SVN revision: 80684

11 years agoedbus: Handle 'unref signal handler inside of own callback' with ref and unref
José Roberto de Souza [Tue, 11 Dec 2012 19:49:42 +0000 (19:49 +0000)]
edbus: Handle 'unref signal handler inside of own callback' with ref and unref

This way is much simpler and doesn't generate many events when main loop
is quit inside of a signal handler callback.

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

SVN revision: 80683

11 years agoedbus: Use edbus_connection_name_get() instead of try find and alloc
José Roberto de Souza [Tue, 11 Dec 2012 19:49:37 +0000 (19:49 +0000)]
edbus: Use edbus_connection_name_get() instead of try find and alloc

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

SVN revision: 80682

11 years agoedbus: Add EINA_ARG_NONNULL and EINA_WARN_UNUSED_RESULT to API
José Roberto de Souza [Tue, 11 Dec 2012 19:49:33 +0000 (19:49 +0000)]
edbus: Add EINA_ARG_NONNULL and EINA_WARN_UNUSED_RESULT to API

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

SVN revision: 80681

11 years agoedbus: Implement edbus_object_managed_objects_get()
José Roberto de Souza [Tue, 11 Dec 2012 19:49:27 +0000 (19:49 +0000)]
edbus: Implement edbus_object_managed_objects_get()

Also removed edbus_object_interfaces_added_callback_add/del() because we already
have object events for that.

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

SVN revision: 80680

11 years agoedbus: Implement edbus_object_event_callback_add()
José Roberto de Souza [Mon, 3 Dec 2012 12:09:53 +0000 (12:09 +0000)]
edbus: Implement edbus_object_event_callback_add()

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

SVN revision: 80058

11 years agoedbus: remove static from var
Lucas De Marchi [Mon, 3 Dec 2012 12:09:43 +0000 (12:09 +0000)]
edbus: remove static from var

This is not needed. Let it on stack.

SVN revision: 80057

11 years agorpm spec for new edbus
Rui Seabra [Sun, 18 Nov 2012 11:22:16 +0000 (11:22 +0000)]
rpm spec for new edbus

SVN revision: 79417

11 years agoedbus: Fix doxygen layout
José Roberto de Souza [Fri, 16 Nov 2012 13:07:58 +0000 (13:07 +0000)]
edbus: Fix doxygen layout

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

SVN revision: 79389

11 years agoedbus: Add main page to doxygen
José Roberto de Souza [Fri, 16 Nov 2012 13:07:53 +0000 (13:07 +0000)]
edbus: Add main page to doxygen

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

SVN revision: 79388

11 years agoedbus: Rename edbus_object_bus_path_get() to edbus_object_path_get()
José Roberto de Souza [Fri, 16 Nov 2012 13:07:45 +0000 (13:07 +0000)]
edbus: Rename edbus_object_bus_path_get() to edbus_object_path_get()

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

SVN revision: 79387

11 years agoedbus: Fix search of children objects when path = "/"
José Roberto de Souza [Fri, 16 Nov 2012 13:07:38 +0000 (13:07 +0000)]
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

11 years agoedbus: Fix segfault in edbus_message_to_eina_value() when message have no args
José Roberto de Souza [Fri, 16 Nov 2012 13:07:32 +0000 (13:07 +0000)]
edbus: Fix segfault in edbus_message_to_eina_value() when message have no args

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

SVN revision: 79385

11 years agoedbus: Cosmetic change
José Roberto de Souza [Fri, 16 Nov 2012 13:07:26 +0000 (13:07 +0000)]
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

11 years agoedbus: Remove stringshare of Instrospectable interface
José Roberto de Souza [Fri, 16 Nov 2012 13:07:21 +0000 (13:07 +0000)]
edbus: Remove stringshare of Instrospectable interface

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

SVN revision: 79383

11 years agoedbus: Add edbus_service_object_manager_attach/detach
José Roberto de Souza [Fri, 16 Nov 2012 13:07:14 +0000 (13:07 +0000)]
edbus: Add edbus_service_object_manager_attach/detach

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

SVN revision: 79382

11 years agoedbus: Fix leak in GetAll Properties of Proxy monitor
José Roberto de Souza [Fri, 16 Nov 2012 13:07:06 +0000 (13:07 +0000)]
edbus: Fix leak in GetAll Properties of Proxy monitor

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

SVN revision: 79381

11 years agoedbus: Add input message to get property function
José Roberto de Souza [Fri, 16 Nov 2012 13:06:53 +0000 (13:06 +0000)]
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

11 years agoedbus: add const where it's due and remove casts
Lucas De Marchi [Mon, 12 Nov 2012 16:16:16 +0000 (16:16 +0000)]
edbus: add const where it's due and remove casts

SVN revision: 79185

11 years agoedbus: check signature earlier and fail on invalid signature
Lucas De Marchi [Mon, 12 Nov 2012 16:16:10 +0000 (16:16 +0000)]
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

11 years agoedbus: do not alloc/free eina_strbuf. Reset it instead
Lucas De Marchi [Mon, 12 Nov 2012 16:16:04 +0000 (16:16 +0000)]
edbus: do not alloc/free eina_strbuf. Reset it instead

SVN revision: 79183

11 years agoedbus: simplify/unify appending args to methods/signals
Lucas De Marchi [Mon, 12 Nov 2012 16:15:58 +0000 (16:15 +0000)]
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

11 years agoedbus: compat introspection with no annotation/arg
Lucas De Marchi [Mon, 12 Nov 2012 16:15:52 +0000 (16:15 +0000)]
edbus: compat introspection with no annotation/arg

SVN revision: 79181

11 years agoedbus: add son in server example for tests
Lucas De Marchi [Mon, 12 Nov 2012 16:15:43 +0000 (16:15 +0000)]
edbus: add son in server example for tests

SVN revision: 79180

11 years agoedbus: fix checking if root objects are our son
Lucas De Marchi [Mon, 12 Nov 2012 16:07:12 +0000 (16:07 +0000)]
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

11 years agoedbus: simplify and fix formatting
Lucas De Marchi [Mon, 12 Nov 2012 16:07:06 +0000 (16:07 +0000)]
edbus: simplify and fix formatting

SVN revision: 79178

11 years agoedbus: move function up - no fwd declaration when not needed
Lucas De Marchi [Mon, 12 Nov 2012 16:07:01 +0000 (16:07 +0000)]
edbus: move function up - no fwd declaration when not needed

SVN revision: 79177

11 years agoedbus: simplify and explain code
Lucas De Marchi [Mon, 12 Nov 2012 16:06:51 +0000 (16:06 +0000)]
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

11 years agoedbus: Append path of child objects in Introspectable
José Roberto de Souza [Mon, 12 Nov 2012 16:06:41 +0000 (16:06 +0000)]
edbus: Append path of child objects in Introspectable

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

SVN revision: 79175

11 years agoedbus: reply for name request is reply code
Sebastian Dransfeld [Sun, 11 Nov 2012 20:58:38 +0000 (20:58 +0000)]
edbus: reply for name request is reply code

SVN revision: 79121

11 years agoeven if we have an older libdbus - let's #define the strings that are
Carsten Haitzler [Sat, 10 Nov 2012 04:26:48 +0000 (04:26 +0000)]
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

11 years agoedbus: Add invalidate to EDBus_Property
José Roberto de Souza [Fri, 9 Nov 2012 18:35:20 +0000 (18:35 +0000)]
edbus: Add invalidate to EDBus_Property

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

SVN revision: 79036

11 years agoedbus: Implement DBus.Properties for services
José Roberto de Souza [Fri, 9 Nov 2012 18:35:14 +0000 (18:35 +0000)]
edbus: Implement DBus.Properties for services

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

SVN revision: 79035

11 years agoedbus: Fix typo
Sebastian Dransfeld [Sat, 3 Nov 2012 21:43:40 +0000 (21:43 +0000)]
edbus: Fix typo

SVN revision: 78887

11 years agoedbus2: quiet warning (again)
Sebastian Dransfeld [Fri, 2 Nov 2012 20:12:27 +0000 (20:12 +0000)]
edbus2: quiet warning (again)

Say what you want, but this creates quite a lot of warnings, and
warnings when including another header into a project is no good. I want
to just see my own warnings.

So as long as there is only two NULLs, please let them be there.

SVN revision: 78873

11 years agoadd copying (lgpl like elm) and readme.
Gustavo Sverzut Barbieri [Fri, 2 Nov 2012 14:38:51 +0000 (14:38 +0000)]
add copying (lgpl like elm) and readme.

SVN revision: 78868

11 years agoedbus: prevent segv
Sebastian Dransfeld [Fri, 2 Nov 2012 02:49:24 +0000 (02:49 +0000)]
edbus: prevent segv

SVN revision: 78816

11 years agoedbus: register interface before name
Sebastian Dransfeld [Fri, 2 Nov 2012 01:46:56 +0000 (01:46 +0000)]
edbus: register interface before name

Else will clients activating a service fail, as the dbus expects to know
available interfaces on name request.

SVN revision: 78811

11 years agoedbus: typo
Sebastian Dransfeld [Fri, 2 Nov 2012 01:46:50 +0000 (01:46 +0000)]
edbus: typo

SVN revision: 78810

11 years agoedbus: exec configure in the end to preserve return code
Lucas De Marchi [Thu, 1 Nov 2012 16:41:17 +0000 (16:41 +0000)]
edbus: exec configure in the end to preserve return code

SVN revision: 78803

11 years agoedbus: Add Properties to edbus service API
José Roberto de Souza [Thu, 1 Nov 2012 16:41:11 +0000 (16:41 +0000)]
edbus: Add Properties to edbus service API

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

SVN revision: 78802

11 years agoedbus: Use separate struct for description of Service Interface
José Roberto de Souza [Thu, 1 Nov 2012 16:41:04 +0000 (16:41 +0000)]
edbus: Use separate struct for description of Service Interface

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

SVN revision: 78801

11 years agoedbus: Make on_name_owner_changed() return upon error getting args
José Roberto de Souza [Mon, 29 Oct 2012 22:02:46 +0000 (22:02 +0000)]
edbus: Make on_name_owner_changed() return upon error getting args

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

SVN revision: 78626

11 years agoedbus: Remove unnecessary define
José Roberto de Souza [Mon, 29 Oct 2012 22:02:41 +0000 (22:02 +0000)]
edbus: Remove unnecessary define

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

SVN revision: 78625

11 years agoedbus: Add missed eina_magic names
José Roberto de Souza [Mon, 29 Oct 2012 22:02:36 +0000 (22:02 +0000)]
edbus: Add missed eina_magic names

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

SVN revision: 78624

11 years agoedbus: Fix wrong pointer passed to edbus_message_iter_arguments_get
José Roberto de Souza [Mon, 29 Oct 2012 22:02:32 +0000 (22:02 +0000)]
edbus: Fix wrong pointer passed to edbus_message_iter_arguments_get

We were expected to pass an int pointer, but instead we were passing a
char, which leads to a crash in complex_type_server.

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

SVN revision: 78623

11 years agoedbus: Use a "make examples" rule to make examples
Lucas De Marchi [Mon, 29 Oct 2012 22:02:25 +0000 (22:02 +0000)]
edbus: Use a "make examples" rule to make examples

Instead of having to enable the examples during configure time, separate
the examples in a special target, "make examples". It's currently a bit
different from the libraries in the common efl tree since we are not
using recursive makefiles.

SVN revision: 78622

11 years agoedbus: Add some EINA_SAFETY to public API
José Roberto de Souza [Fri, 26 Oct 2012 18:20:19 +0000 (18:20 +0000)]
edbus: Add some EINA_SAFETY to public API

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

SVN revision: 78553

11 years agoedbus: Revert 'Add initializers to stop warnings' r78292
José Roberto de Souza [Fri, 26 Oct 2012 18:20:14 +0000 (18:20 +0000)]
edbus: Revert 'Add initializers to stop warnings' r78292

http://www.mail-archive.com/enlightenment-devel@lists.sourceforge.net/msg46587.html

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

SVN revision: 78552

11 years agoedbus: Add doc of edbus_message to/from eina_value
José Roberto de Souza [Fri, 26 Oct 2012 18:20:09 +0000 (18:20 +0000)]
edbus: Add doc of edbus_message to/from eina_value

Move edbus_to/from_eina_value.h to single file

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

SVN revision: 78551

11 years agoedbus: Add edbus_message to/from eina_value examples
José Roberto de Souza [Fri, 26 Oct 2012 18:20:02 +0000 (18:20 +0000)]
edbus: Add edbus_message to/from eina_value examples

Also move properties changed example to this file.

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

SVN revision: 78550

11 years agoedbus: Break while if a error happen in message_arguments_set
José Roberto de Souza [Fri, 26 Oct 2012 18:19:57 +0000 (18:19 +0000)]
edbus: Break while if a error happen in message_arguments_set

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

SVN revision: 78549

11 years agoedbus: Parse Eina_Value to edbus_message
José Roberto de Souza [Fri, 26 Oct 2012 18:19:52 +0000 (18:19 +0000)]
edbus: Parse Eina_Value to edbus_message

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

SVN revision: 78548

11 years agoedbus: Add edbus_proxy_properties_changed_callback_add
José Roberto de Souza [Fri, 26 Oct 2012 18:19:46 +0000 (18:19 +0000)]
edbus: Add edbus_proxy_properties_changed_callback_add

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

SVN revision: 78547

11 years agoedbus: Add edbus_proxy_property_local_get and get_all
José Roberto de Souza [Fri, 26 Oct 2012 18:19:42 +0000 (18:19 +0000)]
edbus: Add edbus_proxy_property_local_get and get_all

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

SVN revision: 78546

11 years agoedbus: Mark properties_signal to be removed
Lucas De Marchi [Fri, 26 Oct 2012 18:19:37 +0000 (18:19 +0000)]
edbus: Mark properties_signal to be removed

SVN revision: 78545

11 years agoedbus: Implementation of EDBUS_PROXY_EVENTS and edbus_proxy_properties_monitor
José Roberto de Souza [Fri, 26 Oct 2012 18:19:32 +0000 (18:19 +0000)]
edbus: Implementation of EDBUS_PROXY_EVENTS and edbus_proxy_properties_monitor

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

SVN revision: 78544

11 years agoedbus: Parse EDBus_Message to Eina_Value
José Roberto de Souza [Fri, 26 Oct 2012 18:19:25 +0000 (18:19 +0000)]
edbus: Parse EDBus_Message to Eina_Value

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

SVN revision: 78543

11 years agoedbus: Fix remaining signature with EDBUS_ARGS({ NULL, NULL })
Lucas De Marchi [Fri, 26 Oct 2012 16:46:06 +0000 (16:46 +0000)]
edbus: Fix remaining signature with EDBUS_ARGS({ NULL, NULL })

SVN revision: 78542

11 years agoedbus: Fix instrospect signature
José Roberto de Souza [Fri, 26 Oct 2012 16:45:58 +0000 (16:45 +0000)]
edbus: Fix instrospect signature

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

SVN revision: 78541

11 years agoDoxyfile.in: Remove obsolte doxygen tags from all our Doxyfile.in files.
Stefan Schmidt [Wed, 24 Oct 2012 19:50:29 +0000 (19:50 +0000)]
Doxyfile.in: Remove obsolte doxygen tags from all our Doxyfile.in files.

Doygen tells us:
warning: Tag `SHOW_DIRECTORIES' at line 507 of file Doxyfile has become obsolete.
To avoid this warning please remove this line from your configuration file or upgrade it using "doxygen -u"
warning: Tag `HTML_ALIGN_MEMBERS' at line 879 of file Doxyfile has become obsolete.
To avoid this warning please remove this line from your configuration file or upgrade it using "doxygen -u"
warning: Tag `USE_INLINE_TREES' at line 1065 of file Doxyfile has become obsolete.
To avoid this warning please remove this line from your configuration file or upgrade it using "doxygen -u"

So we are nice and remove them. A yay for the day where we have amerged tree and
not two dozens of Doxyfile.in files floating around.

SVN revision: 78409

11 years agoedbus: Add initializers to stop warnings
Sebastian Dransfeld [Sun, 21 Oct 2012 04:52:59 +0000 (04:52 +0000)]
edbus: Add initializers to stop warnings

SVN revision: 78292

11 years agoedbus: Add example for emitting signal
Lucas De Marchi [Fri, 19 Oct 2012 18:24:36 +0000 (18:24 +0000)]
edbus: Add example for emitting signal

SVN revision: 78263

11 years agoedbus: Remove space after for-like macros
Lucas De Marchi [Fri, 19 Oct 2012 18:24:30 +0000 (18:24 +0000)]
edbus: Remove space after for-like macros

SVN revision: 78262

11 years agoedbus: Add a private function edbus_message_iter_sub_iter_get()
José Roberto de Souza [Thu, 18 Oct 2012 20:11:10 +0000 (20:11 +0000)]
edbus: Add a private function edbus_message_iter_sub_iter_get()

Function will be used in a future patch.

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

SVN revision: 78199

11 years agoedbus: Avoid call _on_signal_handler_free over freed object or proxy
José Roberto de Souza [Thu, 18 Oct 2012 20:11:04 +0000 (20:11 +0000)]
edbus: Avoid call _on_signal_handler_free over freed object or proxy

If a signal handler callback remove the last reference of his parent, his parent
will unref all your childrens including signal handler, but signal handler could
not be freed until your callback was finish so a event to delete it will be
created and when this event happen the signal handler parent was already freed
and we could not call _on_signal_handler_free().

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

SVN revision: 78198

11 years agoedbus: Use NULL instead of EDBUS_ARGS({"", ""})
José Roberto de Souza [Thu, 18 Oct 2012 17:00:28 +0000 (17:00 +0000)]
edbus: Use NULL instead of EDBUS_ARGS({"", ""})

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

SVN revision: 78192

11 years agoedbus: Fix type check of solo structs
José Roberto de Souza [Tue, 16 Oct 2012 22:35:50 +0000 (22:35 +0000)]
edbus: Fix type check of solo structs

When reading messages that contain structs the type that comes from the
wire (and obtained with dbus_message_iter_get_arg_type()) is 'r'.
However 'r' never appears in a signature and dbus_signature_iter_*
returns '('.

Ref: http://dbus.freedesktop.org/doc/dbus-specification.html#message-protocol-signatures

"STRUCT has a type code, ASCII character 'r', but this type code does not
appear in signatures. Instead, ASCII characters '(' and ')' are used to
mark the beginning and end of the struct. So for example, a struct
containing two integers would have this signature:"

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

SVN revision: 78072

11 years agoedbus: Add dictionary iterator
José Roberto de Souza [Tue, 16 Oct 2012 22:35:44 +0000 (22:35 +0000)]
edbus: Add dictionary iterator

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

SVN revision: 78071

11 years agoedbus: Add const EDBus_Message parameter of
José Roberto de Souza [Tue, 16 Oct 2012 15:07:17 +0000 (15:07 +0000)]
edbus: Add const EDBus_Message parameter of
 edbus_message_iter_get

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

SVN revision: 78068

11 years agoedbus: Rename functions to obey EFL codding style
José Roberto de Souza [Tue, 16 Oct 2012 15:07:11 +0000 (15:07 +0000)]
edbus: Rename functions to obey EFL codding style

Rename edbus_message_iter_append_basic to edbus_message_iter_basic_append.
Rename edbus_message_iter_get_basic to edbus_message_iter_basic_get

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

SVN revision: 78067

11 years agoedbus: Remove edbus_real_method
José Roberto de Souza [Tue, 9 Oct 2012 15:23:25 +0000 (15:23 +0000)]
edbus: Remove edbus_real_method

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

SVN revision: 77656

11 years agoedbus: Fix example of double container
José Roberto de Souza [Tue, 9 Oct 2012 15:23:13 +0000 (15:23 +0000)]
edbus: Fix example of double container

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

SVN revision: 77655