]>
code.delx.au - pulseaudio/blob - src/modules/bluetooth/rtp.h
3 * BlueZ - Bluetooth protocol stack for Linux
5 * Copyright (C) 2004-2008 Marcel Holtmann <marcel@holtmann.org>
8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public
10 * License as published by the Free Software Foundation; either
11 * version 2.1 of the License, or (at your option) any later version.
13 * This library is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * Lesser General Public License for more details.
18 * You should have received a copy of the GNU Lesser General Public
19 * License along with this library; if not, write to the Free Software
20 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
24 #if __BYTE_ORDER == __LITTLE_ENDIAN
35 uint16_t sequence_number
;
39 } __attribute__ ((packed
));
42 uint8_t frame_count
:4;
44 uint8_t is_last_fragment
:1;
45 uint8_t is_first_fragment
:1;
46 uint8_t is_fragmented
:1;
47 } __attribute__ ((packed
));
49 #elif __BYTE_ORDER == __BIG_ENDIAN
60 uint16_t sequence_number
;
64 } __attribute__ ((packed
));
67 uint8_t is_fragmented
:1;
68 uint8_t is_first_fragment
:1;
69 uint8_t is_last_fragment
:1;
71 uint8_t frame_count
:4;
72 } __attribute__ ((packed
));
75 #error "Unknown byte order"