qmlFrontend/flib.h
author unc0rr
Sat, 27 Sep 2014 12:49:08 +0400
branchqmlfrontend
changeset 10424 4be6cd55f1cf
parent 10420 02c573d19224
child 10426 727a154cf784
permissions -rw-r--r--
- Get rid of engine's PathPrefix and UserPathPrefix - Some refactoring
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
1c301054694d - Remove --port command
unc0rr
parents:
diff changeset
    10
typedef union string255_
1c301054694d - Remove --port command
unc0rr
parents:
diff changeset
    11
    {
1c301054694d - Remove --port command
unc0rr
parents:
diff changeset
    12
        struct {
1c301054694d - Remove --port command
unc0rr
parents:
diff changeset
    13
            unsigned char s[256];
1c301054694d - Remove --port command
unc0rr
parents:
diff changeset
    14
        };
1c301054694d - Remove --port command
unc0rr
parents:
diff changeset
    15
        struct {
1c301054694d - Remove --port command
unc0rr
parents:
diff changeset
    16
            unsigned char len;
1c301054694d - Remove --port command
unc0rr
parents:
diff changeset
    17
            unsigned char str[255];
1c301054694d - Remove --port command
unc0rr
parents:
diff changeset
    18
        };
1c301054694d - Remove --port command
unc0rr
parents:
diff changeset
    19
    } string255;
1c301054694d - Remove --port command
unc0rr
parents:
diff changeset
    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
unc0rr
parents: 10418
diff changeset
    22
typedef void registerIPCCallback_t(void * context, void (*)(void * context, const char * msg, uint32_t len));
unc0rr
parents: 10418
diff changeset
    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
1c301054694d - Remove --port command
unc0rr
parents:
diff changeset
    26
1c301054694d - Remove --port command
unc0rr
parents:
diff changeset
    27
#ifdef __cplusplus
1c301054694d - Remove --port command
unc0rr
parents:
diff changeset
    28
}
1c301054694d - Remove --port command
unc0rr
parents:
diff changeset
    29
#endif
1c301054694d - Remove --port command
unc0rr
parents:
diff changeset
    30
1c301054694d - Remove --port command
unc0rr
parents:
diff changeset
    31
#endif // FLIB_H