|
|
2010-08-22
, 16:02
|
|
Posts: 23 |
Thanked: 11 times |
Joined on Feb 2010
@ Finland
|
#2
|
.
|
|
2010-08-25
, 05:18
|
|
Posts: 23 |
Thanked: 11 times |
Joined on Feb 2010
@ Finland
|
#3
|
|
|
2010-09-01
, 17:37
|
|
Posts: 3 |
Thanked: 2 times |
Joined on Sep 2010
|
#5
|
To append an array of fixed-length basic types, pass in the DBUS_TYPE_ARRAY typecode, the element typecode, the address of the array pointer, and a 32-bit integer giving the number of elements in the array. So for example:
const dbus_int32_t array[] = { 1, 2, 3 };
const dbus_int32_t *v_ARRAY = array;
dbus_message_append_args (message,
DBUS_TYPE_ARRAY, DBUS_TYPE_INT32, &v_ARRAY, 3,
DBUS_TYPE_INVALID);
osso_return_t ret; osso_rpc_t retval = {}; ret = osso_rpc_run_system(app->osso_cont, CONBTDIALOGS_DBUS_SERVICE, CONBTDIALOGS_DBUS_PATH, CONBTDIALOGS_DBUS_INTERFACE, CONBTDIALOGS_SEARCH_REQ, &retval, DBUS_TYPE_STRING, "", DBUS_TYPE_STRING, "", DBUS_TYPE_ARRAY, DBUS_TYPE_STRING, DBUS_TYPE_STRING, "require", DBUS_TYPE_INVALID); if (ret != OSSO_OK) { g_print(_("Could not show bluetooth dialog: (%s)\n"), ossoErrorStr(ret)); return FALSE; }EDIT: call works in n900 if I use dbus-send but this C code segfaults (I edited code to use system bus after looking at bluemaemo's sourcecode). Any ideas?
Last edited by durazell; 2010-08-22 at 15:17.