1be86ffeb366a93ce8fcd277132d8cfab61c4edc
[tpg/acess2.git] / Usermode / Applications / axwin3_src / WM / include / common.h
1 /*
2  * Acess2 Window Manager v3 (axwin3)
3  * - By John Hodge (thePowersGang)
4  *
5  * include/common.h
6  * - Common definitions and functions
7  */
8 #ifndef _COMMON_H_
9 #define _COMMON_H_
10
11 #include <acess/sys.h>
12
13 #define TODO(str)       
14
15 #define ASSERT(expr)    do{if(!(expr)){_SysDebug("%s:%i - ASSERTION FAILED: "#expr, __FILE__, __LINE__);exit(-1);}}while(0)
16
17 #define UNIMPLEMENTED() do{_SysDebug("TODO: Implement %s", __func__); for(;;);}while(0)
18
19 #define AXWIN_VERSION   0x300
20
21 // === GLOBALS ===
22 extern int      giTerminalFD;
23 extern const char       *gsTerminalDevice;
24
25 extern int      giScreenWidth, giScreenHeight;
26
27 // === FUNCTIONS ===
28 // --- Input ---
29 extern int      Input_Init(void);
30 extern void     Input_FillSelect(int *nfds, fd_set *set);
31 extern void     Input_HandleSelect(fd_set *set);
32 // --- IPC ---
33 extern void     IPC_Init(void);
34 extern void     IPC_FillSelect(int *nfds, fd_set *set);
35 extern void     IPC_HandleSelect(fd_set *set);
36
37 #endif
38

UCC git Repository :: git.ucc.asn.au