author | unc0rr |
Wed, 01 Oct 2014 01:20:05 +0400 | |
branch | qmlfrontend |
changeset 10436 | 084e046f6bd5 |
parent 10434 | 1614b13ad35e |
child 10440 | b74a7bbe224e |
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 |
||
10428
7c25297720f1
More refactoring: move PoC preview getting code into flib
unc0rr
parents:
10426
diff
changeset
|
10 |
enum MessageType { |
7c25297720f1
More refactoring: move PoC preview getting code into flib
unc0rr
parents:
10426
diff
changeset
|
11 |
MSG_PREVIEW |
7c25297720f1
More refactoring: move PoC preview getting code into flib
unc0rr
parents:
10426
diff
changeset
|
12 |
}; |
7c25297720f1
More refactoring: move PoC preview getting code into flib
unc0rr
parents:
10426
diff
changeset
|
13 |
|
10416 | 14 |
typedef union string255_ |
15 |
{ |
|
16 |
struct { |
|
17 |
unsigned char s[256]; |
|
18 |
}; |
|
19 |
struct { |
|
20 |
unsigned char len; |
|
21 |
unsigned char str[255]; |
|
22 |
}; |
|
23 |
} string255; |
|
24 |
||
10418
091d2c0216c3
Move away from passing shortstrings into C code, now IPC works
unc0rr
parents:
10416
diff
changeset
|
25 |
typedef void RunEngine_t(int argc, const char ** argv); |
10428
7c25297720f1
More refactoring: move PoC preview getting code into flib
unc0rr
parents:
10426
diff
changeset
|
26 |
typedef void registerGUIMessagesCallback_t(void * context, void (*)(void * context, MessageType mt, const char * msg, uint32_t len)); |
10430 | 27 |
typedef void getPreview_t(); |
10432 | 28 |
typedef void runQuickGame_t(); |
10430 | 29 |
typedef void setSeed_t(const char * seed); |
30 |
typedef char *getSeed_t(); |
|
10424
4be6cd55f1cf
- Get rid of engine's PathPrefix and UserPathPrefix
unc0rr
parents:
10420
diff
changeset
|
31 |
typedef void flibInit_t(const char * localPrefix, const char * userPrefix); |
4be6cd55f1cf
- Get rid of engine's PathPrefix and UserPathPrefix
unc0rr
parents:
10420
diff
changeset
|
32 |
typedef void flibFree_t(); |
10416 | 33 |
|
10434
1614b13ad35e
Themes model, also add some files I forgot to add previously
unc0rr
parents:
10432
diff
changeset
|
34 |
typedef char **getThemesList_t(); |
1614b13ad35e
Themes model, also add some files I forgot to add previously
unc0rr
parents:
10432
diff
changeset
|
35 |
typedef void freeThemesList_t(char **list); |
10436 | 36 |
typedef uint32_t getThemeIcon_t(char * theme, char * buffer, uint32_t size); |
10434
1614b13ad35e
Themes model, also add some files I forgot to add previously
unc0rr
parents:
10432
diff
changeset
|
37 |
|
10416 | 38 |
#ifdef __cplusplus |
39 |
} |
|
40 |
#endif |
|
41 |
||
42 |
#endif // FLIB_H |