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