diff options
author | Uros Majstorovic <majstor@majstor.org> | 2018-01-19 19:20:28 +0100 |
---|---|---|
committer | Uros Majstorovic <majstor@majstor.org> | 2018-01-19 19:20:28 +0100 |
commit | 7f07279cb39a1acab177bb53ff505caa0a29c8d1 (patch) | |
tree | 9542c9cbeb98601656da0a7db8cac3055b3c126c /code/test/vid/client.c | |
parent | 9d70f23549444afaa0accd442eb5e6de0098a665 (diff) |
pine64 vid test update
Diffstat (limited to 'code/test/vid/client.c')
-rw-r--r-- | code/test/vid/client.c | 25 |
1 files changed, 13 insertions, 12 deletions
diff --git a/code/test/vid/client.c b/code/test/vid/client.c index 7dd8c26..dd2839c 100644 --- a/code/test/vid/client.c +++ b/code/test/vid/client.c @@ -9,6 +9,7 @@ #include "display.h" #include "core.h" +#include "vconn/vconn.h" #include "util.h" #define CTYPE_TEST 0 @@ -17,9 +18,9 @@ #define FRAG_BUF_SIZE 8192 #define RBUF_MSG_SIZE 128 -ECPContext ctx_c; -ECPSocket sock_c; -ECPConnHandler handler_c; +ECPContext ctx; +ECPSocket sock; +ECPConnHandler handler; ECPNode node; ECPConnection conn; @@ -64,31 +65,31 @@ int main(int argc, char *argv[]) { if (argc != 3) usage(argv[0]); - rv = ecp_init(&ctx_c); + rv = ecp_init(&ctx); fprintf(stderr, "ecp_init RV:%d\n", rv); - if (!rv) rv = ecp_conn_handler_init(&handler_c); + if (!rv) rv = ecp_conn_handler_init(&handler); if (!rv) { - handler_c.msg[MTYPE_MSG] = handle_msg; - ctx_c.handler[CTYPE_TEST] = &handler_c; + handler.msg[MTYPE_MSG] = handle_msg; + ctx.handler[CTYPE_TEST] = &handler; } - if (!rv) rv = ecp_sock_create(&sock_c, &ctx_c, NULL); + if (!rv) rv = ecp_sock_create(&sock, &ctx, NULL); fprintf(stderr, "ecp_sock_create RV:%d\n", rv); - if (!rv) rv = ecp_sock_open(&sock_c, NULL); + if (!rv) rv = ecp_sock_open(&sock, NULL); fprintf(stderr, "ecp_sock_open RV:%d\n", rv); - if (!rv) rv = ecp_start_receiver(&sock_c); + if (!rv) rv = ecp_start_receiver(&sock); fprintf(stderr, "ecp_start_receiver RV:%d\n", rv); - if (!rv) rv = ecp_util_node_load(&ctx_c, &node, argv[1]); + if (!rv) rv = ecp_util_node_load(&ctx, &node, argv[1]); fprintf(stderr, "ecp_util_node_load RV:%d\n", rv); if (!rv) rv = ecp_util_node_load(&ctx, &vconn_node, argv[2]); printf("ecp_util_node_load RV:%d\n", rv); - if (!rv) rv = ecp_conn_create(&conn, &sock_c, CTYPE_TEST); + if (!rv) rv = ecp_conn_create(&conn, &sock, CTYPE_TEST); fprintf(stderr, "ecp_conn_create RV:%d\n", rv); if (!rv) rv = ecp_rbuf_create(&conn, NULL, NULL, 0, &rbuf_recv, rbuf_r_msg, RBUF_MSG_SIZE); |