dbus help needed in sending an a{sv}
c_c
cchandel at yahoo.com
Tue Dec 15 11:13:05 CET 2009
Hi,
M_o_n_k_e_y wrote:
>
> It is possibile to use GLib for this?
>
Probably. I'm not sure.
M_o_n_k_e_y wrote:
>
> Can I find the full code you used?
>
Sure. Here's the relevant portion.
msg = dbus_message_new_method_call(
"org.freesmartphone.opimd",
"/org/freesmartphone/PIM/Contacts",
"org.freesmartphone.PIM.Contacts",
"Query"
);
dbus_message_iter_init_append(msg, &iter);
dbus_message_iter_open_container(&iter, DBUS_TYPE_ARRAY, "{sv}", &array);
dbus_message_iter_open_container(&array, DBUS_TYPE_DICT_ENTRY, 0, &dict);
dbus_message_iter_close_container(&iter, &array);
e_dbus_message_send(conn, msg, get_contacts_count, -1, NULL);
dbus_message_unref(msg);
which corresponds to
mdbus -s org.freesmartphone.opimd /org/freesmartphone/PIM/Contacts
org.freesmartphone.PIM.Contacts.Query {}
HTH
--
View this message in context: http://n2.nabble.com/dbus-help-needed-in-sending-an-a-sv-tp3476909p4169202.html
Sent from the Openmoko Devel mailing list archive at Nabble.com.
More information about the devel
mailing list