diff options
Diffstat (limited to 'audio/avdtp.h')
-rw-r--r-- | audio/avdtp.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/audio/avdtp.h b/audio/avdtp.h index d8408ac0..e81bf496 100644 --- a/audio/avdtp.h +++ b/audio/avdtp.h @@ -79,6 +79,8 @@ struct avdtp_service_capability { uint8_t data[0]; } __attribute__ ((packed)); +#if __BYTE_ORDER == __LITTLE_ENDIAN + struct avdtp_media_codec_capability { uint8_t rfa0:4; uint8_t media_type:4; @@ -86,6 +88,19 @@ struct avdtp_media_codec_capability { uint8_t data[0]; } __attribute__ ((packed)); +#elif __BYTE_ORDER == __BIG_ENDIAN + +struct avdtp_media_codec_capability { + uint8_t media_type:4; + uint8_t rfa0:4; + uint8_t media_codec_type; + uint8_t data[0]; +} __attribute__ ((packed)); + +#else +#error "Unknown byte order" +#endif + typedef void (*avdtp_stream_state_cb) (struct avdtp_stream *stream, avdtp_state_t old_state, avdtp_state_t new_state, |