author | unc0rr |
Sun, 21 Sep 2014 00:37:50 +0400 | |
branch | qmlfrontend |
changeset 10418 | 091d2c0216c3 |
parent 10416 | 1c301054694d |
child 10420 | 02c573d19224 |
permissions | -rw-r--r-- |
10416 | 1 |
#ifndef FLIB_H |
2 |
#define FLIB_H |
|
3 |
||
4 |
#include <stdint.h> |
|
5 |
||
6 |
#ifdef __cplusplus |
|
7 |
extern "C" { |
|
8 |
#endif |
|
9 |
||
10 |
typedef union string255_ |
|
11 |
{ |
|
12 |
struct { |
|
13 |
unsigned char s[256]; |
|
14 |
}; |
|
15 |
struct { |
|
16 |
unsigned char len; |
|
17 |
unsigned char str[255]; |
|
18 |
}; |
|
19 |
} string255; |
|
20 |
||
10418
091d2c0216c3
Move away from passing shortstrings into C code, now IPC works
unc0rr
parents:
10416
diff
changeset
|
21 |
typedef void RunEngine_t(int argc, const char ** argv); |
091d2c0216c3
Move away from passing shortstrings into C code, now IPC works
unc0rr
parents:
10416
diff
changeset
|
22 |
typedef void registerIPCCallback_t(void * context, void (*)(void * context, uint8_t len, const char * msg)); |
091d2c0216c3
Move away from passing shortstrings into C code, now IPC works
unc0rr
parents:
10416
diff
changeset
|
23 |
typedef void ipcToEngine_t(uint8_t len, const char * msg); |
10416 | 24 |
typedef void flibInit_t(); |
25 |
||
26 |
#ifdef __cplusplus |
|
27 |
} |
|
28 |
#endif |
|
29 |
||
30 |
#endif // FLIB_H |