libbluray
Toggle main menu visibility
Loading...
Searching...
No Matches
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
32
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
42
#ifdef BLURAY_API_EXPORT
43
#include "util/attributes.h"
44
#elif !defined(BD_PUBLIC)
45
#define BD_PUBLIC
46
#endif
47
51
typedef
enum
debug_mask_enum {
52
DBG_RESERVED = 0x00001,
/* (reserved) */
53
DBG_CONFIGFILE = 0x00002,
/* (reserved for libaacs) */
54
DBG_FILE = 0x00004,
/* (reserved for libaacs) */
55
DBG_AACS = 0x00008,
/* (reserved for libaacs) */
56
DBG_MKB = 0x00010,
/* (reserved for libaacs) */
57
DBG_MMC = 0x00020,
/* (reserved for libaacs) */
58
DBG_BLURAY
= 0x00040,
59
DBG_DIR
= 0x00080,
60
DBG_NAV
= 0x00100,
61
DBG_BDPLUS = 0x00200,
/* (reserved for libbdplus) */
62
DBG_DLX = 0x00400,
/* (reserved for libbdplus) */
63
DBG_CRIT
= 0x00800,
64
DBG_HDMV
= 0x01000,
65
DBG_BDJ
= 0x02000,
66
DBG_STREAM
= 0x04000,
67
DBG_GC
= 0x08000,
68
DBG_DECODE
= 0x10000,
69
DBG_JNI
= 0x20000,
70
}
debug_mask_t
;
71
77
typedef
void (*
BD_LOG_FUNC
)(
const
char
*msg);
78
87
BD_PUBLIC
void
bd_set_debug_handler
(
BD_LOG_FUNC
handler);
88
94
BD_PUBLIC
void
bd_set_debug_mask
(uint32_t mask);
95
101
BD_PUBLIC uint32_t
bd_get_debug_mask
(
void
);
102
103
#ifdef __cplusplus
104
}
105
#endif
106
107
#endif
/* BD_LOG_CONTROL_H_ */
debug_mask_t
debug_mask_t
Flags for log filtering.
Definition
log_control.h:51
DBG_CRIT
@ DBG_CRIT
Critical messages and errors (default)
Definition
log_control.h:63
DBG_DIR
@ DBG_DIR
Directory access.
Definition
log_control.h:59
DBG_NAV
@ DBG_NAV
Database files (playlist and clip info).
Definition
log_control.h:60
DBG_BDJ
@ DBG_BDJ
BD-J subsystem and Xlet trace.
Definition
log_control.h:65
DBG_BLURAY
@ DBG_BLURAY
BluRay player.
Definition
log_control.h:58
DBG_GC
@ DBG_GC
graphics controller trace
Definition
log_control.h:67
DBG_JNI
@ DBG_JNI
JNI calls.
Definition
log_control.h:69
DBG_HDMV
@ DBG_HDMV
HDMV virtual machine execution trace.
Definition
log_control.h:64
DBG_STREAM
@ DBG_STREAM
m2ts stream trace
Definition
log_control.h:66
DBG_DECODE
@ DBG_DECODE
PG / IG decoders, m2ts demuxer.
Definition
log_control.h:68
bd_set_debug_handler
BD_PUBLIC void bd_set_debug_handler(BD_LOG_FUNC handler)
Set (global) debug handler.
BD_LOG_FUNC
void(* BD_LOG_FUNC)(const char *msg)
Log a message.
Definition
log_control.h:77
bd_get_debug_mask
BD_PUBLIC uint32_t bd_get_debug_mask(void)
Get current (global) debug mask.
bd_set_debug_mask
BD_PUBLIC void bd_set_debug_mask(uint32_t mask)
Set (global) debug mask.