summaryrefslogtreecommitdiff
path: root/src/runtime/c/sg/sg.h
diff options
context:
space:
mode:
authorkrasimir <krasimir@chalmers.se>2015-09-02 13:01:23 +0000
committerkrasimir <krasimir@chalmers.se>2015-09-02 13:01:23 +0000
commitef90fa4abe3a58e586a115fca7c3260b928bf38b (patch)
tree23cbbc5181a6b652e9ce1530673f9d7319285c8c /src/runtime/c/sg/sg.h
parent73b41687c8038ee69562fafd0693204509621c79 (diff)
API for transactions in libsg
Diffstat (limited to 'src/runtime/c/sg/sg.h')
-rw-r--r--src/runtime/c/sg/sg.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/runtime/c/sg/sg.h b/src/runtime/c/sg/sg.h
index a859bbec2..67084876f 100644
--- a/src/runtime/c/sg/sg.h
+++ b/src/runtime/c/sg/sg.h
@@ -14,6 +14,16 @@ sg_open(const char *filename, GuExn* err);
void
sg_close(SgSG *sg, GuExn* err);
+void
+sg_begin_trans(SgSG* sg, GuExn* err);
+
+void
+sg_commit(SgSG* sg, GuExn* err);
+
+void
+sg_rollback(SgSG* sg, GuExn* err);
+
+
SgId
sg_insert_expr(SgSG *sg, PgfExpr expr, GuExn* err);