|
Packit |
5e46da |
/*
|
|
Packit |
5e46da |
* This file is part of libbluray
|
|
Packit |
5e46da |
* Copyright (C) 2009-2010 Obliter0n
|
|
Packit |
5e46da |
* Copyright (C) 2009-2010 John Stebbins
|
|
Packit |
5e46da |
*
|
|
Packit |
5e46da |
* This library is free software; you can redistribute it and/or
|
|
Packit |
5e46da |
* modify it under the terms of the GNU Lesser General Public
|
|
Packit |
5e46da |
* License as published by the Free Software Foundation; either
|
|
Packit |
5e46da |
* version 2.1 of the License, or (at your option) any later version.
|
|
Packit |
5e46da |
*
|
|
Packit |
5e46da |
* This library is distributed in the hope that it will be useful,
|
|
Packit |
5e46da |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
Packit |
5e46da |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
Packit |
5e46da |
* Lesser General Public License for more details.
|
|
Packit |
5e46da |
*
|
|
Packit |
5e46da |
* You should have received a copy of the GNU Lesser General Public
|
|
Packit |
5e46da |
* License along with this library. If not, see
|
|
Packit |
5e46da |
* <http://www.gnu.org/licenses/>.
|
|
Packit |
5e46da |
*/
|
|
Packit |
5e46da |
|
|
Packit |
5e46da |
#ifndef BD_LOG_CONTROL_H_
|
|
Packit |
5e46da |
#define BD_LOG_CONTROL_H_
|
|
Packit |
5e46da |
|
|
Packit |
5e46da |
#ifdef __cplusplus
|
|
Packit |
5e46da |
extern "C" {
|
|
Packit |
5e46da |
#endif
|
|
Packit |
5e46da |
|
|
Packit |
5e46da |
#include <stdint.h>
|
|
Packit |
5e46da |
|
|
Packit |
5e46da |
|
|
Packit |
5e46da |
enum debug_mask_enum {
|
|
Packit |
5e46da |
DBG_RESERVED = 0x00001,
|
|
Packit |
5e46da |
DBG_CONFIGFILE = 0x00002,
|
|
Packit |
5e46da |
DBG_FILE = 0x00004,
|
|
Packit |
5e46da |
DBG_AACS = 0x00008,
|
|
Packit |
5e46da |
DBG_MKB = 0x00010,
|
|
Packit |
5e46da |
DBG_MMC = 0x00020,
|
|
Packit |
5e46da |
DBG_BLURAY = 0x00040,
|
|
Packit |
5e46da |
DBG_DIR = 0x00080,
|
|
Packit |
5e46da |
DBG_NAV = 0x00100,
|
|
Packit |
5e46da |
DBG_BDPLUS = 0x00200,
|
|
Packit |
5e46da |
DBG_DLX = 0x00400,
|
|
Packit |
5e46da |
DBG_CRIT = 0x00800, /* this is libbluray's default debug mask so use this if you want to display critical info */
|
|
Packit |
5e46da |
DBG_HDMV = 0x01000,
|
|
Packit |
5e46da |
DBG_BDJ = 0x02000,
|
|
Packit |
5e46da |
DBG_STREAM = 0x04000,
|
|
Packit |
5e46da |
DBG_GC = 0x08000, /* graphics controller */
|
|
Packit |
5e46da |
DBG_DECODE = 0x10000, /* PG / IG decoders, m2ts demuxer */
|
|
Packit |
5e46da |
DBG_JNI = 0x20000, /* JNI calls */
|
|
Packit |
5e46da |
};
|
|
Packit |
5e46da |
|
|
Packit |
5e46da |
typedef enum debug_mask_enum debug_mask_t;
|
|
Packit |
5e46da |
|
|
Packit |
5e46da |
typedef void (*BD_LOG_FUNC)(const char *);
|
|
Packit |
5e46da |
|
|
Packit |
5e46da |
/*
|
|
Packit |
5e46da |
*
|
|
Packit |
5e46da |
*/
|
|
Packit |
5e46da |
|
|
Packit |
5e46da |
void bd_set_debug_handler(BD_LOG_FUNC);
|
|
Packit |
5e46da |
|
|
Packit |
5e46da |
void bd_set_debug_mask(uint32_t mask);
|
|
Packit |
5e46da |
uint32_t bd_get_debug_mask(void);
|
|
Packit |
5e46da |
|
|
Packit |
5e46da |
#ifdef __cplusplus
|
|
Packit |
5e46da |
}
|
|
Packit |
5e46da |
#endif
|
|
Packit |
5e46da |
|
|
Packit |
5e46da |
#endif /* BD_LOG_CONTROL_H_ */
|