From c60519ab50b32dc282b385b3bbb2df319279f655 Mon Sep 17 00:00:00 2001 From: "Suren A. Chilingaryan" Date: Sun, 26 Jun 2005 17:51:43 +0000 Subject: 26.06.2005 --- src/engine.h | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) (limited to 'src/engine.h') 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 */ -- cgit v1.2.3