diff options
author | 2009-05-02 18:41:21 -0400 | |
---|---|---|
committer | 2009-05-02 18:41:21 -0400 | |
commit | 5bec72c1ee13e48a9e11c3c1b924020436c827fe (patch) | |
tree | 2cdc71a8815189be0d6ee18e920b57dad252c2b7 /tests/test.c | |
parent | 2d37bf0ef2c634819293a191eff9799934b08346 (diff) |
FFI transactionals
Diffstat (limited to 'tests/test.c')
-rw-r--r-- | tests/test.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/test.c b/tests/test.c index 1249721e..ef8558d7 100644 --- a/tests/test.c +++ b/tests/test.c @@ -25,3 +25,18 @@ uw_Basis_unit uw_Test_foo(uw_context ctx) { printf("FOO!\n"); return uw_unit_v; } + +static void commit(void *data) { + printf("Commit: %s\n", data); +} +static void rollback(void *data) { + printf("Rollback: %s\n", data); +} +static void free(void *data) { + printf("Free: %s\n", data); +} + +uw_Basis_unit uw_Test_transactional(uw_context ctx) { + uw_register_transactional(ctx, "Beppo", commit, rollback, free); + return uw_unit_v; +} |