--- l2.h 2001/09/05 07:41:18 1.17
+++ l2.h 2001/09/05 13:32:04 1.18
@@ -72,6 +72,7 @@
L2_LEVEL_TRACE = (1 << 6),
L2_LEVEL_DEBUG = (1 << 7)
} l2_level_t;
+#define L2_LEVEL_CUSTOM(n) (1 << (8+(n))
/* all levels from highest (PANIC) to and including a particular low level */
#define L2_LEVEL_UPTO(level) \
@@ -163,6 +164,8 @@
extern l2_handler_t l2_handler_prefix;
extern l2_handler_t l2_handler_buffer;
+/* level operations */
+
/* channel operations */
l2_channel_t *l2_channel_create (l2_handler_t *h);
l2_result_t l2_channel_configure (l2_channel_t *ch, const char *fmt, ...);
@@ -185,7 +188,9 @@
l2_result_t l2_stream_destroy (l2_stream_t *st);
/* utility operations */
-l2_result_t l2_util_setparams(l2_param_t p[], const char *fmt, va_list ap);
+l2_result_t l2_util_setparams (l2_param_t p[], const char *fmt, va_list ap);
+l2_result_t l2_util_l2s (char *string, size_t maxlen, int sep, unsigned int levelmask);
+l2_result_t l2_util_s2l (const char *string, size_t maxlen, int sep, unsigned int *levelmask);
#endif /* __L2_H__ */
|