summaryrefslogtreecommitdiff
path: root/src/runtime/c/sg/sg.h
diff options
context:
space:
mode:
authorkrasimir <krasimir@chalmers.se>2016-04-29 14:06:24 +0000
committerkrasimir <krasimir@chalmers.se>2016-04-29 14:06:24 +0000
commit3f0fe438cd37bd9f9ece835b6f3bc90ed5566110 (patch)
tree0a8cbe2fbfe5d5391a8c6359c8b0d7aadc3b3b57 /src/runtime/c/sg/sg.h
parenta6b421226420e740b1b3d45817b9fc12cab13344 (diff)
a prototype for complex queries over expressions in libsg
Diffstat (limited to 'src/runtime/c/sg/sg.h')
-rw-r--r--src/runtime/c/sg/sg.h11
1 files changed, 11 insertions, 0 deletions
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);