Loading...
Searching...
No Matches
log_control.h
Go to the documentation of this file.
/*
* This file is part of libbluray
* Copyright (C) 2009-2010 Obliter0n
* Copyright (C) 2009-2010 John Stebbins
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library. If not, see
* <http://www.gnu.org/licenses/>.
*/
#ifndef BD_LOG_CONTROL_H_
#define BD_LOG_CONTROL_H_
#ifdef __cplusplus
extern "C" {
#endif
#include <stdint.h>
#ifdef BLURAY_API_EXPORT
#include "util/attributes.h"
#elif !defined(BD_PUBLIC)
#define BD_PUBLIC
#endif
typedef enum debug_mask_enum {
DBG_RESERVED = 0x00001, /* (reserved) */
DBG_CONFIGFILE = 0x00002, /* (reserved for libaacs) */
DBG_FILE = 0x00004, /* (reserved for libaacs) */
DBG_AACS = 0x00008, /* (reserved for libaacs) */
DBG_MKB = 0x00010, /* (reserved for libaacs) */
DBG_MMC = 0x00020, /* (reserved for libaacs) */
DBG_BLURAY = 0x00040,
DBG_DIR = 0x00080,
DBG_NAV = 0x00100,
DBG_BDPLUS = 0x00200, /* (reserved for libbdplus) */
DBG_DLX = 0x00400, /* (reserved for libbdplus) */
DBG_CRIT = 0x00800,
DBG_HDMV = 0x01000,
DBG_BDJ = 0x02000,
DBG_STREAM = 0x04000,
DBG_GC = 0x08000,
DBG_DECODE = 0x10000,
DBG_JNI = 0x20000,
} debug_mask_t;
typedef void (*BD_LOG_FUNC)(const char *msg);
BD_PUBLIC void bd_set_debug_handler(BD_LOG_FUNC handler);
BD_PUBLIC void bd_set_debug_mask(uint32_t mask);
BD_PUBLIC uint32_t bd_get_debug_mask(void);
#ifdef __cplusplus
}
#endif
#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.