diff options
author | Rui Paulo <rpaulo@FreeBSD.org> | 2013-06-25 02:47:41 +0000 |
---|---|---|
committer | Rui Paulo <rpaulo@FreeBSD.org> | 2013-06-25 02:47:41 +0000 |
commit | 5e2639d568f6bb660501a77cc83413c3412562e3 (patch) | |
tree | db97ebf07cc76b41926fb6696433b541307fbc19 /src/utils/edit.h | |
parent | 19f9885f6aafcd7c3eee4df8a014287d12279851 (diff) |
Diffstat (limited to 'src/utils/edit.h')
-rw-r--r-- | src/utils/edit.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/utils/edit.h b/src/utils/edit.h new file mode 100644 index 0000000000000..ad27f1c7a4ada --- /dev/null +++ b/src/utils/edit.h @@ -0,0 +1,21 @@ +/* + * Command line editing and history + * Copyright (c) 2010, Jouni Malinen <j@w1.fi> + * + * This software may be distributed under the terms of the BSD license. + * See README for more details. + */ + +#ifndef EDIT_H +#define EDIT_H + +int edit_init(void (*cmd_cb)(void *ctx, char *cmd), + void (*eof_cb)(void *ctx), + char ** (*completion_cb)(void *ctx, const char *cmd, int pos), + void *ctx, const char *history_file, const char *ps); +void edit_deinit(const char *history_file, + int (*filter_cb)(void *ctx, const char *cmd)); +void edit_clear_line(void); +void edit_redraw(void); + +#endif /* EDIT_H */ |