From 3f0fe438cd37bd9f9ece835b6f3bc90ed5566110 Mon Sep 17 00:00:00 2001 From: krasimir Date: Fri, 29 Apr 2016 14:06:24 +0000 Subject: a prototype for complex queries over expressions in libsg --- src/runtime/c/sg/sg.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/runtime/c/sg/sg.h') diff --git a/src/runtime/c/sg/sg.h b/src/runtime/c/sg/sg.h index a94c28cb7..32a89d096 100644 --- a/src/runtime/c/sg/sg.h +++ b/src/runtime/c/sg/sg.h @@ -30,6 +30,17 @@ sg_insert_expr(SgSG *sg, PgfExpr expr, int wrFlag, GuExn* err); PgfExpr sg_get_expr(SgSG *sg, SgId key, GuPool* out_pool, GuExn* err); +typedef struct SgQueryExprResult SgQueryExprResult; + +SgQueryExprResult* +sg_query_expr(SgSG *sg, PgfExpr expr, GuPool* pool, GuExn* err); + +PgfExpr +sg_query_next(SgSG *sg, SgQueryExprResult* ctxt, SgId* pKey, GuPool* pool, GuExn* err); + +void +sg_query_close(SgSG* sg, SgQueryExprResult* ctxt, GuExn* err); + void sg_update_fts_index(SgSG* sg, PgfPGF* pgf, GuExn* err); -- cgit v1.2.3