qmlFrontend/flib.h
author unc0rr
Sun, 28 Sep 2014 21:33:14 +0400
branchqmlfrontend
changeset 10432 b0abef0ee78c
parent 10430 899a30018ede
child 10434 1614b13ad35e
permissions -rw-r--r--
Quick Game PoC

#ifndef FLIB_H
#define FLIB_H

#include <stdint.h>

#ifdef __cplusplus
extern "C" {
#endif

enum MessageType {
    MSG_PREVIEW
};

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 registerGUIMessagesCallback_t(void * context, void (*)(void * context, MessageType mt, const char * msg, uint32_t len));
typedef void getPreview_t();
typedef void runQuickGame_t();
typedef void setSeed_t(const char * seed);
typedef char *getSeed_t();
typedef void flibInit_t(const char * localPrefix, const char * userPrefix);
typedef void flibFree_t();

#ifdef __cplusplus
}
#endif

#endif // FLIB_H