summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/connman.h2
-rw-r--r--src/service.c11
2 files changed, 13 insertions, 0 deletions
diff --git a/src/connman.h b/src/connman.h
index 9861c7f5..617d62a8 100644
--- a/src/connman.h
+++ b/src/connman.h
@@ -601,6 +601,8 @@ int __connman_service_set_favorite_delayed(struct connman_service *service,
gboolean delay_ordering);
int __connman_service_set_immutable(struct connman_service *service,
connman_bool_t immutable);
+int __connman_service_set_ignore(struct connman_service *service,
+ connman_bool_t ignore);
void __connman_service_set_userconnect(struct connman_service *service,
connman_bool_t userconnect);
diff --git a/src/service.c b/src/service.c
index 78c062da..f375c728 100644
--- a/src/service.c
+++ b/src/service.c
@@ -4698,6 +4698,17 @@ int __connman_service_set_immutable(struct connman_service *service,
return 0;
}
+int __connman_service_set_ignore(struct connman_service *service,
+ connman_bool_t ignore)
+{
+ if (service == NULL)
+ return -EINVAL;
+
+ service->ignore = ignore;
+
+ return 0;
+}
+
void __connman_service_set_string(struct connman_service *service,
const char *key, const char *value)
{