libcdio  0.83
logging.h
Go to the documentation of this file.
1 /*
2  $Id: logging.h,v 1.11 2008/03/25 15:59:09 karl Exp $
3 
4  Copyright (C) 2003, 2004, 2008 Rocky Bernstein <rocky@gnu.org>
5  Copyright (C) 2000 Herbert Valerio Riedel <hvr@gnu.org>
6 
7  This program is free software: you can redistribute it and/or modify
8  it under the terms of the GNU General Public License as published by
9  the Free Software Foundation, either version 3 of the License, or
10  (at your option) any later version.
11 
12  This program is distributed in the hope that it will be useful,
13  but WITHOUT ANY WARRANTY; without even the implied warranty of
14  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  GNU General Public License for more details.
16 
17  You should have received a copy of the GNU General Public License
18  along with this program. If not, see <http://www.gnu.org/licenses/>.
19 */
20 
25 
26 #ifndef __LOGGING_H__
27 #define __LOGGING_H__
28 
29 #include <cdio/types.h>
30 
31 #ifdef __cplusplus
32 extern "C" {
33 #endif
34 
38 typedef enum {
46 
53 
65 typedef void (*cdio_log_handler_t) (cdio_log_level_t level,
66  const char message[]);
67 
79 
92 void cdio_log (cdio_log_level_t level,
93  const char format[], ...) GNUC_PRINTF(2, 3);
94 
100 void cdio_debug (const char format[], ...) GNUC_PRINTF(1,2);
101 
107 void cdio_info (const char format[], ...) GNUC_PRINTF(1,2);
108 
114 void cdio_warn (const char format[], ...) GNUC_PRINTF(1,2);
115 
121 void cdio_error (const char format[], ...) GNUC_PRINTF(1,2);
122 
123 #ifdef __cplusplus
124 }
125 #endif
126 
127 #endif /* __LOGGING_H__ */
128 
129 
130 /*
131  * Local variables:
132  * c-file-style: "gnu"
133  * tab-width: 8
134  * indent-tabs-mode: nil
135  * End:
136  */

Generated for libcdio by doxygen 1.8.1.1