Commit Graph

446 Commits

Author SHA1 Message Date
Luiz Augusto von Dentz
853bd60568 build: Add missing docs to EXTRA_DIST
This adds doc/gatt-api.txt and doc/input-api.txt to EXTRA_DIST so they
get included in make dist tarball.
2015-03-18 11:07:31 +02:00
Mariusz Skamra
605fbd5396 unit/test-hog: Add TC/HGRF/RH/BV-01-I test
Verify that all Report Map characteristics can be read by
Report Host IUT
2015-03-17 12:52:16 +01:00
Marcel Holtmann
d72b3760b3 build: Update library version 2015-03-11 16:18:26 +01:00
Arman Uguray
aeb3feefd4 core/gatt: Add GattManager1 stubs
This patch introduces src/gatt-manager, which will implement the
org.bluez.GattManager1 API outlined in doc/gatt-api.txt. The old
src/gatt-dbus code has been removed to start from a clean slate.
2015-03-02 15:19:20 +02:00
Marcel Holtmann
4a5c9e636c build: Remove include option for gdbus directory 2015-03-01 00:35:28 -08:00
Arman Uguray
d330725947 core: Introduce btd_gatt_database
This patch introduces src/gatt-database.* which handles incoming ATT
connections, manages per-adapter shared/gatt-db instances, and routes
connections to the corresponding device object. This is the layer that
will perform all the CCC management and Service Changed handling.
2015-02-17 13:46:17 +02:00
Johan Hedberg
649215b62f shared: Move mainloop implementation from monitor to shared 2015-02-12 12:32:07 +02:00
Marcel Holtmann
41304925a6 build: Update library version 2015-02-02 09:14:12 +01:00
Marcel Holtmann
f8dae865be build: Update library version 2014-12-26 19:42:09 +01:00
Arman Uguray
2780741f23 core/gatt: Introduce gatt-client
This patch introduces src/gatt-client, which will implement the D-Bus
API outlined in doc/gatt-api.txt for the GATT client role.
2014-12-23 12:59:27 -02:00
Luiz Augusto von Dentz
6a56b171b6 build: Add coverage support
Coverage is enabled with --enable-maintainer-mode, 2 new targets are
added 'coverage' and 'clean-coverage', the first generate the reports
using lcov and depend on the second to cleanup previous generated
reports and .gcda files.
2014-12-12 12:24:10 -02:00
Marcel Holtmann
86007752cd build: Update library version 2014-12-11 22:56:19 +01:00
Johan Hedberg
a59e8c97fa unit: Add unit test for ECC
This patch adds unit tests for the ECC code. Also this test code has
been taken from https://github.com/kmackay/easy-ecc.
2014-12-03 16:32:45 +02:00
Marcel Holtmann
dd13d2d56e build: Update library version 2014-11-09 21:15:52 +01:00
Michael Janssen
ee1d6fe79d Add unit tests for gattrib
This will ensure that the API behavior of gattrib is preserved.
2014-11-03 17:17:07 +02:00
Arman Uguray
c15608a7fe shared/gatt-server: Introduce bt_gatt-server
This patch introduces bt_gatt_server which will implement the
server-side of the ATT protocol over a bt_att structure and construct
responses based on a gatt_db structure.
2014-10-20 15:02:35 +03:00
Marcel Holtmann
62220dea19 build: Restrict unconditional compilation of unit tests 2014-10-03 13:02:59 +02:00
Marcel Holtmann
492814f0ee build: Move unit test program names to their source listing 2014-10-03 10:06:59 +02:00
Luiz Augusto von Dentz
a7264f9604 unit/test-gatt: Add TP/GAC/CL/BV-01-C test
Verify that a Generic Attribute Profile client can generate an
Exchange MTU Request command.
2014-10-03 10:28:43 +03:00
Marcel Holtmann
419bd56a4f shared: Add helper functions for HCI based crypto 2014-09-25 17:00:13 +02:00
Marcel Holtmann
d4faea365e build: Add initial code for shared GAP handling 2014-09-25 15:11:12 +02:00
Marcel Holtmann
508e129d75 build: Move hciemu.c and hciemu.h into emulator directory 2014-09-25 14:39:10 +02:00
Marcel Holtmann
9b912ea925 build: Use internal libshared-glib and libshared-mainloop libraries 2014-09-25 13:01:43 +02:00
Marcel Holtmann
9ca0bce631 build: Update library version 2014-09-08 05:08:02 +02:00
Arman Uguray
a2c546525e shared/gatt-client: Added initial skeleton and simple functions.
This patch introduces shared/gatt-client, which provides a central/client side
implementation of the Generic Attribute Profile. An instance of bt_gatt_client
will provide a central database of all GATT services, characteristics, and
descriptors that have been discovered on a peripheral and will provide API
functions to obtain information about discovered attributes, registering
handlers for "Service Changed" indications, as well as providing
reference-counted access to "Client Characteristic Configuration" descriptors.
2014-08-28 23:37:13 +02:00
Arman Uguray
57833a7a82 shared/gatt: Introduce gatt-helpers.h skeleton.
This patch introduces the skeleton for src/shared/gatt-helpers, which defines
helper functions for over-the-air GATT client-side procedures that will be
frequently used by clients. Most of these functions require several sequential
ATT protocol requests and it is useful to abstract these details away from the
upper layer.
2014-07-26 05:00:22 +02:00
Marcel Holtmann
586cdbc23b build: Use dist_noinst_MANS for now due to an automake issue 2014-07-13 00:06:57 +02:00
Marcel Holtmann
3672e43fe6 build: Add configure option for generating manual pages 2014-07-12 23:44:22 +02:00
Marcel Holtmann
7dd1e9c76c build: Add support for asciidoc based manual pages 2014-07-12 14:26:10 +02:00
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