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

#ifndef FLIB_H
#define FLIB_H

#include <stdint.h>

#ifdef __cplusplus
extern "C" {
#endif

typedef union string255_
    {
        struct {
            unsigned char s[256];
        };
        struct {
            unsigned char len;
            unsigned char str[255];
        };
    } string255;

typedef void RunEngine_t(int argc, const char ** argv);
typedef void registerIPCCallback_t(void * context, void (*)(void * context, uint8_t len, const char * msg));
typedef void ipcToEngine_t(uint8_t len, const char * msg);
typedef void flibInit_t();

#ifdef __cplusplus
}
#endif

#endif // FLIB_H