author | unc0rr |
Sat, 27 Sep 2014 12:49:08 +0400 | |
branch | qmlfrontend |
changeset 10424 | 4be6cd55f1cf |
parent 10420 | 02c573d19224 |
child 10426 | 727a154cf784 |
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); |
|
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 |