Commit Graph

7356 Commits

Author SHA1 Message Date
Johan Hedberg
9031c47dde Get rid of unnecessary type casts with mcap_send_data 2010-09-16 15:19:18 +03:00
Johan Hedberg
028d168131 Make mcap_send_data accept void *
This makes it easier to pass the function data without having to do
explicit type casts.
2010-09-16 15:04:24 +03:00
Luiz Augusto von Dentz
49b41ba64d Include simple-endpoint in the EXTRA_DIST 2010-09-15 16:48:03 +03:00
Luiz Augusto von Dentz
79501d3c33 Add proper checks for MediaTransport.SetProperty 2010-09-15 15:28:44 +03:00
Luiz Augusto von Dentz
c9a76c4044 Remove local cache for nrec and inband
Those can be acessed directly from device/headset.
2010-09-15 15:22:24 +03:00
Luiz Augusto von Dentz
d19ec4d20c Update a2dp transport delay when it changes 2010-09-15 15:22:14 +03:00
Luiz Augusto von Dentz
ad28681367 Introduce headset_get_inband 2010-09-15 15:22:06 +03:00
Luiz Augusto von Dentz
f87e1bed13 Add initial implementation of org.bluez.Media spec 2010-09-15 15:21:53 +03:00
Luiz Augusto von Dentz
7bc7ee26c1 Add simple-endpoint test script 2010-09-15 15:05:44 +03:00
Luiz Augusto von Dentz
3622790d16 Add support for media transport in gstreamer plugin 2010-09-15 15:05:44 +03:00
Luiz Augusto Von Dentz
c1d7443db5 Add option to enable/disable unix ipc via audio.conf 2010-09-15 15:05:44 +03:00
Luiz Augusto Von Dentz
0537d6e99c Add rule to enabling talking to org.bluez.MediaEndpoint 2010-09-15 15:05:44 +03:00
Luiz Augusto von Dentz
1e985e1135 Add media API documentation
Media API is a replacement for the internal audio IPC which is no longer
necessary as DBus 1.3 and newer are capable of transfering file
descriptors.
2010-09-15 15:05:44 +03:00
Jose Antonio Santos Cadenas
bccb8dd7f6 Fix mcap INCLUDES variable
With the extra tab at the beginning of the line the includes
are not found correctly.
2010-09-15 13:26:04 +02:00
Jose Antonio Santos Cadenas
e32375e831 Change the way that connections are rejected
MCAP requires that connections are refused at L2CAP layer using a
connection response "Connection refused -no resources available".
By default, deferred connections in BlueZ are rejected using the
code "Connection refused - security block".

As in BlueZ is not possible to reject the defer connection with
this response code. This patch don't defer the connection and
close it immediately. This is also a valid behaviour for rejecting
connections in MCAP.
2010-09-15 13:26:04 +02:00
Jose Antonio Santos Cadenas
5c90bde90b Remove GError only when there is an error 2010-09-15 13:26:04 +02:00
Santiago Carot-Nemesio
d67dee724e Supress glib warnings when a sources is removed with tag 0 2010-09-15 13:26:04 +02:00
Jose Antonio Santos Cadenas
b2ae2f7220 Avoid memory leak while connecting BTIO channels 2010-09-15 13:26:04 +02:00
Santiago Carot-Nemesio
b6d761f8ed Use reference counter to manage MCL references in MCAP 2010-09-15 13:26:04 +02:00
Anderson Lizardo
0f587cb1b9 Fix UUID 128-bit support on attribute client
For descriptors, a comment is added explaining why UUID 128-bit support
is not necessary yet. For characteristic discovery, characteristics with
128-bit UUID types are now loaded.
2010-09-14 09:55:35 -04:00
Bruna Moreira
49d2452e28 Add support for UUID 128-bit in {enc, dec}_read_by_type_req 2010-09-14 09:55:35 -04:00
Bruna Moreira
4d84652b18 Add support for UUID 128-bit in {enc, dec}_read_by_grp_req 2010-09-14 09:55:34 -04:00
Bruna Moreira
d7fde8a9c0 Add a new primary service to the example server
This primary service contains 128-bit UUIDs on the service declaration
and characteristic declaration attributes, useful to test the 128-bit
UUID support.
2010-09-14 09:55:34 -04:00
Bruna Moreira
469696dbc6 Add new option to set MTU size in gatttool 2010-09-14 09:53:52 -04:00
Vinicius Costa Gomes
89b70f2ac6 Add support for the MTU Exchange procedure to the server
Now the server is able to respond to MTU Exchange requests and
using the negotiated MTU for future PDUs.
2010-09-13 15:54:22 -04:00
Vinicius Costa Gomes
ee93004d3a Add support for a per channel MTU to the ATT server
Now each channel is able to send data using the configured MTU
for that channel. For now, the MTU is set to the default MTU
defined by GATT.
2010-09-13 15:54:22 -04:00
Vinicius Costa Gomes
f6c5bd6417 Define maximum and default MTU values 2010-09-13 15:54:22 -04:00
Vinicius Costa Gomes
8487d21c99 Add encoders/decoders for MTU Exchange 2010-09-13 15:54:22 -04:00
Vinicius Costa Gomes
62b464cb50 Fix not registering all characteristics for a service
Besides registering the characteristics when we receive the Attribute
Not Found Error, we should also register the characteristics when we
get to the end of the handle range contained in that service.
2010-09-13 15:51:28 -04:00
Vinicius Costa Gomes
f9352f3eb7 Fix ATT server read_by_group not respecting Secondary services
According to the definition of ending of a service[1], the service
must end at the next service declaration, that includes a Secondary
Service.

There's one issue that I did not find a definitive answer in the spec,
in the case that the end handle of the request is less than the End
Group handle of the service, what should be put in the response?

[1] "The service definition ends before the next service declaration
or after the maximum Attribute Handle is reached."
2010-09-13 15:51:28 -04:00
Vinicius Costa Gomes
f040311538 Fix dealing with the minimum MTU size
When using the minimum MTU, in some cases, mostly when using 128-bit UUIDs,
the PDU is exactly the size of the minimum MTU. In those case there were
off-by-one errors. Errors are returned if can't put anything useful inside
the requested PDU.
2010-09-13 15:51:28 -04:00
Vinicius Costa Gomes
70e1386641 Fix coding style issue
For some reason, this was indented using spaces.
2010-09-13 15:51:28 -04:00
Vinicius Costa Gomes
2e69b04754 Fix not including the start handle in the Error Response
In the case that there wasn't any service in the requested range,
we should include the beginning of the range, in the Attribute
Not Found Error Response.
2010-09-13 15:51:28 -04:00
Vinicius Costa Gomes
19154ef461 Fix GATT server to stop sending notifications
The GATT server should stop sending notifications and indications
on disconnection.
2010-09-13 11:59:28 -04:00
Vinicius Costa Gomes
818a4ca922 Fix a file descriptor leak on GATT client
In some cases, there could be a file descriptor leak, when the
connection is not succesful. As the connection callback keeps a
reference, there's no problem unref'ing it at this point.
2010-09-13 11:59:28 -04:00
Luiz Augusto von Dentz
dbf642ce32 Fix crash on gstreamer plugin if device doesn't support sbc 2010-09-13 16:20:35 +03:00
Zhenhua Zhang
f57cb78379 btio: Seperate btio.[ch] into btio directory
Seperate btio.[ch] from src directory to btio sub-folder.
2010-09-13 11:23:02 +03:00
Zhenhua Zhang
16b618dd56 btio: Add ifndef/endif guard for btio.h
To avoid circular inclusion of include file.
2010-09-13 11:22:59 +03:00
Zhenhua Zhang
ea33876a22 btio: Remove blank line at EOF 2010-09-13 10:45:14 +03:00
Luiz Augusto von Dentz
af7fcf80c3 Fix dict_append_array to accept types other than string 2010-09-10 14:56:42 +03:00
Marcel Holtmann
30ed3e4a21 Add gdbus/polkit.c file to sources list 2010-09-09 18:31:24 +02:00
Marcel Holtmann
3a792ff3ce Add support for builtin GDBus security using PolicyKit 2010-09-09 18:30:43 +02:00
Marcel Holtmann
aafe340fa7 Add support for GDBus security action and flags 2010-09-09 18:30:43 +02:00
Marcel Holtmann
a7dc2305a8 Use simpler error callbacks for GDBus security hooks 2010-09-09 18:30:43 +02:00
Marcel Holtmann
c7aa1b025a Add support for GDBus security handlers 2010-09-09 18:30:43 +02:00
Marcel Holtmann
d805049e75 Release 4.71 2010-09-09 11:10:16 +02:00
Marcel Holtmann
1bb185f5ec Fix typo in previous change log entry 2010-09-09 11:09:43 +02:00
Luiz Augusto von Dentz
217b1bea41 Fix closing stream of locked sep when reconfiguring
Stream should only be closed if sep is unlocked otherwise there is a
possibility that sep reconfiguration is triggered although the sep is in
use by the user application.
2010-09-08 19:46:56 +03:00
Anderson Lizardo
4cf6ea122a Check for error after bt_io_get() on attribute server 2010-09-08 09:55:41 -04:00
Anderson Lizardo
3d17470855 Add invalid handle checks to read_by_group()
Do proper handle checks as described in the "Read By Group Type Request"
definition.
2010-09-08 09:55:40 -04:00