gpointer user_data);
void __connman_service_return_error(struct connman_service *service,
int error, gpointer user_data);
-void __connman_service_reply_dbus_pending(DBusMessage *pending, int error);
+void __connman_service_reply_dbus_pending(DBusMessage *pending, int error,
+ const char *path);
int __connman_service_provision_changed(const char *ident);
void __connman_service_set_config(struct connman_service *service,
* error to the caller telling that we could not find
* any network that we could connect to.
*/
- __connman_service_reply_dbus_pending(user_data, EIO);
+ __connman_service_reply_dbus_pending(user_data, EIO, NULL);
}
int connman_network_connect_hidden(struct connman_network *network,
}
}
-void __connman_service_reply_dbus_pending(DBusMessage *pending, int error)
+void __connman_service_reply_dbus_pending(DBusMessage *pending, int error,
+ const char *path)
{
if (pending != NULL) {
if (error > 0) {
if (reply != NULL)
g_dbus_send_message(connection, reply);
} else {
- const char *sender, *path;
+ const char *sender;
sender = dbus_message_get_interface(pending);
- path = dbus_message_get_path(pending);
+ if (path == NULL)
+ path = dbus_message_get_path(pending);
DBG("sender %s path %s", sender, path);
remove_timeout(service);
if (service->pending != NULL) {
- __connman_service_reply_dbus_pending(service->pending, error);
+ __connman_service_reply_dbus_pending(service->pending, error,
+ NULL);
service->pending = NULL;
}
}