libbluray
log_control.h
Go to the documentation of this file.
1 /*
2  * This file is part of libbluray
3  * Copyright (C) 2009-2010 Obliter0n
4  * Copyright (C) 2009-2010 John Stebbins
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public
8  * License as published by the Free Software Foundation; either
9  * version 2.1 of the License, or (at your option) any later version.
10  *
11  * This library is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14  * Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License along with this library. If not, see
18  * <http://www.gnu.org/licenses/>.
19  */
20 
33 #ifndef BD_LOG_CONTROL_H_
34 #define BD_LOG_CONTROL_H_
35 
36 #ifdef __cplusplus
37 extern "C" {
38 #endif
39 
40 #include <stdint.h>
41 
45 typedef enum debug_mask_enum {
46  DBG_RESERVED = 0x00001, /* (reserved) */
47  DBG_CONFIGFILE = 0x00002, /* (reserved for libaacs) */
48  DBG_FILE = 0x00004, /* (reserved for libaacs) */
49  DBG_AACS = 0x00008, /* (reserved for libaacs) */
50  DBG_MKB = 0x00010, /* (reserved for libaacs) */
51  DBG_MMC = 0x00020, /* (reserved for libaacs) */
52  DBG_BLURAY = 0x00040,
53  DBG_DIR = 0x00080,
54  DBG_NAV = 0x00100,
55  DBG_BDPLUS = 0x00200, /* (reserved for libbdplus) */
56  DBG_DLX = 0x00400, /* (reserved for libbdplus) */
57  DBG_CRIT = 0x00800,
58  DBG_HDMV = 0x01000,
59  DBG_BDJ = 0x02000,
60  DBG_STREAM = 0x04000,
61  DBG_GC = 0x08000,
62  DBG_DECODE = 0x10000,
63  DBG_JNI = 0x20000,
64 } debug_mask_t;
65 
71 typedef void (*BD_LOG_FUNC)(const char *msg);
72 
82 
88 void bd_set_debug_mask(uint32_t mask);
89 
95 uint32_t bd_get_debug_mask(void);
96 
97 #ifdef __cplusplus
98 }
99 #endif
100 
101 #endif /* BD_LOG_CONTROL_H_ */
debug_mask_t
Flags for log filtering.
Definition: log_control.h:45
@ DBG_CRIT
Critical messages and errors (default)
Definition: log_control.h:57
@ DBG_DIR
Directory access.
Definition: log_control.h:53
@ DBG_NAV
Database files (playlist and clip info)
Definition: log_control.h:54
@ DBG_BDJ
BD-J subsystem and Xlet trace.
Definition: log_control.h:59
@ DBG_BLURAY
BluRay player.
Definition: log_control.h:52
@ DBG_GC
graphics controller trace
Definition: log_control.h:61
@ DBG_JNI
JNI calls.
Definition: log_control.h:63
@ DBG_HDMV
HDMV virtual machine execution trace.
Definition: log_control.h:58
@ DBG_STREAM
m2ts stream trace
Definition: log_control.h:60
@ DBG_DECODE
PG / IG decoders, m2ts demuxer.
Definition: log_control.h:62
void(* BD_LOG_FUNC)(const char *msg)
Log a message.
Definition: log_control.h:71
void bd_set_debug_mask(uint32_t mask)
Set (global) debug mask.
uint32_t bd_get_debug_mask(void)
Get current (global) debug mask.
void bd_set_debug_handler(BD_LOG_FUNC handler)
Set (global) debug handler.