qmlfrontend/engine_interface.h
changeset 14154 8354b390f1a2
child 14271 1aac8a62be6f
equal deleted inserted replaced
14153:b273b43b16d2 14154:8354b390f1a2
       
     1 #ifndef ENGINE_H
       
     2 #define ENGINE_H
       
     3 
       
     4 #include <stdint.h>
       
     5 
       
     6 #ifdef __cplusplus
       
     7 namespace Engine {
       
     8 extern "C" {
       
     9 #endif
       
    10 
       
    11 typedef struct _EngineInstance EngineInstance;
       
    12 
       
    13 typedef struct {
       
    14   uint32_t width;
       
    15   uint32_t height;
       
    16   uint8_t hedgehogs_number;
       
    17   unsigned char* land;
       
    18 } PreviewInfo;
       
    19 
       
    20 typedef uint32_t protocol_version_t();
       
    21 typedef EngineInstance* start_engine_t();
       
    22 typedef void generate_preview_t(EngineInstance* engine_state,
       
    23                                 PreviewInfo* preview);
       
    24 typedef void cleanup_t(EngineInstance* engine_state);
       
    25 
       
    26 extern protocol_version_t* protocol_version;
       
    27 extern start_engine_t* start_engine;
       
    28 extern generate_preview_t* generate_preview;
       
    29 extern cleanup_t* cleanup;
       
    30 
       
    31 #ifdef __cplusplus
       
    32 }
       
    33 };
       
    34 #endif
       
    35 
       
    36 #endif  // ENGINE_H