Commit Graph

417 Commits

Author SHA1 Message Date
Arman Uguray
8b0625c471 shared/att: Introduce struct bt_att.
This patch introduces struct bt_att, which handles the transport and
encoding/decoding for the ATT protocol. The structure of the code
follows that of src/shared/mgmt and lib/mgmt.h, where individual
parameter structures are defined for all ATT protocol requests, responses,
commands, indications, and notifications. The serialization and
endianness conversion for all parameters are handled by bt_att.

struct bt_att is based around struct io and operates on a raw file
descriptor.
2014-06-23 10:31:32 +02:00
Marcel Holtmann
72db1adb9d build: Update library version 2014-06-20 20:26:51 +02:00
Lukasz Rymanowski
514e224641 android/gatt: Fix signed write command encoding
As per spec (BT spec 4.1 Vol[3], Part F, chapter 3.4.5.4) we need to
take opcode, handle and parameters to generate signature.
In order to support it signing is moved to att.c, place where pdu is
encoded
2014-05-30 13:26:14 +03:00
Luiz Augusto von Dentz
02bae107fc shared/uhid: Add implemetation of bt_uhid_register/bt_uhid_unregister 2014-05-23 16:40:29 +03:00
Luiz Augusto von Dentz
632617bc86 shared/uhid: Add initial API 2014-05-23 16:40:29 +03:00
Lukasz Rymanowski
a257810878 unit: Add test case for AES-CMAC-128
Test vectors taken from the NIST Special Publication 800-38B
(http://csrc.nist.gov/publications/PubsSPs.html)
2014-05-20 14:54:30 +03:00
Marcel Holtmann
547ddef35c build: Update library version 2014-05-19 09:08:30 -07:00
Marcel Holtmann
b395f39ff2 build: Update library version 2014-03-25 20:23:55 -07:00
Marcel Holtmann
b0b1f5640c build: Add timeout abstraction to main Bluetooth daemon 2014-03-19 22:29:23 -07:00
Natanael Copa
becfb84742 unit: prevent unintended use of glibc's error(3)
When building the test-sdp we don't want src/sdpd-request.c end up
using the incompatible GNU libc's error(3) instead of the intended
src/log.c's error().

This also fixes the following compile error on Alpine Linux with musl
libc which does not implement the error(3) GNU extension:

src/sdpd-request.o: In function `extract_des':
/home/ncopa/src/bluez/src/sdpd-request.c:126: undefined reference to `error'
src/sdpd-request.o: In function `process_request':
/home/ncopa/src/bluez/src/sdpd-request.c:1022: undefined reference to `error'
/home/ncopa/src/bluez/src/sdpd-request.c:1045: undefined reference to `error'
2014-03-14 13:29:33 +02:00
Marcel Holtmann
abd1dff408 build: Update library version 2014-03-11 09:35:31 -07:00
Marcin Kraglak
b60018b3a7 unit: Initial version of test-hfp
This is skeleton of hfp unit tests with basic init test
for hfp_gw_new().
Basic test with hfp_gw_new() and hfp_gw_unref.
2014-03-06 10:19:34 +01:00
Andrei Emeltchenko
4c3837c56c unit/avrcp: First unit test for AVRCP profile
The tests verifies connection establishment for control.
2014-02-24 10:23:56 +02:00
Alvaro Silva
7dbaf9c45f gatt: Register Manager D-Bus Interface
This patch registers GATT Service Manager D-Bus Interface. This
interface implements the methods to allow external application register
and unregister GATT Services.
2014-02-24 10:18:30 +02:00
Alvaro Silva
9a642080f0 gatt: Add stub for gatt.{c, h} files
These files implement functions to handle ATT transactions, and expose
functions to allow other entities to manage GATT based services. It
is a replacement for src/attrib-server.c.
2014-02-24 10:18:11 +02:00
Marcel Holtmann
aede4e788a build: Update library version 2014-02-21 21:47:02 -08:00
Anderson Lizardo
124f6f0595 android: Add test-ipc to "make check" 2014-02-12 11:49:31 +02:00
Andrei Emeltchenko
7e1c7f5b2c unit/avctp: Add AVCTP unit test skeleton and first test
Adds test TP/NFR/BV-01-C. To verify that the IUT (CT) formats correctly
the following fields of the AVCTP command message: “transaction label”,
"message type(C)", PID, “packet type”, IPID and “message information”.
2014-01-29 09:18:23 -08:00
Marcel Holtmann
fc9c240b40 build: Remove unneeded include directories 2014-01-25 20:18:54 -08:00
Marcel Holtmann
611f14dec8 unit: Add basic unit test for queue handling 2014-01-25 11:30:52 -08:00
Marcel Holtmann
b83e92dea4 unit: Add basic tests for simple ring buffer support 2014-01-25 11:08:25 -08:00
Marcel Holtmann
23e4997cf6 build: Don't enable Android build for make distcheck 2014-01-23 09:40:00 -08:00
Johan Hedberg
1a9051e9ee Rename glib-helper to uuid-helper 2014-01-21 14:12:47 +02:00
Marcel Holtmann
d40e741deb build: Update library version 2014-01-20 17:56:14 -08:00
Marcel Holtmann
26f9879e92 doc: Add document summarizing current test coverage 2014-01-11 21:15:41 -08:00
Marcel Holtmann
d18e1ad69c shared: Add skeleton for generic IO framework 2014-01-08 19:39:09 -08:00
Marcel Holtmann
eb4d95c560 shared: Use internal queue handling for mgmt interface 2014-01-08 15:01:04 -08:00
Marcel Holtmann
1d0a7f59fe build: Update library version 2013-12-27 09:38:34 -08:00
Marcel Holtmann
4085678fd4 build: Update library version 2013-12-10 01:44:58 -08:00
Szymon Janc
f105bb174e build: Fix build error if path contains spaces
janccszy@box:~/bluez test$ make
  GEN      lib/bluetooth/bluetooth.h
ln: target ‘lib/bluetooth/bluetooth.h’ is not a directory
make: *** [lib/bluetooth/bluetooth.h] Error 1
2013-11-28 14:33:06 +02:00
Luiz Augusto von Dentz
328074fc15 unit/AVDTP: Add /TP/SIG/SMG/BV-05-C test
Verify that the IUT (INT) is able to issue a valid stream discover command
and report the replied SEPs and media types.
2013-11-25 16:50:39 +02:00
Marcel Holtmann
40a960d2e4 build: Update library version 2013-11-15 14:53:53 -08:00
Szymon Janc
806721a4cb build: Move Makefile.android to android/Makefile.am
This will keep all Android related changes within android directory.
2013-10-29 14:06:35 +02:00
Marcel Holtmann
8eb2ac4564 build: Update library version 2013-10-15 14:56:51 -07:00
Frederic Danis
cd402b079e build: Add skeleton for BlueZ Android
Retrieve Bluetooth version from configure.ac.
2013-10-04 15:22:32 +03:00
Luiz Augusto von Dentz
1cc4f9ccf9 build: Fix not rebuilding bluetoothd if gdbus changes
src_bluetoothd_DEPENDENCIES should list all local libraries including gdbus
otherwise it does not get relinked whenever gdbus changes.
2013-09-09 17:35:29 +03:00
Marcel Holtmann
e181bfa878 build: Add test-driver to maintainer clean process 2013-09-02 11:47:27 -07:00
Marcel Holtmann
6c1dfe9b6d build: Remove all checks for USB library support 2013-08-28 14:15:22 -07:00
Marcel Holtmann
6d89e266f1 unit: Add test case for link layer CRC functions 2013-08-21 23:14:18 -07:00
Marcel Holtmann
8b11a12173 build: Update library version 2013-08-07 12:35:24 -07:00
Anderson Lizardo
188d211c74 build: Fix make distcheck
Fix this error:

make[1]: *** No rule to make target `profiles/audio/audio.conf', needed
by `distdir'.  Stop.
make: *** [test_build] Error 2
2013-07-25 11:51:26 -07:00
Marcel Holtmann
f763e5e3e4 build: Build a simpler version of libgdbus-internal 2013-07-18 07:37:19 -07:00
Lucas De Marchi
c97860db27 build-sys: Don't build gdbus several times
We are currently compiling gdbus 3 times: one for tests, one for
bluetoothd and another for obexd.

$ ls gdbus/*watch.o
gdbus/bluetoothd-watch.o  gdbus/obexd-watch.o  gdbus/watch.o

Instead of prepending $(gdbus_sources) to several _SOURCES variable, use
a convenience library.
2013-07-18 07:31:50 -07:00
Lucas De Marchi
0585eb43c6 build-sys: Rename lib suffix to -internal
libbluetooth-private -> libbluetooth-internal
2013-07-18 07:31:50 -07:00
Marcel Holtmann
7aca3faac6 build: Update library version 2013-06-26 10:03:17 -07:00
Marcel Holtmann
82671d8b7e build: Update library version 2013-06-19 08:04:14 +02:00
Marcel Holtmann
ff9b14e737 build: Update library version 2013-05-14 09:00:10 +02:00
Mikel Astiz
b5c3398049 core: Add btd_service to represent device services
Add a new object to centralize all data corresponding to a service
provided by a remote device, coupling a pair of btd_profile and
btd_device pointers.
2013-04-26 10:24:53 +03:00
Marcel Holtmann
858283eafa build: Update library version 2013-04-10 22:24:32 -07:00
Marcel Holtmann
5ae6f82f1a build: Update library version 2013-02-23 12:02:48 +01:00