summaryrefslogtreecommitdiffstats
path: root/src/engine.h
blob: c0cb57db396dce2b85d63da923f19ba58d7ea3fc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#ifndef _RCC_ENGINE_H
#define _RCC_ENGINE_H

struct rcc_engine_context_t {
    rcc_context ctx;
    rcc_language *language;
    
    rcc_engine_function func;
    rcc_engine_free_function free_func;

    rcc_engine_internal internal;
};
typedef struct rcc_engine_context_t rcc_engine_context_s;

int rccEngineInit(rcc_engine_context engine_ctx, rcc_context ctx);
void rccEngineFree(rcc_engine_context engine_ctx);

rcc_engine_internal rccEngineGetInternal(rcc_engine_context ctx);

#endif /* _RCC_ENGINE_H */