]> mj.ucw.cz Git - libucw.git/blob - ucw/log-internal.h
tableprinter: header option now parsed by xtypes
[libucw.git] / ucw / log-internal.h
1 /*
2  *      UCW Library -- Internals of Logging
3  *
4  *      (c) 1997--2009 Martin Mares <mj@ucw.cz>
5  *      (c) 2008 Tomas Gavenciak <gavento@ucw.cz>
6  *
7  *      This software may be freely distributed and used according to the terms
8  *      of the GNU Lesser General Public License.
9  */
10
11 #ifndef _UCW_LOG_INTERNAL_H_
12 #define _UCW_LOG_INTERNAL_H_
13
14 #ifdef CONFIG_UCW_CLEAN_ABI
15 #define log_pass_msg ucw_log_pass_msg
16 #define log_stream_default ucw_log_stream_default
17 #define log_streams ucw_log_streams
18 #define log_streams_after ucw_log_streams_after
19 #define log_type_names ucw_log_type_names
20 #endif
21
22 /* Pass a message to a stream. */
23 void log_pass_msg(struct log_stream *ls, struct log_msg *m);
24
25 /* Define an array (growing buffer) for pointers to log_streams. */
26 #define GBUF_TYPE struct log_stream*
27 #define GBUF_PREFIX(x) lsbuf_##x
28 #include <ucw/gbuf.h>
29
30 extern struct lsbuf_t log_streams;
31 extern int log_streams_after;
32
33 extern struct log_stream log_stream_default;
34
35 extern char **log_type_names;
36
37 #endif