summaryrefslogtreecommitdiff
path: root/other/burneye2/ia32/ia32-debug.h
blob: f37cca70cdb3968d09e9666336d82cb70ce6797b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
/* ia32-debug.c - ia32 debug output functionality, include file
 *
 * by scut
 */

#ifndef	IA32_DEBUG_H
#define	IA32_DEBUG_H

#define	IA32_FATAL	0
#define	IA32_WARNING	1
#define	IA32_INFO	2
#define	IA32_DEBUG	3


/* ia32_verbose
 *
 * tests whether `vlevel' can be passed through the filter.
 *
 * return 0 if it is too verbose
 * return 1 if user wants this verbosity
 */

int
ia32_verbose (int vlevel);


/* ia32_debug
 *
 * output format message `fmt' to stderr when `vlevel' is higher or equal
 * to internal verbosity filter (ia32_verbosity).
 *
 * return length of message send to stderr
 */

int
ia32_debug (int vlevel, const char *fmt, ...);


/* ia32_confirm
 *
 * wait for a keypress (return).
 */

void
ia32_confirm (void);

#endif