From 72abee4fc44e5e5092e215d5afee556e6e59347c Mon Sep 17 00:00:00 2001 From: Sander Vrijders Date: Thu, 24 Mar 2016 15:46:05 +0100 Subject: lib: Adds IRMd messages for the dev.h API calls This adds several messages for the dev.h API calls to communicate with the IRM daemon. The deserializing of these messages is still missing and the irmd hasn't been updated with them either. --- src/tools/echo/echo_client.c | 5 ++--- src/tools/echo/echo_server.c | 4 ++-- 2 files changed, 4 insertions(+), 5 deletions(-) (limited to 'src/tools/echo') diff --git a/src/tools/echo/echo_client.c b/src/tools/echo/echo_client.c index 2f80a52a..196296f2 100644 --- a/src/tools/echo/echo_client.c +++ b/src/tools/echo/echo_client.c @@ -33,9 +33,8 @@ int client_main() char * message = "Client says hi!"; ssize_t count = 0; - fd = flow_alloc(SERVER_AP_NAME, NULL, - CLIENT_AP_NAME, NULL, - NULL, 0); + fd = flow_alloc(SERVER_AP_NAME, CLIENT_AP_NAME, + NULL, NULL, 0); if (fd < 0) { printf("Failed to allocate flow\n"); return -1; diff --git a/src/tools/echo/echo_server.c b/src/tools/echo/echo_server.c index f9682ab7..289f537a 100644 --- a/src/tools/echo/echo_server.c +++ b/src/tools/echo/echo_server.c @@ -34,7 +34,7 @@ void shutdown_server(int signo) { char * dif = DIF_NAME; - if (ap_unreg(SERVER_AP_NAME, NULL, &dif, 1)) { + if (ap_unreg(SERVER_AP_NAME, &dif, 1)) { printf("Failed to unregister application\n"); exit(EXIT_FAILURE); } @@ -59,7 +59,7 @@ int server_main() return -1; } - server_fd = ap_reg(SERVER_AP_NAME, NULL, &dif, 1); + server_fd = ap_reg(SERVER_AP_NAME, &dif, 1); if (server_fd < 0) { printf("Failed to register application\n"); return -1; -- cgit v1.2.3