diff options
| author | krasimir <krasimir@chalmers.se> | 2015-09-04 10:01:19 +0000 |
|---|---|---|
| committer | krasimir <krasimir@chalmers.se> | 2015-09-04 10:01:19 +0000 |
| commit | e9f7aa0e33d2daa6f182e03b20e06eb19f320259 (patch) | |
| tree | 6b039c708226dce80869adb24f0c9898506bcd99 /src/runtime/c/sg/sg.h | |
| parent | 32f18b515e55f2e4bad42ffe8451e23437410bbc (diff) | |
the new triples API in libsg now always works with expressions
Diffstat (limited to 'src/runtime/c/sg/sg.h')
| -rw-r--r-- | src/runtime/c/sg/sg.h | 14 |
1 files changed, 8 insertions, 6 deletions
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); |
