Diff between 7e9f6a418d02faab7e78cdce317ebc42c82e76ed and a6ef3eb009136b5127ff94ed4c643e9a282c1bb3

Changed Files

File Additions Deletions Status
client/main.c +11 -0 modified

Full Patch

diff --git a/client/main.c b/client/main.c
index b695744..6514be8 100644
--- a/client/main.c
+++ b/client/main.c
@@ -1327,6 +1327,17 @@ static void cmd_remove(const char *arg)
 	if (check_default_ctrl() == FALSE)
 		return;
 
+	if (strcmp(arg, "*") == 0) {
+		GList *list;
+
+		for (list = g_list_first(dev_list); list; list = g_list_next(list)) {
+			GDBusProxy *proxy = list->data;
+			cmd_remove(g_dbus_proxy_get_path(proxy));
+		}
+
+		return;
+	}
+
 	proxy = find_proxy_by_address(dev_list, arg);
 	if (!proxy) {
 		rl_printf("Device %s not available\n", arg);