Mailinglist Archive: yast-devel (233 mails)

< Previous Next >
Re: [yast-devel] WebYaST: Hash in Hash in YastService.Call
  • From: Ladislav Slezak <lslezak@xxxxxxx>
  • Date: Tue, 13 Oct 2009 09:05:34 +0200
  • Message-id: <4AD426BE.9060303@xxxxxxx>
On 13.10.2009 08:31, Klaus Kaempf wrote:
* J. Daniel Schmidt <jdsn@xxxxxxx> [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: lslezak@xxxxxxx
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: yast-devel+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: yast-devel+help@xxxxxxxxxxxx

< Previous Next >