diff options
author | martin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220> | 2010-04-12 09:28:27 +0000 |
---|---|---|
committer | martin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220> | 2010-04-12 09:28:27 +0000 |
commit | ef77f0b24b61ef8847ad0a79c8967542ff915bec (patch) | |
tree | bf89881b201c8211e75024a4e36e9f3edbd351f6 | |
parent | 69726efa3bc148ccc0050a98ca7f497eaa94ff30 (diff) | |
download | navit-ef77f0b24b61ef8847ad0a79c8967542ff915bec.tar.gz |
Fix:binding_dbus:Correct handling of cmd_send_signal arguments
git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@3160 ffa7fe5e-494d-0410-b361-a75ebd5db220
-rw-r--r-- | navit/binding/dbus/binding_dbus.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/navit/binding/dbus/binding_dbus.c b/navit/binding/dbus/binding_dbus.c index 16b5fc613..d101342a1 100644 --- a/navit/binding/dbus/binding_dbus.c +++ b/navit/binding/dbus/binding_dbus.c @@ -1615,12 +1615,14 @@ dbus_cmd_send_signal(struct navit *navit, char *command, struct attr **in, struc dbg(0,"enter %s %s %s\n",opath,command,interface); msg = dbus_message_new_signal(opath, interface, "signal"); if (msg) { - DBusMessageIter iter1,iter2; + DBusMessageIter iter1,iter2,iter3; dbus_message_iter_init_append(msg, &iter1); dbus_message_iter_open_container(&iter1, DBUS_TYPE_ARRAY, "{sv}", &iter2); if (in) { while (*in) { - encode_attr(&iter2, *in); + dbus_message_iter_open_container(&iter2, DBUS_TYPE_DICT_ENTRY, NULL, &iter3); + encode_attr(&iter3, *in); + dbus_message_iter_close_container(&iter2, &iter3); in++; } } |