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