]> mj.ucw.cz Git - libucw.git/blobdiff - ucw/log-internal.h
tableprinter: code cleanup
[libucw.git] / ucw / log-internal.h
index 5d21ce7773702b5a494d1a7e1e3c54ec69330baf..dc1d1526007683cf39e441ce3b55dec725f6d599 100644 (file)
 #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 <ucw/gbuf.h>
 
 extern struct lsbuf_t log_streams;
 extern int log_streams_after;