Move wpa_cli readline integration into src/utils/edit_readline.c
All three line editing options are now located in src/utils/edit*.c and provide the same API to allow easy build time selection.
This commit is contained in:
parent
bdc45634f0
commit
e8ecb5fb49
6 changed files with 299 additions and 217 deletions
|
@ -92,3 +92,13 @@ void edit_redraw(void)
|
|||
cmdbuf[cmdbuf_pos] = '\0';
|
||||
printf("\r> %s", cmdbuf);
|
||||
}
|
||||
|
||||
|
||||
void edit_set_filter_history_cb(int (*cb)(void *ctx, const char *cmd))
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
void edit_set_completion_cb(char ** (*cb)(void *ctx, const char *cmd, int pos))
|
||||
{
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue