All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/6] D-Bus client and proxy API
@ 2017-12-01 15:06 Szymon Janc
  2017-12-01 15:06 ` [PATCH 1/6] dbus: Add l_dbus_message_builder_append_from_valist Szymon Janc
                   ` (5 more replies)
  0 siblings, 6 replies; 11+ messages in thread
From: Szymon Janc @ 2017-12-01 15:06 UTC (permalink / raw)
  To: ell

[-- Attachment #1: Type: text/plain, Size: 1644 bytes --]

Hi,

This set adds initial version of D-Bus client and proxy APIs.
With this is it possible to connect to specified service, monitor
proxies being added/removed, set/get properties and call methods
on specific proxy.

First 2 patches are some extensions to message API that were needed for
client code.

This is tested against BlueZ D-Bus API and seems to work fine within
my (simple) application.

Changes since RFC:
 - addressed comments from Denis
 - proxy is now obtained only from added callback - this may be
   extended in future if needed
 - no more proxy ref counting as it is valid from add to remove callback
 - pending set properties and method calls are cancelled on proxy removal
 - added simple API usage example to examples/dbus-client.c

Comments are welcome.

Szymon Janc (6):
  dbus: Add l_dbus_message_builder_append_from_valist
  dbus: Use l_dbus_message_builder_append_from_valist in
    append_arguments
  dbus: Add support for proxy interface
  dbus: Add support for setting properties on D-Bus proxy interface
  dbus: Add convenient API for calling method on proxy interface
  examples: Extend dbus-client example

 Makefile.am            |   2 +
 ell/dbus-client.c      | 714 +++++++++++++++++++++++++++++++++++++++++++++++++
 ell/dbus-client.h      |  98 +++++++
 ell/dbus-message.c     | 461 +++++++++++++++----------------
 ell/dbus.h             |   4 +
 ell/ell.h              |   1 +
 examples/dbus-client.c |  93 ++++++-
 7 files changed, 1138 insertions(+), 235 deletions(-)
 create mode 100644 ell/dbus-client.c
 create mode 100644 ell/dbus-client.h

-- 
2.14.3


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2017-12-05 17:05 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-12-01 15:06 [PATCH 0/6] D-Bus client and proxy API Szymon Janc
2017-12-01 15:06 ` [PATCH 1/6] dbus: Add l_dbus_message_builder_append_from_valist Szymon Janc
2017-12-04 18:25   ` Denis Kenzior
2017-12-01 15:06 ` [PATCH 2/6] dbus: Use l_dbus_message_builder_append_from_valist in append_arguments Szymon Janc
2017-12-04 18:25   ` Denis Kenzior
2017-12-01 15:06 ` [PATCH 3/6] dbus: Add support for proxy interface Szymon Janc
2017-12-04 18:40   ` Denis Kenzior
2017-12-05 17:05     ` Szymon Janc
2017-12-01 15:06 ` [PATCH 4/6] dbus: Add support for setting properties on D-Bus " Szymon Janc
2017-12-01 15:06 ` [PATCH 5/6] dbus: Add convenient API for calling method on " Szymon Janc
2017-12-01 15:06 ` [PATCH 6/6] examples: Extend dbus-client example Szymon Janc

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.