I am trying to call a DBus method which takes one parameter and returns many.
The method details are:
<method name="GetGraph">
  <arg name="known_graph_version" type="t" direction="in" />
  <arg name="current_graph_version" type="t" direction="out" />
  <arg name="clients_and_ports" type="a(tsa(tsuu))" direction="out" />
  <arg name="connections" type="a(tstststst)" direction="out" />
</method>

If I use this:
Dim graph_details As New Variant[]

   If 0 < CurrentGraph Then graph_details = Jack.GetGraph(CurrentGraph)

...then graph_details[0] will return the numeric id for the graph (for
example, 223)


I don't seem to be able to guess what sort of variable to use for
assigning graph_details[1] and [2]. Stepping through the code it seems
to suggest that graph_details[1] is a Variant[][]. Same for
graph_details[2], but as I am completely and unredeemably confused by
array declaration syntax I am no closer to capturing these items.

Initially I thought that I could declare two variables to be of type
DBusVariant, set type signatures to "a(tsa(tsuu))" and "a(tstststst)",
and assign to them. But that is not how this apparently useful type is
expected to be used.

Anyone know how to achieve this?

Richard

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user

Reply via email to