qmlfrontend/engine_interface.h
changeset 14276 1aac8a62be6f
parent 14159 8354b390f1a2
child 14299 21be7838a127
equal deleted inserted replaced
14275:efa901b04bad 14276:1aac8a62be6f
     1 #ifndef ENGINE_H
     1 #ifndef ENGINE_H
     2 #define ENGINE_H
     2 #define ENGINE_H
     3 
     3 
       
     4 #include <stddef.h>
     4 #include <stdint.h>
     5 #include <stdint.h>
     5 
     6 
     6 #ifdef __cplusplus
     7 #ifdef __cplusplus
     7 namespace Engine {
     8 namespace Engine {
     8 extern "C" {
     9 extern "C" {
    21 typedef EngineInstance* start_engine_t();
    22 typedef EngineInstance* start_engine_t();
    22 typedef void generate_preview_t(EngineInstance* engine_state,
    23 typedef void generate_preview_t(EngineInstance* engine_state,
    23                                 PreviewInfo* preview);
    24                                 PreviewInfo* preview);
    24 typedef void cleanup_t(EngineInstance* engine_state);
    25 typedef void cleanup_t(EngineInstance* engine_state);
    25 
    26 
       
    27 typedef void send_ipc_t(EngineInstance* engine_state, uint8_t* buf,
       
    28                         size_t size);
       
    29 typedef size_t read_ipc_t(EngineInstance* engine_state, uint8_t* buf,
       
    30                           size_t size);
       
    31 
    26 extern protocol_version_t* protocol_version;
    32 extern protocol_version_t* protocol_version;
    27 extern start_engine_t* start_engine;
    33 extern start_engine_t* start_engine;
    28 extern generate_preview_t* generate_preview;
    34 extern generate_preview_t* generate_preview;
    29 extern cleanup_t* cleanup;
    35 extern cleanup_t* cleanup;
       
    36 
       
    37 extern send_ipc_t* send_ipc;
       
    38 extern read_ipc_t* read_ipc;
    30 
    39 
    31 #ifdef __cplusplus
    40 #ifdef __cplusplus
    32 }
    41 }
    33 };
    42 };
    34 #endif
    43 #endif