qmlFrontend/flib.h
branchqmlfrontend
changeset 10428 7c25297720f1
parent 10426 727a154cf784
child 10430 899a30018ede
equal deleted inserted replaced
10426:727a154cf784 10428:7c25297720f1
     4 #include <stdint.h>
     4 #include <stdint.h>
     5 
     5 
     6 #ifdef __cplusplus
     6 #ifdef __cplusplus
     7 extern "C" {
     7 extern "C" {
     8 #endif
     8 #endif
       
     9 
       
    10 enum MessageType {
       
    11     MSG_PREVIEW
       
    12 };
     9 
    13 
    10 typedef union string255_
    14 typedef union string255_
    11     {
    15     {
    12         struct {
    16         struct {
    13             unsigned char s[256];
    17             unsigned char s[256];
    17             unsigned char str[255];
    21             unsigned char str[255];
    18         };
    22         };
    19     } string255;
    23     } string255;
    20 
    24 
    21 typedef void RunEngine_t(int argc, const char ** argv);
    25 typedef void RunEngine_t(int argc, const char ** argv);
    22 typedef void registerPreviewCallback_t(void * context, void (*)(void * context, const char * msg, uint32_t len));
    26 typedef void registerGUIMessagesCallback_t(void * context, void (*)(void * context, MessageType mt, const char * msg, uint32_t len));
    23 typedef void ipcToEngine_t(const char * msg, uint8_t len);
       
    24 typedef void flibInit_t(const char * localPrefix, const char * userPrefix);
    27 typedef void flibInit_t(const char * localPrefix, const char * userPrefix);
       
    28 typedef void getPreview_t();
    25 typedef void flibFree_t();
    29 typedef void flibFree_t();
    26 
    30 
    27 #ifdef __cplusplus
    31 #ifdef __cplusplus
    28 }
    32 }
    29 #endif
    33 #endif