Is anybody here?<br><br>Does anybody knows the answer? Even your thoughts will be usefull.<br><br>If i'm writing to wrong place, feel free to tell me.<br><br><br><div class="gmail_quote">On 8 August 2011 17:39, gahcep man <span dir="ltr"><<a href="mailto:promdev@gmail.com">promdev@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hi everybody.<br><br>All last week i tried to work with bluez dbus api.
Everything is clear for me now except the question about unmarshaling
complex structures in dbus messages. For example, method "GetProperties"
from "org.bluez.Adapter" interface returns array of dictionary records
of string and variant. So, i have three complex situations: 1 is array, 2
is dictionary record, 3 is variant. And i cannot handle with this.<br>
Can you tell me what kind of strategies or algorithms or libraries should i use to <span lang="en"><span title="Click for alternate translations">completely parse this values. <br>
Maybe glib? or others? Is the only decision to use a python?<br><br>P.S. I saw in dbus sources that unmarshalling structures is not supported yet. So why?<br><br></span></span>This is what i need to receive from method "GetProperties": (D-Feet output)<br>
{u'Address': u'00:15:83:41:3F:3F',<br> u'Class': 5767424L,<br> u'Devices': [],<br> u'Discoverable': 0,<br> u'DiscoverableTimeout': 0L,<br> u'Discovering': 0,<br> u'Name': u'gahcepvm-0',<br>
u'Pairable': 1,<br> u'PairableTimeout': 0L,<br> u'Powered': 1,<br> u'UUIDs': [u'00001000-0000-1000-8000-<div>00805f9b34fb',<br> u'00001001-0000-1000-8000-00805f9b34fb',<br>
u'00001112-0000-1000-8000-00805f9b34fb',<br> u'0000111f-0000-1000-8000-00805f9b34fb',<br> u'0000110a-0000-1000-8000-00805f9b34fb',<br> u'0000110c-0000-1000-8000-00805f9b34fb',<br>
u'0000110e-0000-1000-8000-00805f9b34fb',<br> u'00001105-0000-1000-8000-00805f9b34fb',<br> u'00001106-0000-1000-8000-00805f9b34fb']}<br><br><span lang="en"><span title="Click for alternate translations">P.S.S. Sorry for my English )</span></span></div>
</blockquote></div><br>