| 1 |
/* |
| 2 |
* Copyright (C) 2013-2021 Jean-Luc Barrière |
| 3 |
* |
| 4 |
* SPDX-License-Identifier: GPL-2.0-or-later |
| 5 |
* See LICENSE.md for more information. |
| 6 |
*/ |
| 7 |
|
| 8 |
#ifndef TS_DEBUG_H |
| 9 |
#define TS_DEBUG_H |
| 10 |
|
| 11 |
#define DEMUX_DBG_NONE -1 |
| 12 |
#define DEMUX_DBG_ERROR 0 |
| 13 |
#define DEMUX_DBG_WARN 1 |
| 14 |
#define DEMUX_DBG_INFO 2 |
| 15 |
#define DEMUX_DBG_DEBUG 3 |
| 16 |
#define DEMUX_DBG_PARSE 4 |
| 17 |
#define DEMUX_DBG_ALL 6 |
| 18 |
|
| 19 |
namespace TSDemux |
| 20 |
{ |
| 21 |
void DBGLevel(int l); |
| 22 |
void DBGAll(void); |
| 23 |
void DBGNone(void); |
| 24 |
void DBG(int level, const char* fmt, ...); |
| 25 |
void SetDBGMsgCallback(void (*msgcb)(int level, char*)); |
| 26 |
} |
| 27 |
|
| 28 |
#endif /* TS_DEBUG_H */ |