connman_dbus_append_cb_t function, void *user_data);
void connman_dbus_property_append_fixed_array(DBusMessageIter *iter,
const char *key, int type, void *val, int len);
-void connman_dbus_property_append_variable_array(DBusMessageIter *dict,
- const char *key, int type, connman_dbus_append_cb_t function);
+void connman_dbus_property_append_variable_array(DBusMessageIter *iter,
+ const char *key, int type,
+ connman_dbus_append_cb_t function, void *user_data);
dbus_bool_t connman_dbus_property_changed_basic(const char *path,
const char *interface, const char *key,
dbus_message_iter_open_container(dict, DBUS_TYPE_DICT_ENTRY,
NULL, &entry);
connman_dbus_property_append_variable_array(&entry, key,
- type, function);
+ type, function, NULL);
dbus_message_iter_close_container(dict, &entry);
}
}
void connman_dbus_property_append_variable_array(DBusMessageIter *iter,
- const char *key, int type, connman_dbus_append_cb_t function)
+ const char *key, int type,
+ connman_dbus_append_cb_t function, void *user_data)
{
DBusMessageIter value, array;
const char *variant_sig, *array_sig;
dbus_message_iter_open_container(&value, DBUS_TYPE_ARRAY,
array_sig, &array);
if (function)
- function(&array, NULL);
+ function(&array, user_data);
dbus_message_iter_close_container(&value, &array);
dbus_message_iter_close_container(iter, &value);
dbus_message_iter_init_append(signal, &iter);
connman_dbus_property_append_variable_array(&iter, "Devices",
- DBUS_TYPE_OBJECT_PATH, __connman_device_list);
+ DBUS_TYPE_OBJECT_PATH, __connman_device_list, NULL);
g_dbus_send_message(connection, signal);
}
dbus_message_iter_init_append(signal, &iter);
connman_dbus_property_append_variable_array(&iter,
"AvailableTechnologies", DBUS_TYPE_STRING,
- __connman_notifier_list_registered);
+ __connman_notifier_list_registered, NULL);
g_dbus_send_message(connection, signal);
}
dbus_message_iter_init_append(signal, &iter);
connman_dbus_property_append_variable_array(&iter,
"EnabledTechnologies", DBUS_TYPE_STRING,
- __connman_notifier_list_enabled);
+ __connman_notifier_list_enabled, NULL);
g_dbus_send_message(connection, signal);
dbus_message_iter_init_append(signal, &iter);
connman_dbus_property_append_variable_array(&iter,
"ConnectedTechnologies", DBUS_TYPE_STRING,
- __connman_notifier_list_connected);
+ __connman_notifier_list_connected, NULL);
g_dbus_send_message(connection, signal);
}
dbus_message_iter_init_append(signal, &iter);
connman_dbus_property_append_variable_array(&iter, "Profiles",
- DBUS_TYPE_OBJECT_PATH, __connman_profile_list);
+ DBUS_TYPE_OBJECT_PATH, __connman_profile_list, NULL);
g_dbus_send_message(connection, signal);
}
dbus_message_iter_init_append(signal, &iter);
if (g_strcmp0(profile->ident, PROFILE_DEFAULT_IDENT) == 0)
connman_dbus_property_append_variable_array(&iter, "Services",
- DBUS_TYPE_OBJECT_PATH, __connman_service_list);
+ DBUS_TYPE_OBJECT_PATH, __connman_service_list, NULL);
else
connman_dbus_property_append_variable_array(&iter, "Services",
- DBUS_TYPE_OBJECT_PATH, NULL);
+ DBUS_TYPE_OBJECT_PATH, NULL, NULL);
g_dbus_send_message(connection, signal);
dbus_message_iter_init_append(signal, &iter);
connman_dbus_property_append_variable_array(&iter, "Services",
- DBUS_TYPE_OBJECT_PATH, __connman_service_list);
+ DBUS_TYPE_OBJECT_PATH, __connman_service_list, NULL);
g_dbus_send_message(connection, signal);