<EP-584CD5AB95AE4A3A879836122994DB42>
Adding Descriptive commit message

This will be used by connman to clear the value of specified property of
a service. This patch adds a new config_option "clear" in the Service
Configuration option.
---
 client/commands.c | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/client/commands.c b/client/commands.c
index 2397883..ca8ceaa 100644
--- a/client/commands.c
+++ b/client/commands.c
@@ -1161,6 +1161,14 @@ static int cmd_config(char *args[], int num, struct 
connman_option *options)
                                        config_return, g_strdup(service_name),
                                        NULL, NULL);
                        break;
+               case 'c':
+                       res = __connmanctl_dbus_method_call(connection,
+                                       CONNMAN_SERVICE, path,
+                                       "net.connman.Service", "ClearProperty",
+                                       config_return, g_strdup(service_name),
+                                       config_append_str, &append);
+                       index += append.values;
+                       break;
                default:
                        res = -EINVAL;
                        break;
@@ -2142,6 +2150,7 @@ static struct connman_option config_options[] = {
        {"autoconnect", 'a', "yes|no"},
        {"ipv4", 'i', "off|dhcp|manual <address> <netmask> <gateway>"},
        {"remove", 'r', "                 Remove service"},
+       {"clear", 'c', "property         Clear service property"},
        { NULL, }
 };
 
-- 
1.9.1

_______________________________________________
connman mailing list
connman@connman.net
https://lists.connman.net/mailman/listinfo/connman

Reply via email to