Commit Graph

16 Commits

Author SHA1 Message Date
Johan Hedberg
e02433c0b0 lib: Add BT_SNDMTU and BT_RCVMTU socket option defines 2013-12-05 11:58:45 +02:00
Johan Hedberg
7d3a607247 lib: Add missing BT_POWER socket option defines 2013-12-03 11:16:00 +02:00
Frédéric Dalleau
c594291320 lib: SCO voice setting support header
Modify headers to enable support for changing SCO voice setting.
Corresponding commit implements functionality on kernel side.
2013-08-01 12:32:11 +03:00
Marcel Holtmann
7003e67273 lib: Make bt_compidtostr return value const 2012-12-29 22:58:11 -08:00
Szymon Janc
51df858745 lib: Add unaligned put helper functions
These functions are similar to bt_get_* functions.
2012-09-05 12:04:52 +03:00
Claudio Takahasi
ba801fcd67 Add Bluetooth address type in sockaddr_l2
This patch adds the address type information to sockaddr_l2 structure,
allowing the userspace to inform the remote address type required for
LE Create Connection command.
2012-04-25 12:54:17 +03:00
Patrick Ohly
4002cf271e lib: Fix compile issue when using in C++
The compiler error is:
 /usr/include/bluetooth/bluetooth.h::131:9: error: invalid conversion from 'void*' to 'bt_get_le64(void*)::<anonymous struct>*'
 ...

The reason is that C++, in contrast to C, does not allow conversion of
void * to anything, and this code gets compiled as C++ when the app is
written in C++. The macro with the assignment itself is older, but only
recent Bluez starts to use it in inline functions, thus triggering the
problem.

This patch keeps the "struct __attribute__((packed))" magic and merely
changes the typecast so that it works in C and C++. Like the existing
macro this patch relies on support for typeof.
2012-03-04 15:24:39 -08:00
Marcel Holtmann
987ffb7360 lib: Make unaligned access functions const 2012-02-26 22:42:41 -08:00
Andrei Emeltchenko
da47ffe5c7 lib: Copy L2CAP chan policy defines from kernel
Those defines will be used by user space.
2012-02-26 19:06:47 +02:00
Vinicius Costa Gomes
faa7b5c70b lib: Add Key Size information to the security information
Since some time the kernel has the capability to return the length of
the key that was used to encrypt the link.

This patch exposes that field to userspace so more applications can take
decisions based on this information.
2012-01-24 16:19:16 +02:00
Andrei Emeltchenko
41ccb16f6c Add get_le/get_be helpers
Helpers to access LE / BE values. In different Bluetooth
protocols/profiles there is a mixture of LE / BE byte order.
2011-10-25 10:07:58 +02:00
Andrei Emeltchenko
011c01ed8d Add btohll / htobll macros
Handle 64 bit swap
2011-10-21 11:08:24 +03:00
Elvis Pfützenreuter
bb096e674c Add more functions for new UUID handling
This patch adds more functions that are necessary to handle the new
bt_uuid_t type, and moves basic things like byte-swapping functions and
uint128_t type to bluetooth.h.
2011-03-15 10:42:50 +02:00
Andrei Emeltchenko
2430512c98 Bluetooth: flushable packet supports headers
Modify headers to enable support for flushable packets. Following
commit: 8bcbd526c84724d8de087130d53e79da256e34bf to linux kernel
implements functionality on kernel side.
2011-01-27 11:00:21 +02:00
Marcel Holtmann
9184e2eeb7 Update copyright information 2010-01-01 17:08:17 -08:00
Marcel Holtmann
a5b1e3d02c Switch to a full non-recursive build system 2009-08-23 00:40:59 -07:00