]> mj.ucw.cz Git - libucw.git/blobdiff - ucw/log-internal.h
Opt: Generalization of hooks
[libucw.git] / ucw / log-internal.h
index 5d21ce7773702b5a494d1a7e1e3c54ec69330baf..c2eef05bad331dd25c348705ce4e43a1c88b41ea 100644 (file)
 #ifndef _UCW_LOG_INTERNAL_H_
 #define _UCW_LOG_INTERNAL_H_
 
+#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.
  * @depth prevents loops.
@@ -22,7 +30,7 @@ int log_pass_msg(int depth, 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;