summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorAnton <anton@picapica>2016-08-11 22:28:55 +0400
committerAnton <anton@picapica>2016-08-11 22:28:55 +0400
commitc78395ea13aead21e7041f42699fcbf3753f1832 (patch)
tree765663fa83822c010cc5ee2db87cfd31ce516dd6 /tests
parentc4304c26ce0ff043779e861fde9ec39f207f7600 (diff)
downloadpica-pica-c78395ea13aead21e7041f42699fcbf3753f1832.tar.gz
pica-pica-c78395ea13aead21e7041f42699fcbf3753f1832.zip
added error code argument to c2n callbacks
Diffstat (limited to 'tests')
-rw-r--r--tests/test_client.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/test_client.c b/tests/test_client.c
index 5cbd24d..7a16732 100644
--- a/tests/test_client.c
+++ b/tests/test_client.c
@@ -135,14 +135,14 @@ void c2n_established_cb(struct PICA_c2n *c2n)
printf("c2n_established_cb: %p\n my_id %s\n", c2n, PICA_id_to_base64(c2n->acc->id, NULL));
}
-void c2n_failed_cb(struct PICA_c2n *c2n)
+void c2n_failed_cb(struct PICA_c2n *c2n, int error)
{
- printf("c2n_failed_cb: %p\n", c2n);
+ printf("c2n_failed_cb: %p error_code %i\n", c2n, error);
}
-void c2n_closed_cb(struct PICA_c2n *c2n)
+void c2n_closed_cb(struct PICA_c2n *c2n, int error)
{
- printf("c2n_closed_cb: %p\n", c2n);
+ printf("c2n_closed_cb: %p error_code %i\n", c2n, error);
}
void listener_error(struct PICA_listener *lst, int errorcode)