2010-11-14 19:59:29 +01:00
|
|
|
/*
|
|
|
|
* Command line editing and history
|
|
|
|
* Copyright (c) 2010, Jouni Malinen <j@w1.fi>
|
|
|
|
*
|
2012-02-11 15:46:35 +01:00
|
|
|
* This software may be distributed under the terms of the BSD license.
|
|
|
|
* See README for more details.
|
2010-11-14 19:59:29 +01:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef EDIT_H
|
|
|
|
#define EDIT_H
|
|
|
|
|
|
|
|
int edit_init(void (*cmd_cb)(void *ctx, char *cmd),
|
|
|
|
void (*eof_cb)(void *ctx),
|
2010-11-21 10:43:09 +01:00
|
|
|
char ** (*completion_cb)(void *ctx, const char *cmd, int pos),
|
2012-08-05 19:46:34 +02:00
|
|
|
void *ctx, const char *history_file, const char *ps);
|
2010-11-21 10:43:09 +01:00
|
|
|
void edit_deinit(const char *history_file,
|
|
|
|
int (*filter_cb)(void *ctx, const char *cmd));
|
2010-11-14 19:59:29 +01:00
|
|
|
void edit_clear_line(void);
|
|
|
|
void edit_redraw(void);
|
|
|
|
|
|
|
|
#endif /* EDIT_H */
|