diff options
author | David Phillips <david@sighup.nz> | 2018-06-27 21:49:48 +1200 |
---|---|---|
committer | David Phillips <david@sighup.nz> | 2018-06-27 21:49:48 +1200 |
commit | 6b59b063ecf29868bc6ea8c3734a671d1206ff1b (patch) | |
tree | 7d1a0d23e7586fc8c6d0f592c4ae3311799b73be /inc | |
parent | 7ad723a8fb605f0bcab8a3ed912bef5f2d335f2c (diff) | |
download | alarmd-6b59b063ecf29868bc6ea8c3734a671d1206ff1b.tar.xz |
Refactor libalarm
Diffstat (limited to 'inc')
-rw-r--r-- | inc/alarmd_proto.h | 9 |
1 files changed, 5 insertions, 4 deletions
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 <stdint.h> +#include <uuid/uuid.h> #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 */ |