summaryrefslogtreecommitdiff
path: root/src/ivyloop.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/ivyloop.h')
-rw-r--r--src/ivyloop.h39
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