blob: 9dbb52da6c9c219ae22895973b971fafb7f88b0d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
/*
*
* Ivy, C interface
*
* Copyright 1997-1998
* Centre d'Etudes de la Navigation Aerienne
*
* Main loop based on select
*
* $Id$
*
*/
#ifndef _IVYLOOP_H
#define _IVYLOOP_H
#ifdef __cplusplus
extern "C" {
#endif
#include "ivychannel.h"
/* general Handle */
#define ANYPORT 0
#ifdef WIN32
#include <windows.h>
#define HANDLE SOCKET
#else
#define HANDLE int
#endif
extern void BusLoopChannelInit(void);
extern void BusLoopChannelStop(void);
extern void BusLoopChannelMainLoop(void(*hook)(void) );
extern Channel BusLoopChannelSetUp(
HANDLE fd,
void *data,
ChannelHandleDelete handle_delete,
ChannelHandleRead handle_read
);
extern void BusLoopChannelClose( Channel channel );
#ifdef __cplusplus
}
#endif
#endif
|