From e9f7aa0e33d2daa6f182e03b20e06eb19f320259 Mon Sep 17 00:00:00 2001 From: krasimir Date: Fri, 4 Sep 2015 10:01:19 +0000 Subject: the new triples API in libsg now always works with expressions --- src/runtime/c/sg/sg.h | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (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 67084876f..4f1c40562 100644 --- a/src/runtime/c/sg/sg.h +++ b/src/runtime/c/sg/sg.h @@ -28,24 +28,26 @@ SgId sg_insert_expr(SgSG *sg, PgfExpr expr, GuExn* err); PgfExpr -sg_select_expr(SgSG *sg, SgId key, GuPool* out_pool, GuExn* err); +sg_get_expr(SgSG *sg, SgId key, GuPool* out_pool, GuExn* err); -typedef SgId SgTriple[3]; +typedef PgfExpr SgTriple[3]; SgId sg_insert_triple(SgSG *sg, SgTriple triple, GuExn* err); -bool -sg_select_triple(SgSG *sg, SgId key, SgTriple triple, GuExn* err); +int +sg_get_triple(SgSG *sg, SgId key, SgTriple triple, + GuPool* out_pool, GuExn* err); typedef struct SgTripleResult SgTripleResult; SgTripleResult* sg_query_triple(SgSG *sg, SgTriple triple, GuExn* err); -bool -sg_triple_result_fetch(SgTripleResult* tres, SgId* pKey, SgTriple triple, GuExn* err); +int +sg_triple_result_fetch(SgTripleResult* tres, SgId* pKey, SgTriple triple, + GuPool* out_pool, GuExn* err); void sg_triple_result_close(SgTripleResult* tres, GuExn* err); -- cgit v1.2.3