From 6b59b063ecf29868bc6ea8c3734a671d1206ff1b Mon Sep 17 00:00:00 2001 From: David Phillips Date: Wed, 27 Jun 2018 21:49:48 +1200 Subject: Refactor libalarm --- inc/alarmd_proto.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'inc') diff --git a/inc/alarmd_proto.h b/inc/alarmd_proto.h index ebeddf1..3082424 100644 --- a/inc/alarmd_proto.h +++ b/inc/alarmd_proto.h @@ -2,6 +2,7 @@ #define ALARMD_PROTO_H #include +#include #define ALARMD_PORT "1433" @@ -15,9 +16,9 @@ enum alarmd_packet_type { int8_t recv_string(int sock, char (*buffer)[128]); int send_string(int sock, char *buffer); -int alarmd_register(int sock, char *desc, char (*uuid)[16]); -int alarmd_deregister(int sock, char uuid[16]); -int alarmd_raise(int sock, char uuid[16]); -int alarmd_clear(int sock, char uuid[16]); +int alarmd_register(int sock, char *desc, uuid_t *uuid); +int alarmd_deregister(int sock, uuid_t uuid); +int alarmd_raise(int sock, uuid_t uuid); +int alarmd_clear(int sock, uuid_t uuid); #endif /* ALARMD_PROTO_H */ -- cgit v1.1