summaryrefslogtreecommitdiff
path: root/lib/skin_parser/skin_debug.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/skin_parser/skin_debug.h')
-rw-r--r--lib/skin_parser/skin_debug.h48
1 files changed, 48 insertions, 0 deletions
diff --git a/lib/skin_parser/skin_debug.h b/lib/skin_parser/skin_debug.h
new file mode 100644
index 0000000000..a550dc4c7b
--- /dev/null
+++ b/lib/skin_parser/skin_debug.h
@@ -0,0 +1,48 @@
1/***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 * $Id$
9 *
10 * Copyright (C) 2010 Robert Bieber
11 *
12 * This program is free software; you can redistribute it and/or
13 * modify it under the terms of the GNU General Public License
14 * as published by the Free Software Foundation; either version 2
15 * of the License, or (at your option) any later version.
16 *
17 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
18 * KIND, either express or implied.
19 *
20 ****************************************************************************/
21
22
23#ifndef SKIN_DEBUG_H
24#define SKIN_DEBUG_H
25
26#ifdef __cplusplus
27extern "C"
28{
29#endif
30
31#include "skin_parser.h"
32
33/* Debugging functions */
34void skin_error(enum skin_errorcode error);
35int skin_error_line();
36char* skin_error_message();
37void skin_clear_errors();
38void skin_debug_tree(struct skin_element* root);
39
40/* Auxiliary debug functions */
41void skin_debug_params(int count, struct skin_tag_parameter params[]);
42void skin_debug_indent();
43
44#ifdef __cplusplus
45}
46#endif
47
48#endif // SKIN_DEBUG_H