path: root/include
diff options
authorJukka Rissanen <>2012-11-12 14:07:43 +0200
committerPatrik Flykt <>2012-11-23 12:58:52 +0200
commit9c1129aa6a665f7663fcbf73b20994c8592e46d5 (patch)
tree78a7d3dfb3f067841155be11bce6c6f65dbbe50a /include
parentae693881d0d2bac1d9edea534918b6cc238b06ce (diff)
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')
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);