mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2025-01-03 10:32:33 +01:00
client: define default entity setter for cmd families
This commit is contained in:
parent
e71687e901
commit
fd23c87110
@ -209,6 +209,9 @@ static char **cmd_completion_match_family_cmd(const char *cmd_family,
|
||||
break;
|
||||
}
|
||||
|
||||
if (family->set_default_entity)
|
||||
family->set_default_entity(arg1);
|
||||
|
||||
matches = cmd_completion_match_entity_cmd(arg2, text,
|
||||
family->command_list);
|
||||
|
||||
|
@ -46,6 +46,7 @@ struct command_family {
|
||||
const struct command *command_list;
|
||||
command_completion_func_t family_arg_completion;
|
||||
command_completion_func_t entity_arg_completion;
|
||||
void (*set_default_entity)(const char *entity);
|
||||
};
|
||||
|
||||
char **command_completion(const char *text, int start, int end);
|
||||
|
Loading…
Reference in New Issue
Block a user