--- l2.h 2001/09/02 13:18:36 1.10
+++ l2.h 2001/09/03 12:16:44 1.11
@@ -165,12 +165,12 @@
/* stream operations */
l2_stream_t *l2_stream_create (void);
-l2_stream_t *l2_stream_channel (l2_stream_t *st, l2_channel_t *ch, unsigned int levelmask);
-l2_stream_t *l2_stream_formatter (l2_stream_t *st, l2_formatter_t *cb, l2_context_t *ctx);
-unsigned int l2_stream_levels (l2_stream_t *st, unsigned int levelmask);
-void l2_stream_log (l2_stream_t *st, unsigned int log_level, const char *fmt, ...);
-void l2_stream_vlog (l2_stream_t *st, unsigned int log_level, const char *fmt, va_list ap);
-void l2_stream_destroy (l2_stream_t *st);
+l2_result_t l2_stream_channel (l2_stream_t *st, l2_channel_t *ch, unsigned int levelmask);
+l2_result_t l2_stream_formatter (l2_stream_t *st, const char *name, l2_formatter_t cb, l2_context_t *ctx);
+l2_result_t l2_stream_levels (l2_stream_t *st, unsigned int levelmask, unsigned int *levelmaskold);
+l2_result_t l2_stream_log (l2_stream_t *st, unsigned int log_level, const char *fmt, ...);
+l2_result_t l2_stream_vlog (l2_stream_t *st, unsigned int log_level, const char *fmt, va_list ap);
+l2_result_t l2_stream_destroy (l2_stream_t *st);
#endif /* __L2_H__ */
|