author | unc0rr |
Mon, 22 Sep 2014 02:10:39 +0400 | |
branch | qmlfrontend |
changeset 10420 | 02c573d19224 |
parent 10418 | 091d2c0216c3 |
child 10424 | 4be6cd55f1cf |
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); |
10420 | 22 |
typedef void registerIPCCallback_t(void * context, void (*)(void * context, const char * msg, uint32_t len)); |
23 |
typedef void ipcToEngine_t(const char * msg, uint8_t len); |
|
10416 | 24 |
typedef void flibInit_t(); |
25 |
||
26 |
#ifdef __cplusplus |
|
27 |
} |
|
28 |
#endif |
|
29 |
||
30 |
#endif // FLIB_H |