diff options
author | jacomi | 1998-08-12 10:23:25 +0000 |
---|---|---|
committer | jacomi | 1998-08-12 10:23:25 +0000 |
commit | d3b04f0209ea826c67a2ee84ced889ee907f49a0 (patch) | |
tree | e0900dda136b9a9f38ee7b412db427a7315b06dc /src/ivyloop.h | |
parent | 6ff2ef5124e1101f475ad87b178b925489de2845 (diff) | |
download | ivy-c-d3b04f0209ea826c67a2ee84ced889ee907f49a0.zip ivy-c-d3b04f0209ea826c67a2ee84ced889ee907f49a0.tar.gz ivy-c-d3b04f0209ea826c67a2ee84ced889ee907f49a0.tar.bz2 ivy-c-d3b04f0209ea826c67a2ee84ced889ee907f49a0.tar.xz |
version relookee en ivy
Diffstat (limited to 'src/ivyloop.h')
-rw-r--r-- | src/ivyloop.h | 39 |
1 files changed, 39 insertions, 0 deletions
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 <windows.h> +#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 |