--- l2_ch_file.c 2001/09/04 15:44:48 1.11
+++ l2_ch_file.c 2001/09/04 19:18:49 1.12
@@ -43,7 +43,7 @@
} l2_ch_file_t;
/* create channel */
-static int hook_create(l2_context_t *ctx, l2_channel_t *ch)
+static l2_result_t hook_create(l2_context_t *ctx, l2_channel_t *ch)
{
l2_ch_file_t *cfg;
@@ -64,7 +64,7 @@
}
/* configure channel */
-static int hook_configure(l2_context_t *ctx, l2_channel_t *ch, const char *fmt, va_list ap)
+static l2_result_t hook_configure(l2_context_t *ctx, l2_channel_t *ch, const char *fmt, va_list ap)
{
l2_ch_file_t *cfg;
l2_param_t pa[4];
@@ -85,7 +85,7 @@
}
/* open channel */
-static int hook_open(l2_context_t *ctx, l2_channel_t *ch)
+static l2_result_t hook_open(l2_context_t *ctx, l2_channel_t *ch)
{
l2_ch_file_t *cfg;
int mode;
@@ -107,7 +107,7 @@
}
/* write to channel */
-static int hook_write(l2_context_t *ctx, l2_channel_t *ch,
+static l2_result_t hook_write(l2_context_t *ctx, l2_channel_t *ch,
const char *buf, size_t buf_size)
{
l2_ch_file_t *cfg;
@@ -126,7 +126,7 @@
}
/* flush channel */
-static int hook_flush(l2_context_t *ctx, l2_channel_t *ch)
+static l2_result_t hook_flush(l2_context_t *ctx, l2_channel_t *ch)
{
/* NOP for this channel, because Unix I/O files are unbuffered! */
@@ -134,7 +134,7 @@
}
/* close channel */
-static int hook_close(l2_context_t *ctx, l2_channel_t *ch)
+static l2_result_t hook_close(l2_context_t *ctx, l2_channel_t *ch)
{
l2_ch_file_t *cfg;
@@ -152,7 +152,7 @@
}
/* destroy channel */
-static int hook_destroy(l2_context_t *ctx, l2_channel_t *ch)
+static l2_result_t hook_destroy(l2_context_t *ctx, l2_channel_t *ch)
{
/* parameter checks */
if (ctx->vp == NULL)
|