Merge pull request #2672 from kitsunehunter/laundry-keys
[RRG-proxmark3.git] / client / include / pm3.h
blob92e99bacd7ead7741de88417a3e6d0af832053ef
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 #ifndef LIBPM3_H
17 #define LIBPM3_H
19 #include <stdbool.h>
21 typedef struct pm3_device pm3;
23 pm3 *pm3_open(const char *port);
24 int pm3_console(pm3 *dev, const char *cmd, bool capture, bool quiet);
25 const char *pm3_grabbed_output_get(pm3 *dev);
26 const char *pm3_name_get(pm3 *dev);
27 void pm3_close(pm3 *dev);
28 pm3 *pm3_get_current_dev(void);
29 #endif // LIBPM3_H