summaryrefslogtreecommitdiffstats
path: root/src/engine.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/engine.h')
-rw-r--r--src/engine.h19
1 files changed, 14 insertions, 5 deletions
diff --git a/src/engine.h b/src/engine.h
index 8f7400a..c0cb57d 100644
--- a/src/engine.h
+++ b/src/engine.h
@@ -1,11 +1,20 @@
#ifndef _RCC_ENGINE_H
-#defien _RCC_ENGINE_H
+#define _RCC_ENGINE_H
-int rccEngineInit(rcc_engine_context *engine_ctx, rcc_context *ctx);
-void rccFreeEngine(rcc_engine_context *engine_ctx);
+struct rcc_engine_context_t {
+ rcc_context ctx;
+ rcc_language *language;
+
+ rcc_engine_function func;
+ rcc_engine_free_function free_func;
-int rccConfigure(rcc_engine_context *ctx);
+ rcc_engine_internal internal;
+};
+typedef struct rcc_engine_context_t rcc_engine_context_s;
-rcc_engine_internal rccEngineGetInternal(rcc_engine_context *ctx);
+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 */