From b3772259b558a3cb2d23d31493e81414a4b09d85 Mon Sep 17 00:00:00 2001 From: Tim Kourt Date: Mon, 17 Apr 2017 09:50:09 -0700 Subject: [PATCH] client: Introduce device commands --- client/device.c | 49 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) diff --git a/client/device.c b/client/device.c index dfaa6c8b..e3d6e3cd 100644 --- a/client/device.c +++ b/client/device.c @@ -236,9 +236,58 @@ static struct proxy_interface_type device_interface_type = { .ops = &device_ops, }; +static void cmd_show(const char *device_name, char *args) +{ +} + +static void cmd_scan(const char *device_name, char *args) +{ +} + +static void cmd_disconnect(const char *device_name, char *args) +{ +} + +static void cmd_get_networks(const char *device_name, char *args) +{ +} + +static void cmd_list(const char *device_name, char *args) +{ +} + +static void cmd_set_property(const char *device_name, char *args) +{ +} + +static void cmd_connect(const char *device_name, char *args) +{ +} + +static const struct command device_commands[] = { + { NULL, "list", NULL, cmd_list, "List devices", true }, + { "", "show", NULL, cmd_show, "Show device info", true }, + { "", "scan", NULL, cmd_scan, "Scan for networks" }, + { "", "get-networks", + NULL, cmd_get_networks, + "Get networks", true }, + { "", "set-property", + " ", + cmd_set_property, + "Set property", false }, + { "", "connect", + " [security]", + cmd_connect, + "Connect to network", false }, + { "", "disconnect", + NULL, cmd_disconnect, "Disconnect" }, + { } +}; + static struct command_family device_command_family = { .caption = "Devices", .name = "device", + .command_list = device_commands, }; static int device_command_family_init(void)