utils.c (563B)
1 #include "hex_server.h" 2 3 extern inline void 4 difftimespec(struct timespec *restrict lhs, struct timespec *restrict rhs, struct timespec *restrict out); 5 6 extern inline void 7 errlog(char *fmt, ...); 8 9 extern inline void 10 dbglog(char *fmt, ...); 11 12 extern inline char const * 13 hexerrorstr(enum hex_error val); 14 15 extern inline char const * 16 hexplayerstr(enum hex_player val); 17 18 extern inline bool 19 hex_msg_try_serialise(struct hex_msg const *msg, uint8_t out[static HEX_MSG_SZ]); 20 21 extern inline bool 22 hex_msg_try_deserialise(uint8_t buf[static HEX_MSG_SZ], struct hex_msg *out);