Added dump and trace path and clean a little for cleaner use and expansion.
This commit is contained in:
mwalker33
2020-04-18 18:04:08 +10:00
committed by Philippe Teuwen
parent b593d2c319
commit e2c56fe26c
5 changed files with 237 additions and 96 deletions

View File

@@ -21,6 +21,9 @@ typedef enum logLevel {NORMAL, SUCCESS, INFO, FAILED, WARNING, ERR, DEBUG, INPLA
typedef enum emojiMode {ALIAS, EMOJI, ALTTEXT, ERASE} emojiMode_t;
typedef enum clientdebugLevel {cdbOFF,cdbSIMPLE,cdbFULL} clientdebugLevel_t;
typedef enum devicedebugLevel {ddbOFF,ddbERROR,ddbINFO,ddbDEBUG,ddbEXTENDED} devicedebugLevel_t;
#define savePathCount 3
typedef enum savePaths {spDefault, spDump, spTrace} savePaths_t;
typedef struct {int x; int y; int h; int w;} qtWindow_t;
typedef struct {
bool preferences_loaded;
@@ -32,15 +35,9 @@ typedef struct {
bool help_dump_mode;
bool show_hints;
bool window_changed; // track if plot/overlay pos/size changed to save on exit
char *default_savepath;// [FILENAME_MAX];
int window_plot_xpos;
int window_plot_ypos;
int window_plot_hsize;
int window_plot_wsize;
int window_overlay_xpos;
int window_overlay_ypos;
int window_overlay_hsize;
int window_overlay_wsize;
qtWindow_t plot;
qtWindow_t overlay;
char *defaultPaths[savePathCount]; // Array should allow loop searching for files
clientdebugLevel_t client_debug_level;
uint8_t device_debug_level;
} session_arg_t;