diff options
author | Determinant <[email protected]> | 2019-06-14 17:08:33 -0400 |
---|---|---|
committer | Determinant <[email protected]> | 2019-06-14 17:08:33 -0400 |
commit | a9005311f51a250db26c966ce5fd4a7ba7d76fab (patch) | |
tree | 6a31f53fa4f6e4cd77ca0d403151c9c9645f3ed1 /test/test_msgnet_c.c | |
parent | 6c927588f78c663fded354fd696997d09fb5d697 (diff) |
minor API change
Diffstat (limited to 'test/test_msgnet_c.c')
-rw-r--r-- | test/test_msgnet_c.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/test_msgnet_c.c b/test/test_msgnet_c.c index b2fb35a..c2fb492 100644 --- a/test/test_msgnet_c.c +++ b/test/test_msgnet_c.c @@ -139,6 +139,13 @@ void conn_handler(const msgnetwork_conn_t *conn, bool connected, void *userdata) } } +void error_handler(const SalticidaeCError *err, bool fatal, void *userdata) { + MyNet *n = (MyNet *)userdata; + printf("[%s] Captured %s error during an async call: %s\n", + n->name, fatal ? "fatal" : "recoverable", + salticidae_strerror(err->code)); +} + MyNet gen_mynet(const eventcontext_t *ec, const char *name) { MyNet res; |