qmlFrontend/flib.h
author unc0rr
Sun, 21 Sep 2014 00:37:50 +0400
branchqmlfrontend
changeset 10418 091d2c0216c3
parent 10416 1c301054694d
child 10420 02c573d19224
permissions -rw-r--r--
Move away from passing shortstrings into C code, now IPC works
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);
091d2c0216c3 Move away from passing shortstrings into C code, now IPC works
unc0rr
parents: 10416
diff changeset
    22
typedef void registerIPCCallback_t(void * context, void (*)(void * context, uint8_t len, const char * msg));
091d2c0216c3 Move away from passing shortstrings into C code, now IPC works
unc0rr
parents: 10416
diff changeset
    23
typedef void ipcToEngine_t(uint8_t len, const char * msg);
10416
1c301054694d - Remove --port command
unc0rr
parents:
diff changeset
    24
typedef void flibInit_t();
1c301054694d - Remove --port command
unc0rr
parents:
diff changeset
    25
1c301054694d - Remove --port command
unc0rr
parents:
diff changeset
    26
#ifdef __cplusplus
1c301054694d - Remove --port command
unc0rr
parents:
diff changeset
    27
}
1c301054694d - Remove --port command
unc0rr
parents:
diff changeset
    28
#endif
1c301054694d - Remove --port command
unc0rr
parents:
diff changeset
    29
1c301054694d - Remove --port command
unc0rr
parents:
diff changeset
    30
#endif // FLIB_H