From 1e48ff652b95379376044b0a7187e1c75fb76d42 Mon Sep 17 00:00:00 2001 From: fcolin Date: Fri, 21 Apr 2006 16:34:15 +0000 Subject: cleanup sur channel et main loop --- src/ivytcl.c | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) (limited to 'src/ivytcl.c') diff --git a/src/ivytcl.c b/src/ivytcl.c index 74ed129..a43821a 100755 --- a/src/ivytcl.c +++ b/src/ivytcl.c @@ -29,6 +29,7 @@ #include "ivytcl.h" #include "ivysocket.h" +#include "ivychannel.h" #include "ivy.h" #include "timer.h" @@ -38,10 +39,6 @@ // mais il y a des problemes sur les socket server // Il n'y a pas de Tcl_MakeTCPserver -ChannelInit channel_init = IvyTclChannelInit; -ChannelSetUp channel_setup = IvyTclChannelSetUp; -ChannelClose channel_close = IvyTclChannelClose; - struct _channel { HANDLE fd; void *data; @@ -59,7 +56,7 @@ static int channel_initialized = 0; WSADATA WsaData; #endif -void IvyTclChannelInit(void) +void IvyChannelInit(void) { #ifdef WIN32 int error; @@ -93,7 +90,7 @@ IvyHandleFd(ClientData cd, } } -void IvyTclChannelClose( Channel channel ) +void IvyChannelRemove( Channel channel ) { if ( channel->handle_delete ) @@ -103,7 +100,7 @@ void IvyTclChannelClose( Channel channel ) } -Channel IvyTclChannelSetUp(HANDLE fd, void *data, +Channel IvyChannelAdd(HANDLE fd, void *data, ChannelHandleDelete handle_delete, ChannelHandleRead handle_read ) @@ -138,7 +135,7 @@ void IvyIdleProc(ClientData clientData) #endif void -TclIvyStop () +IvyChannelStop () { /* To be implemented */ #ifndef TCL_CHANNEL_INTEGRATION -- cgit v1.1