--- l2_ch_pipe.c 2001/08/15 10:36:03 1.4
+++ l2_ch_pipe.c 2001/09/04 15:41:17 1.5
@@ -30,43 +30,44 @@
#include "l2.h"
#include "l2_p.h"
-static int hook_create(l2_context_t *ctx)
+static int hook_create(l2_context_t *ctx, l2_channel_t *ch)
{
return L2_OK;
}
-static int hook_configure(l2_context_t *ctx, const char *fmt, va_list ap)
+static int hook_configure(l2_context_t *ctx, l2_channel_t *ch, const char *fmt, va_list ap)
{
return L2_OK;
}
-static int hook_open(l2_context_t *ctx, l2_channel_t *downstream)
+static int hook_open(l2_context_t *ctx, l2_channel_t *ch)
{
return L2_OK;
}
-static int hook_write(l2_context_t *ctx, l2_channel_t *downstream,
+static int hook_write(l2_context_t *ctx, l2_channel_t *ch,
const char *buf, size_t buf_size)
{
return L2_OK;
}
-static int hook_flush(l2_context_t *ctx, l2_channel_t *downstream)
+static int hook_flush(l2_context_t *ctx, l2_channel_t *ch)
{
return L2_OK;
}
-static int hook_close(l2_context_t *ctx, l2_channel_t *downstream)
+static int hook_close(l2_context_t *ctx, l2_channel_t *ch)
{
return L2_OK;
}
-static int hook_destroy(l2_context_t *ctx)
+static int hook_destroy(l2_context_t *ctx, l2_channel_t *ch)
{
return L2_OK;
}
l2_handler_t l2_handler_pipe = {
+ L2_CHANNEL_OUTPUT,
hook_create,
hook_configure,
hook_open,
|