summaryrefslogtreecommitdiff
path: root/src/ivytcl.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ivytcl.c')
-rwxr-xr-xsrc/ivytcl.c13
1 files changed, 5 insertions, 8 deletions
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