style
[RRG-proxmark3.git] / client / src / preferences.h
blobf3169eb328d8fb9e98ae8bd439a23590b6ad4ffc
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 // Settings Functions
17 //-----------------------------------------------------------------------------
18 #ifndef PREFERENCES_H_
19 #define PREFERENCES_H_
21 #include "fileutils.h"
22 #include <errno.h>
24 // Current working directory will be prepended.
25 #define preferencesFilename "preferences.json"
27 int CmdPreferences(const char *Cmd);
28 int preferences_load(void);
29 int preferences_save(void);
30 int preferences_dump(void);
32 void preferences_save_callback(json_t *root);
33 void preferences_load_callback(json_t *root);
35 int getDeviceDebugLevel(uint8_t *debug_level);
36 int setDeviceDebugLevel(uint8_t debug_level, bool verbose);
38 #endif