Add missing files
[gmpc-magnatune.git] / src / axl / axl_log.h
blobe09cb54a378154f095ffde424adbe932633d9840
1 /**
2 * LibAxl: Another XML library
3 * Copyright (C) 2006 Advanced Software Production Line, S.L.
5 * This program is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public License
7 * as published by the Free Software Foundation; either version 2.1 of
8 * the License, or (at your option) any later version.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU Lesser General Public License for more details.
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this program; if not, write to the Free
17 * Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
18 * 02111-1307 USA
20 * You may find a copy of the license under this software is released
21 * at COPYING file. This is LGPL software: you are welcome to
22 * develop proprietary applications using this library without any
23 * royalty or fee but returning back any change, improvement or
24 * addition in the form of source code, project image, documentation
25 * patches, etc.
27 * For commercial support on build XML enabled solutions contact us:
29 * Postal address:
30 * Advanced Software Production Line, S.L.
31 * C/ Dr. Michavila NÂș 14
32 * Coslada 28820 Madrid
33 * Spain
35 * Email address:
36 * info@aspl.es - http://fact.aspl.es
38 #ifndef __AXL_LOG_H__
39 #define __AXL_LOG_H__
41 #include <axl_decl.h>
43 BEGIN_C_DECLS
45 /**
46 * \addtogroup axl_log_module
47 * @{
50 bool axl_log_is_enabled ();
52 bool axl_log_color_is_enabled ();
55 #if defined(SHOW_DEBUG_LOG)
56 # define __axl_log axl_log
57 #else
58 # if defined(AXL_OS_WIN32) && ! defined (__GNUC__)
59 # define __axl_log axl_log
60 # else
61 # define __axl_log(domain, level, message, ...) /* nothing */
62 # endif
63 #endif
65 void axl_log (char * domain, AxlDebugLevel level, char * message, ...);
67 /* @} */
69 END_C_DECLS
71 #endif