summaryrefslogtreecommitdiffstats
path: root/src/modules/bluetooth/ipc.h
diff options
context:
space:
mode:
authorColin Guthrie <cguthrie@mandriva.org>2010-10-13 09:21:01 +0100
committerColin Guthrie <cguthrie@mandriva.org>2010-10-13 09:21:01 +0100
commit489f50e2f4160f1368df38657bb91e77fd52c861 (patch)
treed9e14eec3420ab763b97de38ad6126e175de393b /src/modules/bluetooth/ipc.h
parent2e9c38aec11fb1e8275396bbf7f669b5213ba025 (diff)
parent8f3ef04b4310bfbbe0aa8042585340e1832cacf6 (diff)
Merge remote branch 'vudentz2/master'
Diffstat (limited to 'src/modules/bluetooth/ipc.h')
-rw-r--r--src/modules/bluetooth/ipc.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/src/modules/bluetooth/ipc.h b/src/modules/bluetooth/ipc.h
index 2e170f50..9537886b 100644
--- a/src/modules/bluetooth/ipc.h
+++ b/src/modules/bluetooth/ipc.h
@@ -201,6 +201,34 @@ typedef struct {
uint8_t max_bitpool;
} __attribute__ ((packed)) sbc_capabilities_t;
+#if __BYTE_ORDER == __LITTLE_ENDIAN
+
+typedef struct {
+ uint8_t channel_mode:4;
+ uint8_t frequency:4;
+ uint8_t allocation_method:2;
+ uint8_t subbands:2;
+ uint8_t block_length:4;
+ uint8_t min_bitpool;
+ uint8_t max_bitpool;
+} __attribute__ ((packed)) sbc_capabilities_raw_t;
+
+#elif __BYTE_ORDER == __BIG_ENDIAN
+
+typedef struct {
+ uint8_t frequency:4;
+ uint8_t channel_mode:4;
+ uint8_t block_length:4;
+ uint8_t subbands:2;
+ uint8_t allocation_method:2;
+ uint8_t min_bitpool;
+ uint8_t max_bitpool;
+} __attribute__ ((packed)) sbc_capabilities_raw_t;
+
+#else
+#error "Unknown byte order"
+#endif
+
typedef struct {
codec_capabilities_t capability;
uint8_t channel_mode;