summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJukka Rissanen <jukka.rissanen@linux.intel.com>2012-06-15 16:00:21 +0300
committerPatrik Flykt <patrik.flykt@linux.intel.com>2012-06-18 10:57:08 +0300
commitfc41a18566f0bb753fd8ce35873d1442942f464c (patch)
treef198bceea5eac8f186f15fd13eae23b9c1e13b11 /include
parent3ca789e446848eed6ca3c00af080cd737d115dcb (diff)
downloadconnman-fc41a18566f0bb753fd8ce35873d1442942f464c.tar.gz
connman-fc41a18566f0bb753fd8ce35873d1442942f464c.tar.bz2
connman-fc41a18566f0bb753fd8ce35873d1442942f464c.zip
service: Connecting hidden network waits until connected
If the user is connecting to hidden network, then we delay the return of the reply to caller until the real service has connected. This way the user connect to hidden and non-hidden networks works the same way from caller point of view.
Diffstat (limited to 'include')
-rw-r--r--include/device.h3
-rw-r--r--include/network.h3
2 files changed, 4 insertions, 2 deletions
diff --git a/include/device.h b/include/device.h
index 11416204..f787cf48 100644
--- a/include/device.h
+++ b/include/device.h
@@ -120,7 +120,8 @@ struct connman_device_driver {
int (*scan_fast) (struct connman_device *device);
int (*scan_hidden)(struct connman_device *device,
const char *ssid, unsigned int ssid_len,
- const char *identity, const char* passphrase);
+ const char *identity, const char* passphrase,
+ void *user_data);
};
int connman_device_driver_register(struct connman_device_driver *driver);
diff --git a/include/network.h b/include/network.h
index 12b06210..3945a541 100644
--- a/include/network.h
+++ b/include/network.h
@@ -102,8 +102,9 @@ connman_bool_t connman_network_get_connected(struct connman_network *network);
connman_bool_t connman_network_get_associating(struct connman_network *network);
+void connman_network_clear_hidden(void *user_data);
int connman_network_connect_hidden(struct connman_network *network,
- char *identity, char* passphrase);
+ char *identity, char* passphrase, void *user_data);
void connman_network_set_ipv4_method(struct connman_network *network,
enum connman_ipconfig_method method);