blob: ad27f1c7a4adaf69df976357f398ebd1ca91d782 [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),
Dmitry Shmidt61d9df32012-08-29 16:22:06 -070015 void *ctx, const char *history_file, const char *ps);
Dmitry Shmidt8d520ff2011-05-09 14:06:53 -070016void 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 */