X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=ucw%2Flog-internal.h;h=dc1d1526007683cf39e441ce3b55dec725f6d599;hb=156301aa8c7fd24d49ed27cfbd1afc10ccb7bc58;hp=9651d033a8f007eca667ba012cee675cf13f55cb;hpb=220a6551622b6c87b26450a3ca4fe48c1acfce95;p=libucw.git diff --git a/ucw/log-internal.h b/ucw/log-internal.h index 9651d033..dc1d1526 100644 --- a/ucw/log-internal.h +++ b/ucw/log-internal.h @@ -11,22 +11,27 @@ #ifndef _UCW_LOG_INTERNAL_H_ #define _UCW_LOG_INTERNAL_H_ -/* - * Pass a message to a stream. - * @depth prevents loops. - * Returns 1 in case of loop detection or other fatal error, - * 0 otherwise - */ -int log_pass_msg(int depth, struct log_stream *ls, struct log_msg *m); +#ifdef CONFIG_UCW_CLEAN_ABI +#define log_pass_msg ucw_log_pass_msg +#define log_stream_default ucw_log_stream_default +#define log_streams ucw_log_streams +#define log_streams_after ucw_log_streams_after +#define log_type_names ucw_log_type_names +#endif + +/* Pass a message to a stream. */ +void log_pass_msg(struct log_stream *ls, struct log_msg *m); /* Define an array (growing buffer) for pointers to log_streams. */ #define GBUF_TYPE struct log_stream* #define GBUF_PREFIX(x) lsbuf_##x -#include "ucw/gbuf.h" +#include extern struct lsbuf_t log_streams; extern int log_streams_after; extern struct log_stream log_stream_default; +extern char **log_type_names; + #endif