3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-12-22 21:22:37 +01:00

client: completion for device commands

This commit is contained in:
Tim Kourt 2017-04-20 16:23:11 -07:00 committed by Denis Kenzior
parent 02b52adf61
commit 20588ff778

View File

@ -424,10 +424,22 @@ static const struct command device_commands[] = {
{ }
};
static char *family_arg_completion(const char *text, int state)
{
return NULL;
}
static char *entity_arg_completion(const char *text, int state)
{
return command_entity_arg_completion(text, state, device_commands);
}
static struct command_family device_command_family = {
.caption = "Devices",
.name = "device",
.command_list = device_commands,
.family_arg_completion = family_arg_completion,
.entity_arg_completion = entity_arg_completion,
};
static int device_command_family_init(void)