summary |
shortlog | log |
commit |
commitdiff |
tree
first ⋅ prev ⋅ next
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
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
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
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
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
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
Lucas De Marchi [Mon, 12 Nov 2012 16:15:52 +0000 (16:15 +0000)]
edbus: compat introspection with no annotation/arg
SVN revision: 79181
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
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
Lucas De Marchi [Mon, 12 Nov 2012 16:07:06 +0000 (16:07 +0000)]
edbus: simplify and fix formatting
SVN revision: 79178
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
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
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
Sebastian Dransfeld [Sun, 11 Nov 2012 20:58:38 +0000 (20:58 +0000)]
edbus: reply for name request is reply code
SVN revision: 79121
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
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
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
Sebastian Dransfeld [Sat, 3 Nov 2012 21:43:40 +0000 (21:43 +0000)]
edbus: Fix typo
SVN revision: 78887
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
Gustavo Sverzut Barbieri [Fri, 2 Nov 2012 14:38:51 +0000 (14:38 +0000)]
add copying (lgpl like elm) and readme.
SVN revision: 78868
Sebastian Dransfeld [Fri, 2 Nov 2012 02:49:24 +0000 (02:49 +0000)]
edbus: prevent segv
SVN revision: 78816
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
Sebastian Dransfeld [Fri, 2 Nov 2012 01:46:50 +0000 (01:46 +0000)]
edbus: typo
SVN revision: 78810
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
Lucas De Marchi [Fri, 26 Oct 2012 18:19:37 +0000 (18:19 +0000)]
edbus: Mark properties_signal to be removed
SVN revision: 78545
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
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
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
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
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
Sebastian Dransfeld [Sun, 21 Oct 2012 04:52:59 +0000 (04:52 +0000)]
edbus: Add initializers to stop warnings
SVN revision: 78292
Lucas De Marchi [Fri, 19 Oct 2012 18:24:36 +0000 (18:24 +0000)]
edbus: Add example for emitting signal
SVN revision: 78263
Lucas De Marchi [Fri, 19 Oct 2012 18:24:30 +0000 (18:24 +0000)]
edbus: Remove space after for-like macros
SVN revision: 78262
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
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
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
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
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
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
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
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
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
Sebastian Dransfeld [Tue, 9 Oct 2012 08:47:59 +0000 (08:47 +0000)]
edbus: check if DBUS_TYPE_UNIX_FD exists
SVN revision: 77629
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
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
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
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
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
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
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
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
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
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
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
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
Lucas De Marchi [Fri, 21 Sep 2012 21:57:37 +0000 (21:57 +0000)]
edbus: Ignore the compiled library
SVN revision: 77003
Lucas De Marchi [Fri, 21 Sep 2012 20:20:08 +0000 (20:20 +0000)]
edbus: Also rename installed lib to edbus2
SVN revision: 76997
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
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