summaryrefslogtreecommitdiffstats
path: root/src/modules/bluetooth/ipc.h
diff options
context:
space:
mode:
authorLuiz Augusto von Dentz <luiz.dentz-von@nokia.com>2010-10-07 17:22:41 +0300
committerLuiz Augusto von Dentz <luiz.dentz-von@nokia.com>2010-10-07 17:22:41 +0300
commit8f3ef04b4310bfbbe0aa8042585340e1832cacf6 (patch)
treeeca67c7b2b395b6a3d063db89efe1c8c818f07b2 /src/modules/bluetooth/ipc.h
parent3de129f3ac8dd6cf51178b266837db4d5e4a1215 (diff)
bluetooth: Add support for Media API
Make use of D-Bus to transfer file descriptors.
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;