diff options
author | Mohamed Abbas <mabbas@linux.intel.com> | 2011-11-15 13:06:15 +0200 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2011-11-15 13:41:44 +0100 |
commit | 36f57036dcf4faf2327709be40aef2e9fa0209d5 (patch) | |
tree | ce235455eb13076d713d7f4b97cabaadde67381b /plugins/vpn.c | |
parent | c75a3bd3b009b8894fa14d130709642d1bc0c8c6 (diff) | |
download | connman-36f57036dcf4faf2327709be40aef2e9fa0209d5.tar.gz connman-36f57036dcf4faf2327709be40aef2e9fa0209d5.tar.bz2 connman-36f57036dcf4faf2327709be40aef2e9fa0209d5.zip |
task: Allow vpn plugins to send reply
Change task notify to allow client to send dbus reply. This
will allow vpn plugin to send requested user/password info.
Diffstat (limited to 'plugins/vpn.c')
-rw-r--r-- | plugins/vpn.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/plugins/vpn.c b/plugins/vpn.c index 226fabe7..9f49f321 100644 --- a/plugins/vpn.c +++ b/plugins/vpn.c @@ -202,7 +202,7 @@ static void vpn_newlink(unsigned flags, unsigned change, void *user_data) data->flags = flags; } -static void vpn_notify(struct connman_task *task, +static DBusMessage *vpn_notify(struct connman_task *task, DBusMessage *msg, void *user_data) { struct connman_provider *provider = user_data; @@ -215,11 +215,11 @@ static void vpn_notify(struct connman_task *task, name = connman_provider_get_driver_name(provider); if (name == NULL) - return; + return NULL; vpn_driver_data = g_hash_table_lookup(driver_hash, name); if (vpn_driver_data == NULL) - return; + return NULL; state = vpn_driver_data->vpn_driver->notify(msg, provider); switch (state) { @@ -244,6 +244,8 @@ static void vpn_notify(struct connman_task *task, CONNMAN_PROVIDER_ERROR_AUTH_FAILED); break; } + + return NULL; } static int vpn_create_tun(struct connman_provider *provider) |