1/*
2 * Copyright (c) 2003 by Siarzhuk Zharski <imker@gmx.li>
3 * Distributed under the terms of the MIT License.
4 *
5 */
6
7#ifndef _USBVISION_TRACING_H_
8#define _USBVISION_TRACING_H_
9
10void load_setting(void);
11void create_log(void);
12void usbvision_trace(bool b_force, char *fmt, ...);
13
14#define TRACE_ALWAYS(x...) usbvision_trace(true, x);
15#define TRACE(x...) usbvision_trace(false, x);
16
17extern bool b_log_funcalls;
18#define TRACE_FUNCALLS(x...)\
19        { if(b_log_funcalls) usbvision_trace(false, x);}
20
21extern bool b_log_funcret;
22#define TRACE_FUNCRET(x...)\
23        { if(b_log_funcret) usbvision_trace(false, x);}
24
25extern bool b_log_funcres;
26#define TRACE_FUNCRES(func, param)\
27        { if(b_log_funcres) func(param);}
28
29void trace_reginfo(xet_nt100x_reg *reginfo);
30
31#endif /*_USBVISION_TRACING_H_*/
32