diff options
Diffstat (limited to 'src/ivyxtloop.h')
-rw-r--r-- | src/ivyxtloop.h | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/src/ivyxtloop.h b/src/ivyxtloop.h new file mode 100644 index 0000000..17e053f --- /dev/null +++ b/src/ivyxtloop.h @@ -0,0 +1,40 @@ +#ifndef _IVYXTLOOP_H +#define _IVYXTLOOP_H + +#ifdef __cplusplus +extern "C" { +#endif + +#include <X11/Intrinsic.h> + +/* general Handle */ + +#define ANYPORT 0 + +#ifdef WIN32 +#include <windows.h> +#define HANDLE SOCKET +#else +#define HANDLE int +#endif + +#include "ivychannel.h" + +extern void BusXtChannelInit(void); + +extern Channel BusXtChannelSetUp( + HANDLE fd, + void *data, + ChannelHandleDelete handle_delete, + ChannelHandleRead handle_read + ); + +extern void BusXtChannelClose( Channel channel ); + +extern void BusXtChannelAppContext( XtAppContext cntx ); + +#ifdef __cplusplus +} +#endif + +#endif |