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:
Jouni Malinen 2010-11-14 22:37:43 +02:00
parent bdc45634f0
commit e8ecb5fb49
6 changed files with 299 additions and 217 deletions

View file

@ -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))
{
}