blob: 8fc061a9f9a7c6059f3bb802d813d02e3a3732f2 [file] [log] [blame]
Robert Bieberd5b24dd2010-05-25 15:19:52 +00001/***************************************************************************
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
Robert Bieberc5e14b52010-05-31 17:39:58 +000026#ifdef __cplusplus
27extern "C"
28{
29#endif
30
Robert Bieberd5b24dd2010-05-25 15:19:52 +000031#include "skin_parser.h"
Jonathan Gordon41468822010-06-24 14:46:21 +000032#ifndef ROCKBOX
Robert Bieberd5b24dd2010-05-25 15:19:52 +000033/* Debugging functions */
34void skin_error(enum skin_errorcode error);
Björn Stenbergf1a144a2010-06-17 11:04:32 +000035int skin_error_line(void);
36char* skin_error_message(void);
37void skin_clear_errors(void);
Robert Bieberd5b24dd2010-05-25 15:19:52 +000038void skin_debug_tree(struct skin_element* root);
39
40/* Auxiliary debug functions */
41void skin_debug_params(int count, struct skin_tag_parameter params[]);
Björn Stenbergf1a144a2010-06-17 11:04:32 +000042void skin_debug_indent(void);
Jonathan Gordon41468822010-06-24 14:46:21 +000043#else
44
45#define skin_error(...)
46#define skin_clear_errors()
47
48#endif /* !ROCKBOX */
49
Robert Bieberd5b24dd2010-05-25 15:19:52 +000050
Robert Bieberc5e14b52010-05-31 17:39:58 +000051#ifdef __cplusplus
52}
53#endif
54
Robert Bieberd5b24dd2010-05-25 15:19:52 +000055#endif // SKIN_DEBUG_H