fix dbus-send so it can correctly send dictionaries

* tools/dbus-send.c (append_dict): Send in signature when opening up
  a dict entry container

* AUTHORS: Add Jérémie to AUTHORS file since it was a slightly above
  trivial fix
This commit is contained in:
Jérémie Dimino 2008-04-03 11:32:09 -04:00 committed by John (J5) Palmieri
parent 7c4b345802
commit a689ef29f1
3 changed files with 18 additions and 2 deletions

View file

@ -8,6 +8,7 @@ Carlos Garcia Campos <carlosgc@gnome.org>
Brian Cameron <brian.cameron@sun.com>
Anders Carlsson <andersca@gnome.org>
Frederic Crozat <fcrozat@mandriva.com>
Jérémie Dimino <jeremie@dimino.org>
Christian Ehrlicher <ch.ehrlicher@gmx.de>
Harald Fernengel <harry@kdevelop.org>
Owen Fraser-Green <owen@discobabe.net>

View file

@ -1,3 +1,13 @@
2008-04-03 John (J5) Palmieri <johnp@redhat.com>
Patch from Jérémie Dimino <jeremie at dimino.org>
* tools/dbus-send.c (append_dict): Send in signature when opening up
a dict entry container
* AUTHORS: Add Jérémie to AUTHORS file since it was a slightly above
trivial fix
2008-04-03 John (J5) Palmieri <johnp@redhat.com>
Patch from Kimmo Hämäläinen <kimmo.hamalainen at nokia.com>

View file

@ -150,10 +150,15 @@ append_dict (DBusMessageIter *iter, int keytype, int valtype, const char *value)
while (val != NULL)
{
DBusMessageIter subiter;
char sig[3];
sig[0] = keytype;
sig[1] = valtype;
sig[2] = '\0';
dbus_message_iter_open_container (iter,
DBUS_TYPE_DICT_ENTRY,
NULL,
sig,
&subiter);
append_arg (&subiter, keytype, val);