Remove RequestPassphrase functionality from Agent API
authorPatrik Flykt <patrik.flykt@nokia.com>
Tue, 21 Sep 2010 07:07:51 +0000 (10:07 +0300)
committerSamuel Ortiz <sameo@linux.intel.com>
Tue, 21 Sep 2010 14:49:48 +0000 (16:49 +0200)
Remove the obsolete __connman_agent_request_passphrase function as the
RequestPassphrase method call has been replaced with RequestInput.

src/agent.c
src/connman.h

index c8341d4..2fadf63 100644 (file)
@@ -85,34 +85,6 @@ int __connman_agent_unregister(const char *sender, const char *path)
        return 0;
 }
 
-int __connman_agent_request_passphrase(struct connman_service *service,
-                               passphrase_cb_t callback, void *user_data)
-{
-       DBusMessage *message;
-       const char *path;
-
-       DBG("service %p", service);
-
-       if (agent_path == NULL)
-               return -ESRCH;
-
-       message = dbus_message_new_method_call(agent_sender, agent_path,
-                               CONNMAN_AGENT_INTERFACE, "RequestPassphrase");
-       if (message == NULL)
-               return -ENOMEM;
-
-       dbus_message_set_no_reply(message, TRUE);
-
-       path = __connman_service_get_path(service);
-
-       dbus_message_append_args(message, DBUS_TYPE_OBJECT_PATH, &path,
-                                                       DBUS_TYPE_INVALID);
-
-       g_dbus_send_message(connection, message);
-
-       return -EIO;
-}
-
 struct request_input_reply {
        struct connman_service *service;
        passphrase_cb_t callback;
index 1e5496a..591e4f7 100644 (file)
@@ -80,8 +80,6 @@ struct connman_service *service;
 typedef void (* passphrase_cb_t) (struct connman_service *service,
                                const char *passphrase, void *user_data);
 
-int __connman_agent_request_passphrase(struct connman_service *service,
-                               passphrase_cb_t callback, void *user_data);
 int __connman_agent_request_input(struct connman_service *service,
                                passphrase_cb_t callback, void *user_data);