Dictionary data type
deepan muthusamy <[email protected]>
| Newsgroups | gmane.comp.freedesktop.dbus |
|---|---|
| Message-ID | <CAPNtGhX6whNAZw8GZEdZCWw9=oEhwzyXZnFhVvcxetaOk2+Prw@mail.gmail.com> |
What is the best way to send dictionary data type?. On Wed, 19 Sep 2018, 5:30 pm , <[email protected]> wrote: > Send dbus mailing list submissions to > [email protected] > > 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 > [email protected] > > You can reach the person managing the list at > [email protected] > > 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-kC51rjc0cqs1dNLGKZg6taU/[email protected]> > To: [email protected] > Subject: Re: Multiple connections to dbus-daemon in single appication > Message-ID: <20180919135513.5fd678ae-QEjm8wl6P5m5/[email protected]> > 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 <[email protected]> > To: [email protected] > Subject: Dictionary data type > Message-ID: > < > CAPNtGhWAXVcdghK8uDmBCcqRrtjDsLQQEKcRXiNjPbuY-PhE4g-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> > 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 > [email protected] > https://lists.freedesktop.org/mailman/listinfo/dbus > > > ------------------------------ > > End of dbus Digest, Vol 158, Issue 9 > ************************************ > _______________________________________________ dbus mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dbus