summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
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