qmlFrontend/flib.h
author unc0rr
Sat, 20 Sep 2014 00:56:54 +0400
branchqmlfrontend
changeset 10416 1c301054694d
child 10418 091d2c0216c3
permissions -rw-r--r--
- Remove --port command - Some refactoring here and there - Try to get preview from engine, which doesn't work due to some ABI mismatch, probably shouldn't try to pass string255 to pascal
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
1c301054694d - Remove --port command
unc0rr
parents:
diff changeset
    21
typedef void RunEngine_t(int argc, char ** argv);
1c301054694d - Remove --port command
unc0rr
parents:
diff changeset
    22
typedef void registerIPCCallback_t(void * context, void (*)(void * context, string255 str));
1c301054694d - Remove --port command
unc0rr
parents:
diff changeset
    23
typedef void ipcToEngine_t(string255 str);
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