1*f05cddf9SRui Paulo /* 2*f05cddf9SRui Paulo * Command line editing and history 3*f05cddf9SRui Paulo * Copyright (c) 2010, Jouni Malinen <j@w1.fi> 4*f05cddf9SRui Paulo * 5*f05cddf9SRui Paulo * This software may be distributed under the terms of the BSD license. 6*f05cddf9SRui Paulo * See README for more details. 7*f05cddf9SRui Paulo */ 8*f05cddf9SRui Paulo 9*f05cddf9SRui Paulo #ifndef EDIT_H 10*f05cddf9SRui Paulo #define EDIT_H 11*f05cddf9SRui Paulo 12*f05cddf9SRui Paulo int edit_init(void (*cmd_cb)(void *ctx, char *cmd), 13*f05cddf9SRui Paulo void (*eof_cb)(void *ctx), 14*f05cddf9SRui Paulo char ** (*completion_cb)(void *ctx, const char *cmd, int pos), 15*f05cddf9SRui Paulo void *ctx, const char *history_file, const char *ps); 16*f05cddf9SRui Paulo void edit_deinit(const char *history_file, 17*f05cddf9SRui Paulo int (*filter_cb)(void *ctx, const char *cmd)); 18*f05cddf9SRui Paulo void edit_clear_line(void); 19*f05cddf9SRui Paulo void edit_redraw(void); 20*f05cddf9SRui Paulo 21*f05cddf9SRui Paulo #endif /* EDIT_H */ 22