Commit Graph

463 Commits

Author SHA1 Message Date
Marcel Holtmann
a67403b35f build: Update library version 2015-07-30 19:03:04 +02:00
Marcel Holtmann
8e15496255 build: Update library version 2015-07-07 19:17:47 +02:00
Marcel Holtmann
60f68ab8d5 build: Update library version 2015-06-15 11:21:43 +02:00
Gowtham Anandha Babu
f5fcdf45a6 unit/test-uuid: Use tester framework 2015-05-22 13:52:48 +03:00
Gowtham Anandha Babu
068dcecd44 unit/test-lib: Use tester framework 2015-05-22 13:52:47 +03:00
Gowtham Anandha Babu
bce027cedb unit/test-textfile: Use tester framework 2015-05-22 13:52:47 +03:00
Luiz Augusto von Dentz
65f10c8537 build: Check if dbus-run-session for unit tests
This checks if dbus-run-session is available and then add it to
AM_TESTS_ENVIRONMENT so tests using D-Bus run in its own session.
2015-05-18 21:35:40 +03:00
Marcel Holtmann
a08f1baa24 build: Always build Android support for releases 2015-05-17 01:08:37 +02:00
Luiz Augusto von Dentz
6a920ea803 unit/test-gdbus-client: Use tester framework 2015-04-12 19:06:46 +03:00
Luiz Augusto von Dentz
410b780ac2 unit/test-eir: Use tester framework 2015-04-12 19:06:46 +03:00
Luiz Augusto von Dentz
1e664a793c unit/test-crc: Use tester framework 2015-04-12 19:06:45 +03:00
Michael Janssen
729e9c0355 shared: add bt_ad structure
The bt_ad structure provides an abstraction for easy translation of defined
Advertisement Data fields into the resulting raw bytes needed by the Bluetooth
HCI LE Set Advertising Data command.
2015-04-07 17:45:10 +03:00
Marcel Holtmann
b29bcb6e1b doc: Add minimal sample kernel config for test-runner tool 2015-04-04 13:33:13 -07:00
Stefan Seyfried
0aa12f8377 build: enable glibc's malloc checks for the test suite
Setting MALLOC_CHECK_=3 causes additional checks in glibc for malloc()
usage errors, abort()ing the test if those trigger. MALLOC_PERTURB_=69
causes free()'d memory to be poisoned with 0x45, leading to crashes in
case of use-after-free.
Together, both are useful for spotting more errors during "make check"
2015-04-02 11:04:35 +03:00
Marcel Holtmann
e30f102315 build: Update library version 2015-03-31 13:58:22 -07:00
Michael Janssen
59c8313ddb core: advertising: add LEAdvertisingManager stubs
Introducing src/advertising which will implement the
org.bluez.LEAdvertisingManager1 D-Bus interface defined in
doc/advertising-api.txt.  Each LE-capable controller gets
an instance of the interface.
2015-03-27 17:01:11 +02:00
Luiz Augusto von Dentz
fdf0ec006e build: Add advertising-api.txt to EXTRA_DIST
This ensure it is included in the release tarball.
2015-03-25 12:34:48 +02:00
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