Commit Graph

86 Commits

Author SHA1 Message Date
José Roberto de Souza 4ec1d6c4bb edbus: Implement edbus_object_event_callback_add()
Patch by: José Roberto de Souza  <zehortigoza@profusion.mobi>



SVN revision: 80058
2012-12-03 12:09:53 +00:00
Lucas De Marchi 7c533e08c5 edbus: remove static from var
This is not needed. Let it on stack.



SVN revision: 80057
2012-12-03 12:09:43 +00:00
Rui Seabra aa10dd0b5a rpm spec for new edbus
SVN revision: 79417
2012-11-18 11:22:16 +00:00
José Roberto de Souza 8338efaf60 edbus: Fix doxygen layout
Patch by: José Roberto de Souza  <zehortigoza@profusion.mobi>



SVN revision: 79389
2012-11-16 13:07:58 +00:00
José Roberto de Souza ba1f699883 edbus: Add main page to doxygen
Patch by: José Roberto de Souza  <zehortigoza@profusion.mobi>



SVN revision: 79388
2012-11-16 13:07:53 +00:00
José Roberto de Souza 4fa2b8d735 edbus: Rename edbus_object_bus_path_get() to edbus_object_path_get()
Patch by: José Roberto de Souza  <zehortigoza@profusion.mobi>



SVN revision: 79387
2012-11-16 13:07:45 +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 7a407c66db 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
2012-11-16 13:07:32 +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 d26d9a48b1 edbus: Fix leak in GetAll Properties of Proxy monitor
Patch by: José Roberto de Souza  <zehortigoza@profusion.mobi>



SVN revision: 79381
2012-11-16 13:07:06 +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 0f927daa19 edbus: add son in server example for tests
SVN revision: 79180
2012-11-12 16:15:43 +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
Sebastian Dransfeld f8d97711a7 edbus: reply for name request is reply code
SVN revision: 79121
2012-11-11 20:58:38 +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 faefc75e95 edbus: Fix typo
SVN revision: 78887
2012-11-03 21:43:40 +00:00
Sebastian Dransfeld d96f7e9f98 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
2012-11-02 20:12:27 +00:00
Gustavo Sverzut Barbieri 2d2f2236a4 add copying (lgpl like elm) and readme.
SVN revision: 78868
2012-11-02 14:38:51 +00:00
Sebastian Dransfeld 5b3ac2cb0c edbus: prevent segv
SVN revision: 78816
2012-11-02 02:49:24 +00:00
Sebastian Dransfeld 75579a775b 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
2012-11-02 01:46:56 +00:00
Sebastian Dransfeld 593b9c00e0 edbus: typo
SVN revision: 78810
2012-11-02 01:46:50 +00:00
Lucas De Marchi 20ec8868e6 edbus: exec configure in the end to preserve return code
SVN revision: 78803
2012-11-01 16:41:17 +00:00
José Roberto de Souza dfd2bd0204 edbus: Add Properties to edbus service API
Patch by: José Roberto de Souza  <zehortigoza@profusion.mobi>



SVN revision: 78802
2012-11-01 16:41:11 +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 4de063a9fb edbus: Make on_name_owner_changed() return upon error getting args
Patch by: José Roberto de Souza  <zehortigoza@profusion.mobi>



SVN revision: 78626
2012-10-29 22:02:46 +00:00
José Roberto de Souza 959cc5ade9 edbus: Remove unnecessary define
Patch by: José Roberto de Souza  <zehortigoza@profusion.mobi>



SVN revision: 78625
2012-10-29 22:02:41 +00:00
José Roberto de Souza f0532b7643 edbus: Add missed eina_magic names
Patch by: José Roberto de Souza  <zehortigoza@profusion.mobi>



SVN revision: 78624
2012-10-29 22:02:36 +00:00
José Roberto de Souza f94520c1fa 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
2012-10-29 22:02:32 +00:00
Lucas De Marchi b312303137 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
2012-10-29 22:02:25 +00:00
José Roberto de Souza dd7e8ad1a7 edbus: Add some EINA_SAFETY to public API
Patch by: José Roberto de Souza  <zehortigoza@profusion.mobi>



SVN revision: 78553
2012-10-26 18:20:19 +00:00
José Roberto de Souza 5153494542 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
2012-10-26 18:20:14 +00:00
José Roberto de Souza de74c4245b 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
2012-10-26 18:20:09 +00:00
José Roberto de Souza a69f6ce338 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
2012-10-26 18:20:02 +00:00
José Roberto de Souza c256bce151 edbus: Break while if a error happen in message_arguments_set
Patch by: José Roberto de Souza  <zehortigoza@profusion.mobi>



SVN revision: 78549
2012-10-26 18:19:57 +00:00
José Roberto de Souza 1513705c9b edbus: Parse Eina_Value to edbus_message
Patch by: José Roberto de Souza  <zehortigoza@profusion.mobi>



SVN revision: 78548
2012-10-26 18:19:52 +00:00
José Roberto de Souza 4f1b905db3 edbus: Add edbus_proxy_properties_changed_callback_add
Patch by: José Roberto de Souza  <zehortigoza@profusion.mobi>



SVN revision: 78547
2012-10-26 18:19:46 +00:00
José Roberto de Souza e8b9c7d42e edbus: Add edbus_proxy_property_local_get and get_all
Patch by: José Roberto de Souza  <zehortigoza@profusion.mobi>



SVN revision: 78546
2012-10-26 18:19:42 +00:00