2 * UCW Library -- Internals of Logging
4 * (c) 1997--2009 Martin Mares <mj@ucw.cz>
5 * (c) 2008 Tomas Gavenciak <gavento@ucw.cz>
7 * This software may be freely distributed and used according to the terms
8 * of the GNU Lesser General Public License.
11 #ifndef _UCW_LOG_INTERNAL_H_
12 #define _UCW_LOG_INTERNAL_H_
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
22 /* Pass a message to a stream. */
23 void log_pass_msg(struct log_stream *ls, struct log_msg *m);
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
30 extern struct lsbuf_t log_streams;
31 extern int log_streams_after;
33 extern struct log_stream log_stream_default;
35 extern char **log_type_names;