2016-03-01 17:40:38 +00:00
|
|
|
|
|
|
|
#define DEBUG_DEBUG 0 /* debug info, not for normal use */
|
|
|
|
#define DEBUG_INFO 1 /* all info about process */
|
|
|
|
#define DEBUG_NOTICE 2 /* something unexpected happens */
|
|
|
|
#define DEBUG_ERROR 3 /* there is an error with this software */
|
|
|
|
|
2018-05-19 08:56:43 +00:00
|
|
|
#define DOPTIONS 0
|
|
|
|
#define DSENDER 1
|
|
|
|
#define DSOUND 2
|
|
|
|
#define DDSP 3
|
|
|
|
#define DANETZ 4
|
|
|
|
#define DBNETZ 5
|
|
|
|
#define DCNETZ 6
|
|
|
|
#define DNMT 7
|
|
|
|
#define DAMPS 8
|
|
|
|
#define DR2000 9
|
2019-07-21 19:19:54 +00:00
|
|
|
#define DIMTS 10
|
|
|
|
#define DJOLLY 11
|
|
|
|
#define DFRAME 12
|
|
|
|
#define DCALL 13
|
|
|
|
#define DMNCC 14
|
|
|
|
#define DDB 15
|
|
|
|
#define DTRANS 16
|
|
|
|
#define DDMS 17
|
|
|
|
#define DSMS 18
|
|
|
|
#define DSDR 19
|
|
|
|
#define DUHD 20
|
|
|
|
#define DSOAPY 21
|
|
|
|
#define DWAVE 22
|
|
|
|
#define DRADIO 23
|
2019-09-01 11:15:04 +00:00
|
|
|
#define DAM791X 24
|
|
|
|
#define DUART 25
|
|
|
|
#define DDEVICE 26
|
|
|
|
#define DDATENKLO 27
|
2016-03-01 17:40:38 +00:00
|
|
|
|
2018-02-15 06:27:49 +00:00
|
|
|
void get_win_size(int *w, int *h);
|
|
|
|
|
2019-07-20 16:11:17 +00:00
|
|
|
#define PDEBUG(cat, level, fmt, arg...) _printdebug(__FILE__, __FUNCTION__, __LINE__, cat, level, NULL, fmt, ## arg)
|
2016-07-31 13:09:46 +00:00
|
|
|
#define PDEBUG_CHAN(cat, level, fmt, arg...) _printdebug(__FILE__, __FUNCTION__, __LINE__, cat, level, CHAN, fmt, ## arg)
|
2019-07-20 16:11:17 +00:00
|
|
|
void _printdebug(const char *file, const char *function, int line, int cat, int level, const char *chan_str, const char *fmt, ...) __attribute__ ((__format__ (__printf__, 7, 8)));
|
2016-03-01 17:40:38 +00:00
|
|
|
|
2016-05-15 18:31:42 +00:00
|
|
|
const char *debug_amplitude(double level);
|
2017-01-27 16:17:39 +00:00
|
|
|
const char *debug_db(double level_db);
|
2016-05-15 18:31:42 +00:00
|
|
|
|
2016-06-12 08:50:55 +00:00
|
|
|
void debug_list_cat(void);
|
|
|
|
int parse_debug_opt(const char *opt);
|
|
|
|
|
2016-03-01 17:40:38 +00:00
|
|
|
extern int debuglevel;
|
|
|
|
|
2017-12-03 08:30:54 +00:00
|
|
|
extern void (*clear_console_text)(void);
|
|
|
|
extern void (*print_console_text)(void);
|
|
|
|
|
|
|
|
extern int debug_limit_scroll;
|
|
|
|
|