From d3b04f0209ea826c67a2ee84ced889ee907f49a0 Mon Sep 17 00:00:00 2001 From: jacomi Date: Wed, 12 Aug 1998 10:23:25 +0000 Subject: version relookee en ivy --- src/ivyloop.h | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 src/ivyloop.h (limited to 'src/ivyloop.h') diff --git a/src/ivyloop.h b/src/ivyloop.h new file mode 100644 index 0000000..1eb7166 --- /dev/null +++ b/src/ivyloop.h @@ -0,0 +1,39 @@ +#ifndef _IVYLOOP_H +#define _IVYLOOP_H + +#ifdef __cplusplus +extern "C" { +#endif + +#include "ivychannel.h" + +/* general Handle */ + +#define ANYPORT 0 + +#ifdef WIN32 +#include +#define HANDLE SOCKET +#else +#define HANDLE int +#endif + +extern void BusLoopChannelInit(void); +extern void BusLoopChannelStop(void); +extern void BusLoopChannelMainLoop(void(*hook)(void) ); + +extern Channel BusLoopChannelSetUp( + HANDLE fd, + void *data, + ChannelHandleDelete handle_delete, + ChannelHandleRead handle_read + ); + +extern void BusLoopChannelClose( Channel channel ); + + +#ifdef __cplusplus +} +#endif + +#endif -- cgit v1.1