diff options
Diffstat (limited to 'tests/transactional.c')
-rw-r--r-- | tests/transactional.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/transactional.c b/tests/transactional.c new file mode 100644 index 00000000..54e26874 --- /dev/null +++ b/tests/transactional.c @@ -0,0 +1,12 @@ +#include <stdio.h> + +#include "/usr/local/include/urweb/urweb.h" + +static void do_free(void *data, int will_retry) { + printf("will_retry = %d\n", will_retry); +} + +uw_unit uw_Transactional_foo(uw_context ctx) { + printf("Registering....\n"); + uw_register_transactional(ctx, NULL, NULL, NULL, do_free); +} |