platform/upstream/eldbus.git
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

11 years agoedbus: check if DBUS_TYPE_UNIX_FD exists
Sebastian Dransfeld [Tue, 9 Oct 2012 08:47:59 +0000 (08:47 +0000)]
edbus: check if DBUS_TYPE_UNIX_FD exists

SVN revision: 77629

11 years agoedbus: Improve doc of name_owner_changed_callback_add()
Lucas De Marchi [Tue, 2 Oct 2012 21:42:02 +0000 (21:42 +0000)]
edbus: Improve doc of name_owner_changed_callback_add()

Explain the reason for the extra flag on this function.

SVN revision: 77339

11 years agoedbus: Add flag to name_owner_changed_callback_add to
José Roberto de Souza [Tue, 2 Oct 2012 21:41:58 +0000 (21:41 +0000)]
edbus: Add flag to name_owner_changed_callback_add to
 allow initial call

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

SVN revision: 77338

11 years agoedbus: Call callback if already have a unique id when
José Roberto de Souza [Tue, 2 Oct 2012 21:41:53 +0000 (21:41 +0000)]
edbus: Call callback if already have a unique id when
 another callback is added

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

SVN revision: 77337

11 years agoedbus: Fix typos
Luis Felipe Strano Moraes [Tue, 2 Oct 2012 21:02:16 +0000 (21:02 +0000)]
edbus: Fix typos

Patch by: Luis Felipe Strano Moraes <luis.strano@gmail.com>

SVN revision: 77335

11 years agoedbus: Fix lib name in edbus2.pc.in
José Roberto de Souza [Wed, 26 Sep 2012 20:33:53 +0000 (20:33 +0000)]
edbus: Fix lib name in edbus2.pc.in

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

SVN revision: 77102

11 years agoedbus: Full file path on EXTRA_DIST of doc
José Roberto de Souza [Wed, 26 Sep 2012 18:49:16 +0000 (18:49 +0000)]
edbus: Full file path on EXTRA_DIST of doc

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

SVN revision: 77098

11 years agoedbus: Add edbus_signal_handler_match_extra_vset
José Roberto de Souza [Wed, 26 Sep 2012 18:16:34 +0000 (18:16 +0000)]
edbus: Add edbus_signal_handler_match_extra_vset

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

SVN revision: 77095

11 years agoedbus: Fix building doc outside of tree
José Roberto de Souza [Wed, 26 Sep 2012 18:16:28 +0000 (18:16 +0000)]
edbus: Fix building doc outside of tree

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

SVN revision: 77094

11 years agoedbus: Add example of 2 containners at same level.
José Roberto de Souza [Fri, 21 Sep 2012 22:44:17 +0000 (22:44 +0000)]
edbus: Add example of 2 containners at same level.

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

SVN revision: 77007

11 years agoedbus: Reduce variable scope and add const where it's
Lucas De Marchi [Fri, 21 Sep 2012 22:44:11 +0000 (22:44 +0000)]
edbus: Reduce variable scope and add const where it's
 due

SVN revision: 77006

11 years agoedbus: Do not build examples by default
Lucas De Marchi [Fri, 21 Sep 2012 22:44:05 +0000 (22:44 +0000)]
edbus: Do not build examples by default

It's weird to enable/disable the examples at configure time rather than
having a rule "make examples", but this appears to be how it's done in
EFL.

SVN revision: 77005

11 years agoedbus: Fix memory leak in
José Roberto de Souza [Fri, 21 Sep 2012 22:43:58 +0000 (22:43 +0000)]
edbus: Fix memory leak in
 edbus_signal_handler_match_extra_set()

And allow values == "" in match_extra_set()

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

SVN revision: 77004

11 years agoedbus: Ignore the compiled library
Lucas De Marchi [Fri, 21 Sep 2012 21:57:37 +0000 (21:57 +0000)]
edbus: Ignore the compiled library

SVN revision: 77003

11 years agoedbus: Also rename installed lib to edbus2
Lucas De Marchi [Fri, 21 Sep 2012 20:20:08 +0000 (20:20 +0000)]
edbus: Also rename installed lib to edbus2

SVN revision: 76997

11 years agoedbus: Rename edbus.pc to edbus2.pc to avoi conflict
Lucas De Marchi [Fri, 21 Sep 2012 19:56:52 +0000 (19:56 +0000)]
edbus: Rename edbus.pc to edbus2.pc to avoi conflict

Even though the previous library was named E_DBus, it was installing an
edbus.pc file. Rename our file so it doesn't conflct with the other.

SVN revision: 76995

11 years agoAdd new edbus library, aka e_dbus v2
Lucas De Marchi [Mon, 17 Sep 2012 20:41:05 +0000 (20:41 +0000)]
Add new edbus library, aka e_dbus v2

SVN revision: 76775