libcdio
0.90
Main Page
Data Structures
Files
File List
Globals
include
cdio
logging.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2003, 2004, 2008, 2012 Rocky Bernstein <rocky@gnu.org>
3
Copyright (C) 2000 Herbert Valerio Riedel <hvr@gnu.org>
4
5
This program is free software: you can redistribute it and/or modify
6
it under the terms of the GNU General Public License as published by
7
the Free Software Foundation, either version 3 of the License, or
8
(at your option) any later version.
9
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 General Public License for more details.
14
15
You should have received a copy of the GNU General Public License
16
along with this program. If not, see <http://www.gnu.org/licenses/>.
17
*/
18
23
24
#ifndef CDIO_LOGGING_H_
25
#define CDIO_LOGGING_H_
26
27
#include <
cdio/types.h
>
28
29
#ifdef __cplusplus
30
extern
"C"
{
31
#endif
32
36
typedef
enum
{
37
CDIO_LOG_DEBUG
= 1,
38
CDIO_LOG_INFO
,
40
CDIO_LOG_WARN
,
41
CDIO_LOG_ERROR
,
42
CDIO_LOG_ASSERT
43
}
cdio_log_level_t
;
44
50
extern
cdio_log_level_t
cdio_loglevel_default
;
51
63
typedef
void (*
cdio_log_handler_t
) (
cdio_log_level_t
level,
64
const
char
message[]);
65
76
cdio_log_handler_t
cdio_log_set_handler
(
cdio_log_handler_t
new_handler);
77
90
void
cdio_log
(
cdio_log_level_t
level,
91
const
char
format[], ...)
GNUC_PRINTF
(2, 3);
92
98
void
cdio_debug
(const
char
format[], ...)
GNUC_PRINTF
(1,2);
99
105
void
cdio_info
(const
char
format[], ...) GNUC_PRINTF(1,2);
106
112
void
cdio_warn
(const
char
format[], ...) GNUC_PRINTF(1,2);
113
119
void
cdio_error
(const
char
format[], ...) GNUC_PRINTF(1,2);
120
121
#ifdef __cplusplus
122
}
123
#endif
124
125
#endif
/* CDIO_LOGGING_H_ */
126
127
128
/*
129
* Local variables:
130
* c-file-style: "gnu"
131
* tab-width: 8
132
* indent-tabs-mode: nil
133
* End:
134
*/
Generated for libcdio by
1.8.4