On 13.10.2009 08:31, Klaus Kaempf wrote:
> * J. Daniel Schmidt <[email protected]> [Oct 12. 2009 18:46]:
>>
>> The hash requires a list of values, first one being a type identifier, the 
>> second being the real value. I found out that valid types are: s, i, b, a 
>> resp. as  for string, integer, boolean and array resp. array of string.
>> But I need to define a hash here. How can I pass a hash as hashvalue?
> 
> http://dbus.freedesktop.org/doc/dbus-specification.html#message-protocol-signatures
> defines the type encoding for D-Bus.
> 
> If I interpret this correctly, as Hash ('dict' in D-Bus speak) is an
> array ('a') of key-value pairs ('e{}').

'e{}' means a key-value pair which can be used only internally inside an array.

The signature for whole hash is actually something like 'a{ss}' for
map<string,string> (in C++ or YCP notation).


--

Best Regards

Ladislav Slezák
Yast Developer
------------------------------------------------------------------------
SUSE LINUX, s.r.o.                              e-mail: [email protected]
Lihovarská 1060/12                              tel: +420 284 028 960
190 00 Prague 9                                 fax: +420 284 028 951
Czech Republic                                  http://www.suse.cz/
-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to