#include "connman.h"
-#define REQUEST_TIMEOUT (120 * 1000) /* 120 seconds */
-
static DBusConnection *connection = NULL;
static guint agent_watch = 0;
static gchar *agent_path = NULL;
}
if (dbus_connection_send_with_reply(connection, message, &call,
- REQUEST_TIMEOUT) == FALSE) {
+ connman_timeout_input_request())
+ == FALSE) {
dbus_message_unref(message);
g_free(passphrase_reply);
return -ESRCH;
dbus_message_unref(message);
- return -EIO;
+ return -EINPROGRESS;
}
int __connman_agent_request_login_input(struct connman_service *service,
}
if (dbus_connection_send_with_reply(connection, message, &call,
- REQUEST_TIMEOUT) == FALSE) {
+ connman_timeout_input_request())
+ == FALSE) {
dbus_message_unref(message);
g_free(username_password_reply);
return -ESRCH;
dbus_message_unref(message);
- return -EIO;
+ return -EINPROGRESS;
}
struct request_browser_reply_data {
}
if (dbus_connection_send_with_reply(connection, message, &call,
- REQUEST_TIMEOUT) == FALSE) {
+ connman_timeout_browser_launch())
+ == FALSE) {
dbus_message_unref(message);
g_free(browser_reply_data);
return -ESRCH;
dbus_message_unref(message);
- return -EIO;
+ return -EINPROGRESS;
}
struct report_error_data {
}
if (dbus_connection_send_with_reply(connection, message, &call,
- REQUEST_TIMEOUT) == FALSE) {
+ connman_timeout_input_request())
+ == FALSE) {
dbus_message_unref(message);
g_free(report_error);
return -ESRCH;
report_error, NULL);
dbus_message_unref(message);
- return -EIO;
+ return -EINPROGRESS;
}
int __connman_agent_init(void)