X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=ucw%2Flog-internal.h;h=dc1d1526007683cf39e441ce3b55dec725f6d599;hb=156301aa8c7fd24d49ed27cfbd1afc10ccb7bc58;hp=5d21ce7773702b5a494d1a7e1e3c54ec69330baf;hpb=2ce3523cd91426310d4bd1e2563cb7af09d0d5bd;p=libucw.git diff --git a/ucw/log-internal.h b/ucw/log-internal.h index 5d21ce77..dc1d1526 100644 --- a/ucw/log-internal.h +++ b/ucw/log-internal.h @@ -11,18 +11,21 @@ #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;