summaryrefslogtreecommitdiff
path: root/include/provider.h
diff options
context:
space:
mode:
authorJukka Rissanen <jukka.rissanen@linux.intel.com>2012-11-12 14:07:43 +0200
committerPatrik Flykt <patrik.flykt@linux.intel.com>2012-11-23 12:58:52 +0200
commit9c1129aa6a665f7663fcbf73b20994c8592e46d5 (patch)
tree78a7d3dfb3f067841155be11bce6c6f65dbbe50a /include/provider.h
parentae693881d0d2bac1d9edea534918b6cc238b06ce (diff)
downloadconnman-9c1129aa6a665f7663fcbf73b20994c8592e46d5.tar.gz
connman-9c1129aa6a665f7663fcbf73b20994c8592e46d5.tar.bz2
connman-9c1129aa6a665f7663fcbf73b20994c8592e46d5.zip
provider: Add callback when creating vpn provider
Because the vpnd Create() in manager API only creates and does not connect the vpn, we must do the connect part after the vpn is created. This requires a callback which is called when the connection is established. Eventually this patch becomes obsolete because the CreateProvider() connman API is deprecated.
Diffstat (limited to 'include/provider.h')
-rw-r--r--include/provider.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/provider.h b/include/provider.h
index 548bd610..c9a3b917 100644
--- a/include/provider.h
+++ b/include/provider.h
@@ -112,6 +112,8 @@ int connman_provider_append_route(struct connman_provider *provider,
const char *connman_provider_get_driver_name(struct connman_provider *provider);
const char *connman_provider_get_save_group(struct connman_provider *provider);
+typedef void (* connection_ready_cb) (DBusMessage *msg, int error_code,
+ void *user_data);
struct connman_provider_driver {
const char *name;
@@ -125,7 +127,7 @@ struct connman_provider_driver {
const char *key, const char *value);
const char * (*get_property) (struct connman_provider *provider,
const char *key);
- int (*create) (DBusMessage *msg);
+ int (*create) (DBusMessage *msg, connection_ready_cb callback);
int (*set_routes) (struct connman_provider *provider,
enum connman_provider_route_type type);
connman_bool_t (*check_routes) (struct connman_provider *provider);