author | unc0rr |
Sun, 28 Sep 2014 00:18:01 +0400 | |
branch | qmlfrontend |
changeset 10426 | 727a154cf784 |
parent 10424 | 4be6cd55f1cf |
child 10428 | 7c25297720f1 |
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); |
10426 | 22 |
typedef void registerPreviewCallback_t(void * context, void (*)(void * context, const char * msg, uint32_t len)); |
10420 | 23 |
typedef void ipcToEngine_t(const char * msg, uint8_t len); |
10424
4be6cd55f1cf
- Get rid of engine's PathPrefix and UserPathPrefix
unc0rr
parents:
10420
diff
changeset
|
24 |
typedef void flibInit_t(const char * localPrefix, const char * userPrefix); |
4be6cd55f1cf
- Get rid of engine's PathPrefix and UserPathPrefix
unc0rr
parents:
10420
diff
changeset
|
25 |
typedef void flibFree_t(); |
10416 | 26 |
|
27 |
#ifdef __cplusplus |
|
28 |
} |
|
29 |
#endif |
|
30 |
||
31 |
#endif // FLIB_H |