summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorNishant Chaprana <n.chaprana@samsung.com>2020-10-14 13:59:23 +0530
committerNishant Chaprana <n.chaprana@samsung.com>2020-10-14 13:59:56 +0530
commitdd3cccc5e67548dcc2dd6c6254ed6c97859085d5 (patch)
tree0444cde148e68a44c4295219e4c6625dbe52339d /include
parent6b2381a2adabea7d8309ff158ef675ff88184305 (diff)
downloadconnman-dd3cccc5e67548dcc2dd6c6254ed6c97859085d5.tar.gz
connman-dd3cccc5e67548dcc2dd6c6254ed6c97859085d5.tar.bz2
connman-dd3cccc5e67548dcc2dd6c6254ed6c97859085d5.zip
Imported Upstream version 1.38upstream/1.38
Change-Id: I7cada2367329445e1d200055e21d96e7e9c05047 Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
Diffstat (limited to 'include')
-rw-r--r--include/inet.h1
-rw-r--r--include/provider.h4
-rw-r--r--include/service.h2
-rw-r--r--include/task.h6
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);