qmlFrontend/flib.h
author unc0rr
Sun, 28 Sep 2014 00:18:01 +0400
branchqmlfrontend
changeset 10426 727a154cf784
parent 10424 4be6cd55f1cf
child 10428 7c25297720f1
permissions -rw-r--r--
Some refactoring

#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 registerPreviewCallback_t(void * context, void (*)(void * context, const char * msg, uint32_t len));
typedef void ipcToEngine_t(const char * msg, uint8_t len);
typedef void flibInit_t(const char * localPrefix, const char * userPrefix);
typedef void flibFree_t();

#ifdef __cplusplus
}
#endif

#endif // FLIB_H