summaryrefslogtreecommitdiff
path: root/src/ivyglibloop.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/ivyglibloop.h')
-rw-r--r--src/ivyglibloop.h50
1 files changed, 50 insertions, 0 deletions
diff --git a/src/ivyglibloop.h b/src/ivyglibloop.h
new file mode 100644
index 0000000..6941069
--- /dev/null
+++ b/src/ivyglibloop.h
@@ -0,0 +1,50 @@
+/*
+* Ivy, C interface
+*
+* Copyright (C) 1997-2000
+* Centre d'Études de la Navigation Aérienne
+*
+* Main loop based on the GTK Toolkit
+*
+* Authors: François-Régis Colin <fcolin@cena.fr>
+*
+* $Id$
+*
+* Please refer to file version.h for the
+* copyright notice regarding this software
+*/
+
+#ifndef IVYGLIBLOOP_H
+#define IVYGLIBLOOP_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#define ANYPORT 0
+
+#ifdef WIN32
+#include <windows.h>
+#define HANDLE SOCKET
+#else
+#define HANDLE int
+#endif
+
+#include "ivychannel.h"
+
+extern void IvyGlibChannelInit(void);
+
+extern Channel IvyGlibChannelSetUp(
+ HANDLE fd,
+ void *data,
+ ChannelHandleDelete handle_delete,
+ ChannelHandleRead handle_read
+ );
+
+extern void IvyGlibChannelClose( Channel channel );
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* IVYGLIBLOOP_H */