2010-11-14 13:59:29 -05:00
|
|
|
/*
|
|
|
|
* Command line editing and history
|
|
|
|
* Copyright (c) 2010, Jouni Malinen <j@w1.fi>
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License version 2 as
|
|
|
|
* published by the Free Software Foundation.
|
|
|
|
*
|
|
|
|
* Alternatively, this software may be distributed under the terms of BSD
|
|
|
|
* license.
|
|
|
|
*
|
|
|
|
* See README and COPYING for more details.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef EDIT_H
|
|
|
|
#define EDIT_H
|
|
|
|
|
|
|
|
int edit_init(void (*cmd_cb)(void *ctx, char *cmd),
|
|
|
|
void (*eof_cb)(void *ctx),
|
|
|
|
void *ctx);
|
|
|
|
void edit_deinit(void);
|
|
|
|
void edit_clear_line(void);
|
|
|
|
void edit_redraw(void);
|
2010-11-14 15:37:43 -05:00
|
|
|
void edit_set_filter_history_cb(int (*cb)(void *ctx, const char *cmd));
|
|
|
|
void edit_set_completion_cb(char ** (*cb)(void *ctx, const char *cmd,
|
|
|
|
int pos));
|
2010-11-14 13:59:29 -05:00
|
|
|
|
|
|
|
#endif /* EDIT_H */
|