summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorGravatar Adam Chlipala <adamc@hcoop.net>2009-05-02 18:41:21 -0400
committerGravatar Adam Chlipala <adamc@hcoop.net>2009-05-02 18:41:21 -0400
commit7e186f985bb40643125951d0dd944c8f2d31805b (patch)
tree2cdc71a8815189be0d6ee18e920b57dad252c2b7 /include
parentfeaf5cca383eef7caf103f6f3fd4a93725f6667b (diff)
FFI transactionals
Diffstat (limited to 'include')
-rw-r--r--include/types.h2
-rw-r--r--include/urweb.h2
2 files changed, 4 insertions, 0 deletions
diff --git a/include/types.h b/include/types.h
index 0dbd6118..89e88b88 100644
--- a/include/types.h
+++ b/include/types.h
@@ -45,4 +45,6 @@ typedef struct input *uw_input;
#define FLOATS_MAX 100
#define TIMES_MAX 100
+typedef void (*uw_callback)(void *);
+
#endif
diff --git a/include/urweb.h b/include/urweb.h
index d2fa30da..4d176561 100644
--- a/include/urweb.h
+++ b/include/urweb.h
@@ -183,4 +183,6 @@ uw_Basis_int uw_Basis_blobSize(uw_context, uw_Basis_blob);
__attribute__((noreturn)) void uw_return_blob(uw_context, uw_Basis_blob, uw_Basis_string mimeType);
+void uw_register_transactional(uw_context, void *data, uw_callback commit, uw_callback rollback, uw_callback free);
+
#endif