qmlFrontend/flib.h
author unc0rr
Sun, 28 Sep 2014 01:17:55 +0400
branchqmlfrontend
changeset 10430 899a30018ede
parent 10428 7c25297720f1
child 10432 b0abef0ee78c
permissions -rw-r--r--
Getter and setter for seed
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
10416
1c301054694d - Remove --port command
unc0rr
parents:
diff changeset
     1
#ifndef FLIB_H
1c301054694d - Remove --port command
unc0rr
parents:
diff changeset
     2
#define FLIB_H
1c301054694d - Remove --port command
unc0rr
parents:
diff changeset
     3
1c301054694d - Remove --port command
unc0rr
parents:
diff changeset
     4
#include <stdint.h>
1c301054694d - Remove --port command
unc0rr
parents:
diff changeset
     5
1c301054694d - Remove --port command
unc0rr
parents:
diff changeset
     6
#ifdef __cplusplus
1c301054694d - Remove --port command
unc0rr
parents:
diff changeset
     7
extern "C" {
1c301054694d - Remove --port command
unc0rr
parents:
diff changeset
     8
#endif
1c301054694d - Remove --port command
unc0rr
parents:
diff changeset
     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
1c301054694d - Remove --port command
unc0rr
parents:
diff changeset
    14
typedef union string255_
1c301054694d - Remove --port command
unc0rr
parents:
diff changeset
    15
    {
1c301054694d - Remove --port command
unc0rr
parents:
diff changeset
    16
        struct {
1c301054694d - Remove --port command
unc0rr
parents:
diff changeset
    17
            unsigned char s[256];
1c301054694d - Remove --port command
unc0rr
parents:
diff changeset
    18
        };
1c301054694d - Remove --port command
unc0rr
parents:
diff changeset
    19
        struct {
1c301054694d - Remove --port command
unc0rr
parents:
diff changeset
    20
            unsigned char len;
1c301054694d - Remove --port command
unc0rr
parents:
diff changeset
    21
            unsigned char str[255];
1c301054694d - Remove --port command
unc0rr
parents:
diff changeset
    22
        };
1c301054694d - Remove --port command
unc0rr
parents:
diff changeset
    23
    } string255;
1c301054694d - Remove --port command
unc0rr
parents:
diff changeset
    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
899a30018ede Getter and setter for seed
unc0rr
parents: 10428
diff changeset
    27
typedef void getPreview_t();
899a30018ede Getter and setter for seed
unc0rr
parents: 10428
diff changeset
    28
typedef void setSeed_t(const char * seed);
899a30018ede Getter and setter for seed
unc0rr
parents: 10428
diff changeset
    29
typedef char *getSeed_t();
10424
4be6cd55f1cf - Get rid of engine's PathPrefix and UserPathPrefix
unc0rr
parents: 10420
diff changeset
    30
typedef void flibInit_t(const char * localPrefix, const char * userPrefix);
4be6cd55f1cf - Get rid of engine's PathPrefix and UserPathPrefix
unc0rr
parents: 10420
diff changeset
    31
typedef void flibFree_t();
10416
1c301054694d - Remove --port command
unc0rr
parents:
diff changeset
    32
1c301054694d - Remove --port command
unc0rr
parents:
diff changeset
    33
#ifdef __cplusplus
1c301054694d - Remove --port command
unc0rr
parents:
diff changeset
    34
}
1c301054694d - Remove --port command
unc0rr
parents:
diff changeset
    35
#endif
1c301054694d - Remove --port command
unc0rr
parents:
diff changeset
    36
1c301054694d - Remove --port command
unc0rr
parents:
diff changeset
    37
#endif // FLIB_H