summaryrefslogtreecommitdiff
path: root/client/commands.c
diff options
context:
space:
mode:
authorTomasz Bursztyka <tomasz.bursztyka@linux.intel.com>2012-10-17 10:46:15 +0300
committerPatrik Flykt <patrik.flykt@linux.intel.com>2012-10-17 12:19:33 +0300
commit569e0e85d96229a28bb08b8f900fd7d1ce3c7789 (patch)
tree19f755bedffb781e5072eace73b0a72edc4a3b4c /client/commands.c
parent45d78b9b12b6242d40a3e65fd8ada7be1329e1e6 (diff)
downloadconnman-569e0e85d96229a28bb08b8f900fd7d1ce3c7789.tar.gz
connman-569e0e85d96229a28bb08b8f900fd7d1ce3c7789.tar.bz2
connman-569e0e85d96229a28bb08b8f900fd7d1ce3c7789.zip
client: Add Remove() method support for service
Diffstat (limited to 'client/commands.c')
-rw-r--r--client/commands.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/client/commands.c b/client/commands.c
index 73a92ebe..4cc3b2d0 100644
--- a/client/commands.c
+++ b/client/commands.c
@@ -88,6 +88,7 @@ void show_help(void)
" [METHOD|URL|SERVERS|EXCLUDES]\n"
" if METHOD = manual, enter 'servers' then the list of servers\n"
" then enter 'excludes' then the list of excludes\n"
+ " --remove Remove the service from favorite\n"
" monitor Monitor signals from all Connman interfaces\n"
" --services Monitor signals from the Service interface\n"
" --tech Monitor signals from the Technology interface\n"
@@ -202,6 +203,9 @@ int config_switch(int argc, char *argv[], int c, DBusConnection *conn)
error = -EINVAL;
}
break;
+ case 'r':
+ error = remove_service(conn, message, argv[1]);
+ break;
default:
fprintf(stderr, "Command not recognized, please check help\n");
error = -EINVAL;
@@ -392,6 +396,7 @@ int commands_options(DBusConnection *connection, char *argv[], int argc)
{"proxy", required_argument, 0, 'x'},
{"autoconnect", required_argument, 0, 'a'},
{"ipv4", required_argument, 0, 'i'},
+ {"remove", 0, 0, 'r'},
{0, 0, 0, 0}
};