/* * Ivy, C interface * * Copyright (C) 1997-2000 * Centre d'Études de la Navigation Aérienne * * Main loop based on the X Toolkit * * Authors: François-Régis Colin * Stéphane Chatty * * $Id$ * * Please refer to file version.h for the * copyright notice regarding this software */ #ifndef IVYXTLOOP_H #define IVYXTLOOP_H #ifdef __cplusplus extern "C" { #endif #include /* general Handle */ #define ANYPORT 0 #ifdef WIN32 #include #define HANDLE SOCKET #else #define HANDLE int #endif #include "ivychannel.h" extern void IvyXtChannelInit(void); extern Channel IvyXtChannelSetUp( HANDLE fd, void *data, ChannelHandleDelete handle_delete, ChannelHandleRead handle_read ); extern void IvyXtChannelClose( Channel channel ); extern void IvyXtChannelAppContext( XtAppContext cntx ); #ifdef __cplusplus } #endif #endif