Dictionary data type

deepan muthusamy deepan.m2903 at gmail.com
Wed Sep 19 15:41:22 UTC 2018


What is the best way to send dictionary data type?.


On Wed, 19 Sep 2018, 5:30 pm , <dbus-request at lists.freedesktop.org> wrote:

> Send dbus mailing list submissions to
>         dbus at lists.freedesktop.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
>         https://lists.freedesktop.org/mailman/listinfo/dbus
> or, via email, send a message with subject or body 'help' to
>         dbus-request at lists.freedesktop.org
>
> You can reach the person managing the list at
>         dbus-owner at lists.freedesktop.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of dbus digest..."
>
>
> Today's Topics:
>
>    1. Re: Multiple connections to dbus-daemon in single appication
>       (Lawrence D'Oliveiro)
>    2. Dictionary data type (deepan muthusamy)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Wed, 19 Sep 2018 13:55:13 +1200
> From: Lawrence D'Oliveiro <ldo at geek-central.gen.nz>
> To: dbus at lists.freedesktop.org
> Subject: Re: Multiple connections to dbus-daemon in single appication
> Message-ID: <20180919135513.5fd678ae at theon.geek-central.gen.nz>
> Content-Type: text/plain; charset=UTF-8
>
> On Wed, 19 Sep 2018 10:45:36 +0900, dtdang wrote:
>
> > > On Tue, 18 Sep 2018 10:00:21 +0900, dtdang wrote:
> >>
> >> On Tue, 18 Sep 2018 13:22:51 +1200, Lawrence D'Oliveiro wrote:
> >>
> >>> I would like to register in three separated connections since
> >>> client will send command with option (like using dbus-send with
> >>> option --dest=com.app.bluetooth or --dest=com.ap.wifi or
> >>> --dest=com.ap.ap). So I want to open three separated connection
> >>> with specific name in three threads to listen from client.
> >>
> >> You can do all that on one connection.
> >>
> > Could you give any advises in detail ?
> > In worst case, there is three commands sending to three different
> > destination in parallel.
>
> It’s easy. You can request the registration of any number of names on a
> single bus connection
> <https://dbus.freedesktop.org/doc/api/html/group__DBusBus.html>. Then,
> when you receive a message, you call dbus_message_get_destination()
> <
> https://dbus.freedesktop.org/doc/api/html/group__DBusMessage.html#gaac65c926e6253e49aa689b4f032fad45
> >
> to determine the exact name it was addressed to, and dispatch your
> method-call handling on that.
>
>
> ------------------------------
>
> Message: 2
> Date: Wed, 19 Sep 2018 10:35:18 +0530
> From: deepan muthusamy <deepan.m2903 at gmail.com>
> To: dbus at lists.freedesktop.org
> Subject: Dictionary data type
> Message-ID:
>         <
> CAPNtGhWAXVcdghK8uDmBCcqRrtjDsLQQEKcRXiNjPbuY-PhE4g at mail.gmail.com>
> Content-Type: text/plain; charset="utf-8"
>
> Hi,
> Iam using libdbus having glib binding.
> I want to sent array of dictionary having one integer and array of
> string(a{ias}).
>
> How to send this?
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> https://lists.freedesktop.org/archives/dbus/attachments/20180919/fc9db13b/attachment-0001.html
> >
>
> ------------------------------
>
> Subject: Digest Footer
>
> _______________________________________________
> dbus mailing list
> dbus at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/dbus
>
>
> ------------------------------
>
> End of dbus Digest, Vol 158, Issue 9
> ************************************
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/dbus/attachments/20180919/5b538345/attachment.html>


More information about the dbus mailing list