summaryrefslogtreecommitdiff
path: root/src/ivyglibloop.h
diff options
context:
space:
mode:
authordrouin2004-09-01 15:54:51 +0000
committerdrouin2004-09-01 15:54:51 +0000
commit12751e3fc02e45da1198b82dadf83fe861ebfd1e (patch)
treea56a2fdb4d4640dc29b5e3d080265d4d164f6b5d /src/ivyglibloop.h
parentd95d579469c04a581fd5559e96d28b88293613c3 (diff)
downloadivy-c-12751e3fc02e45da1198b82dadf83fe861ebfd1e.zip
ivy-c-12751e3fc02e45da1198b82dadf83fe861ebfd1e.tar.gz
ivy-c-12751e3fc02e45da1198b82dadf83fe861ebfd1e.tar.bz2
ivy-c-12751e3fc02e45da1198b82dadf83fe861ebfd1e.tar.xz
replaced the gtk mainloop with a glib one. added -Wall compile directive . fixed some warnings
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 */