OSSP CVS Repository

ossp - Difference in ossp-pkg/l2/l2_p.h versions 1.8 and 1.9
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [History

ossp-pkg/l2/l2_p.h 1.8 -> 1.9

--- l2_p.h       2001/09/03 12:16:44     1.8
+++ l2_p.h       2001/09/03 13:43:33     1.9
@@ -49,17 +49,22 @@
     l2_handler_t  handler;
 };
 
-typedef struct l2_format_st {
+typedef struct {
+    l2_channel_t *ch;
+    unsigned int levelmask;
+} l2_channel_entry_t;
+
+typedef struct {
+    l2_formatter_t cb;
+    void *ctx;
     char *name;
-    void *context;
-    l2_formatter_t callback;
-} l2_format_t;
+} l2_formatter_entry_t;
 
 struct l2_stream_st {
-    unsigned int  levelmask;
-    char          message[L2_MAX_MSGSIZE];
-    l2_channel_t *channels[L2_MAX_CHANNELS];
-    l2_format_t   formatters[L2_MAX_FORMATTERS];
+    unsigned int          levelmask;
+    char                  message[L2_MAX_MSGSIZE];
+    l2_channel_entry_t    channels[L2_MAX_CHANNELS];
+    l2_formatter_entry_t  formatters[L2_MAX_FORMATTERS];
 };
 
 /* variable argument handling taking care on argument passing conventions */

CVSTrac 2.0.1