1274958Sdim/* 2274958Sdim * Command line editing and history 3274958Sdim * Copyright (c) 2010, Jouni Malinen <j@w1.fi> 4274958Sdim * 5274958Sdim * This software may be distributed under the terms of the BSD license. 6274958Sdim * See README for more details. 7274958Sdim */ 8274958Sdim 9274958Sdim#ifndef EDIT_H 10274958Sdim#define EDIT_H 11274958Sdim 12274958Sdimint edit_init(void (*cmd_cb)(void *ctx, char *cmd), 13274958Sdim void (*eof_cb)(void *ctx), 14274958Sdim char ** (*completion_cb)(void *ctx, const char *cmd, int pos), 15274958Sdim void *ctx, const char *history_file, const char *ps); 16280031Sdimvoid edit_deinit(const char *history_file, 17274958Sdim int (*filter_cb)(void *ctx, const char *cmd)); 18274958Sdimvoid edit_clear_line(void); 19274958Sdimvoid edit_redraw(void); 20274958Sdim 21274958Sdim#endif /* EDIT_H */ 22274958Sdim