style
[RRG-proxmark3.git] / client / src / pm3line.h
bloba22f8540ffa547d3ea96feba030b7c412ab4c71d
1 //-----------------------------------------------------------------------------
2 // Copyright (C) Proxmark3 contributors. See AUTHORS.md for details.
3 //
4 // This program is free software: you can redistribute it and/or modify
5 // it under the terms of the GNU General Public License as published by
6 // the Free Software Foundation, either version 3 of the License, or
7 // (at your option) any later version.
8 //
9 // This program is distributed in the hope that it will be useful,
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 // GNU General Public License for more details.
14 // See LICENSE.txt for the text of the license.
15 //-----------------------------------------------------------------------------
16 // API to abstract Readline / Linenoise support
17 //-----------------------------------------------------------------------------
19 #ifndef PM3LINE_H__
20 #define PM3LINE_H__
22 void pm3line_init(void);
23 void pm3line_install_signals(void);
24 char *pm3line_read(const char *s);
25 void pm3line_free(void *ref);
26 void pm3line_update_prompt(const char *prompt);
27 int pm3line_load_history(const char *path);
28 void pm3line_add_history(const char *line);
29 void pm3line_flush_history(void);
30 void pm3line_check(int (check)(void));
32 #endif // PM3LINE_H__