blob: e8d04e7fa564e406e4ee48881781aa483e451a7e [file] [log] [blame]
Dmitry Shmidt8d520ff2011-05-09 14:06:53 -07001/*
2 * Command line editing and history
3 * Copyright (c) 2010, Jouni Malinen <j@w1.fi>
4 *
Dmitry Shmidtc5ec7f52012-03-06 16:33:24 -08005 * This software may be distributed under the terms of the BSD license.
6 * See README for more details.
Dmitry Shmidt8d520ff2011-05-09 14:06:53 -07007 */
8
9#ifndef EDIT_H
10#define EDIT_H
11
12int edit_init(void (*cmd_cb)(void *ctx, char *cmd),
13 void (*eof_cb)(void *ctx),
14 char ** (*completion_cb)(void *ctx, const char *cmd, int pos),
15 void *ctx, const char *history_file);
16void edit_deinit(const char *history_file,
17 int (*filter_cb)(void *ctx, const char *cmd));
18void edit_clear_line(void);
19void edit_redraw(void);
20
21#endif /* EDIT_H */