equal
deleted
inserted
replaced
|
1 #ifndef FLIB_H |
|
2 #define FLIB_H |
|
3 |
|
4 #include <stdint.h> |
|
5 |
|
6 #ifdef __cplusplus |
|
7 extern "C" { |
|
8 #endif |
|
9 |
|
10 enum MessageType { |
|
11 MSG_RENDERINGPREVIEW |
|
12 , MSG_PREVIEW |
|
13 , MSG_PREVIEWHOGCOUNT |
|
14 , MSG_ADDPLAYINGTEAM |
|
15 , MSG_REMOVEPLAYINGTEAM |
|
16 , MSG_ADDTEAM |
|
17 , MSG_REMOVETEAM |
|
18 , MSG_TEAMCOLOR |
|
19 , MSG_HEDGEHOGSNUMBER |
|
20 , MSG_NETDATA |
|
21 , MSG_TONET |
|
22 , MSG_FLIBEVENT |
|
23 , MSG_CONNECTED |
|
24 , MSG_DISCONNECTED |
|
25 , MSG_ADDLOBBYCLIENT |
|
26 , MSG_REMOVELOBBYCLIENT |
|
27 , MSG_LOBBYCHATLINE |
|
28 , MSG_ADDROOMCLIENT |
|
29 , MSG_REMOVEROOMCLIENT |
|
30 , MSG_ROOMCHATLINE |
|
31 , MSG_ADDROOM |
|
32 , MSG_UPDATEROOM |
|
33 , MSG_REMOVEROOM |
|
34 , MSG_ERROR |
|
35 , MSG_WARNING |
|
36 , MSG_MOVETOLOBBY |
|
37 , MSG_MOVETOROOM |
|
38 , MSG_NICKNAME |
|
39 , MSG_SEED |
|
40 , MSG_THEME |
|
41 , MSG_SCRIPT |
|
42 , MSG_FEATURESIZE |
|
43 , MSG_MAPGEN |
|
44 , MSG_MAP |
|
45 , MSG_MAZESIZE |
|
46 , MSG_TEMPLATE |
|
47 , MSG_AMMO |
|
48 , MSG_SCHEME |
|
49 }; |
|
50 |
|
51 typedef union string255_ |
|
52 { |
|
53 struct { |
|
54 unsigned char s[256]; |
|
55 }; |
|
56 struct { |
|
57 unsigned char len; |
|
58 unsigned char str[255]; |
|
59 }; |
|
60 } string255; |
|
61 |
|
62 typedef void RunEngine_t(int argc, const char ** argv); |
|
63 typedef void registerUIMessagesCallback_t(void * context, void (*)(void * context, MessageType mt, const char * msg, uint32_t len)); |
|
64 typedef void flibInit_t(const char * localPrefix, const char * userPrefix); |
|
65 typedef void flibFree_t(); |
|
66 typedef void passFlibEvent_t(const char * data); |
|
67 |
|
68 #ifdef __cplusplus |
|
69 } |
|
70 #endif |
|
71 |
|
72 #endif // FLIB_H |