X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~mdw/git/disorder/blobdiff_plain/812b526d127c6657e571db8b33a58137af6709cd..d53ef367fb4f4aed2e2ff9d8ef4c187a61c9497e:/lib/speaker-protocol.h diff --git a/lib/speaker-protocol.h b/lib/speaker-protocol.h index bd80e7d..3b21f0a 100644 --- a/lib/speaker-protocol.h +++ b/lib/speaker-protocol.h @@ -25,6 +25,8 @@ #ifndef SPEAKER_PROTOCOL_H #define SPEAKER_PROTOCOL_H +#include "byte-order.h" + /** @brief A message from the main server to the speaker, or vica versa */ struct speaker_message { /** @brief Message type @@ -123,13 +125,6 @@ struct stream_header { /** @brief Endianness */ uint8_t endian; -#define ENDIAN_BIG 1 -#define ENDIAN_LITTLE 2 -#ifdef WORDS_BIGENDIAN -# define ENDIAN_NATIVE ENDIAN_BIG -#else -# define ENDIAN_NATIVE ENDIAN_LITTLE -#endif } attribute((packed)); static inline int formats_equal(const struct stream_header *a,