diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/inet.h | 1 | ||||
-rw-r--r-- | include/provider.h | 4 | ||||
-rw-r--r-- | include/service.h | 2 | ||||
-rw-r--r-- | include/task.h | 6 |
4 files changed, 10 insertions, 3 deletions
diff --git a/include/inet.h b/include/inet.h index 9c1918f3..fdc2155f 100644 --- a/include/inet.h +++ b/include/inet.h @@ -51,6 +51,7 @@ int connman_inet_clear_gateway_address(int index, const char *gateway); int connman_inet_set_gateway_interface(int index); int connman_inet_clear_gateway_interface(int index); bool connman_inet_compare_subnet(int index, const char *host); +bool connman_inet_compare_ipv6_subnet(int index, const char *host); int connman_inet_set_ipv6_address(int index, struct connman_ipaddress *ipaddress); int connman_inet_clear_ipv6_address(int index, diff --git a/include/provider.h b/include/provider.h index d28651ad..b5856653 100644 --- a/include/provider.h +++ b/include/provider.h @@ -111,8 +111,8 @@ int connman_provider_set_domain(struct connman_provider *provider, const char *domain); int connman_provider_set_nameservers(struct connman_provider *provider, char * const *nameservers); -int connman_provider_append_route(struct connman_provider *provider, - const char *key, const char *value); +void connman_provider_set_autoconnect(struct connman_provider *provider, + bool flag); const char *connman_provider_get_driver_name(struct connman_provider *provider); const char *connman_provider_get_save_group(struct connman_provider *provider); diff --git a/include/service.h b/include/service.h index 97fdf7d5..4a129b49 100644 --- a/include/service.h +++ b/include/service.h @@ -131,6 +131,8 @@ const char *connman_service_get_proxy_url(struct connman_service *service); const char *connman_service_get_proxy_autoconfig(struct connman_service *service); bool connman_service_get_favorite(struct connman_service *service); bool connman_service_get_autoconnect(struct connman_service *service); +bool connman_service_set_autoconnect(struct connman_service *service, + bool autoconnect); /* Return non-zero value to terminate the loop, zero to continue */ typedef int (* connman_service_iterate_cb) (struct connman_service *service, diff --git a/include/task.h b/include/task.h index 9977d634..b124db7a 100644 --- a/include/task.h +++ b/include/task.h @@ -42,7 +42,11 @@ typedef void (* connman_task_exit_t) (struct connman_task *task, typedef DBusMessage * (* connman_task_notify_t) (struct connman_task *task, DBusMessage *message, void *user_data); -struct connman_task *connman_task_create(const char *program); +typedef void (* connman_task_setup_t) (void *setup_data); + +struct connman_task *connman_task_create(const char *program, + connman_task_setup_t task_setup, + void *setup_data); void connman_task_destroy(struct connman_task *task); const char *connman_task_get_path(struct connman_task *task); |