Commit Graph

9226 Commits

Author SHA1 Message Date
Szymon Janc
eed7ec0561 l2test: Add option 'H' to set socket receive buffer size
Size is set using SO_RCVBUF, see man 7 socket for more details.
2012-01-09 14:53:52 +02:00
Anderson Lizardo
1df0c86c3a Add missing options to bootstrap-configure
With these options, all BlueZ C files are compiled with
"./bootstrap-configure". The only exception is --enable-hal, which
conflicts with the "formfactor" plugin.
2012-01-09 14:51:07 +02:00
Anderson Lizardo
4f1294a5e7 Remove unused/broken "echo" RFCOMM plugin
It was disabled for quite some time (since 2009), and does not even
compile anymore if enabled:

plugins/echo.c: In function 'session_event':
plugins/echo.c:53: error: implicit declaration of function
'g_io_channel_read'
plugins/echo.c:57: error: implicit declaration of function
'g_io_channel_write'
2012-01-09 14:50:39 +02:00
Anderson Lizardo
d94628a136 Remove PulseAudio plugin leftover
The .c file and the configure check were not being used anywhere.
2012-01-09 14:50:27 +02:00
Santiago Carot-Nemesio
927ec06fe2 gatt-example: Fix memory leak
Remove the example-plugin data element from the list whenever an adapter
is removed.
2012-01-09 14:28:29 +02:00
Santiago Carot-Nemesio
5da4dd8afa gatt-service: Add missing user_data parameter for callbacks 2012-01-09 14:28:29 +02:00
Santiago Carot-Nemesio
c9548ebacf gatt-service: Delete attributes when service registration fails
Whenever a regitration operation fails, the attributes stored in the
data base of handles remain. This patches removes all attributes
registered by a service when the operation is not succesful. In this
way, either all service attributes are registered or none of them are
stored in the data base.
2012-01-09 14:28:29 +02:00
Santiago Carot-Nemesio
17dac2f037 attrib-server: Move GAP attributes inside gatt_server struct 2012-01-09 14:28:29 +02:00
Scott James Remnant
f0ef8ce2ea build: increase check requirement to 0.9.6
ck_assert, used by unit/test-eir.c wasn't added to check until 0.9.6
2012-01-07 20:00:15 +02:00
Andrei Emeltchenko
1a096265b3 lib: Fix structures for AMP Assoc Read
Make struct names similar to kernel and remove static array since
fragment length can be other size than HCI_MAX_NAME_LENGTH, which
is for totally different purpose.
2012-01-05 12:39:35 +02:00
Johan Hedberg
deada67640 manager: Fix removing adapter from list upon initialization failure 2012-01-02 13:34:03 +02:00
Johan Hedberg
ec60f0ad0d mgmtops: Log confirm_name field in mgmt_device_found 2012-01-02 13:22:59 +02:00
Johan Hedberg
d94854fb14 hciops: Add check for EIR complete name 2011-12-30 15:30:58 +02:00
Johan Hedberg
f52cc3072c eir: Add function to check for complete name 2011-12-30 15:30:26 +02:00
Johan Hedberg
d08600bbcf hciops: Fix missing eir in btd_event_device_found call 2011-12-30 15:26:31 +02:00
Anderson Lizardo
d9062e72d0 hciemu: Fix strict-aliasing rules handling
gcc 4.4.3 (from Ubuntu 10.04) started complaining about this code:

test/hciemu.c: In function ‘hci_host_control’:
test/hciemu.c:431: error: dereferencing pointer ‘({anonymous})’ does break
strict-aliasing rules
test/hciemu.c:431: note: initialized from here

The fix is based on commit 97046eaf3f.
2011-12-30 13:08:45 +02:00
David Herrmann
3b2985bab4 wiimote: Fix device_get_address to use new API
Commit b06899eace introduced a new API for
device_get_address but apparently missed fixing the call in
plugins/wiimote.c. This patch converts the plugin to use the new API.
2011-12-30 13:05:40 +02:00
David Herrmann
3a870b6a9a Add wiimote plugin to bootstrap-configure 2011-12-30 13:04:07 +02:00
Santiago Carot-Nemesio
5d250fdf4f attrib-server: Add GAttrib in attrib_channel_detach function 2011-12-30 13:02:54 +02:00
Santiago Carot-Nemesio
54f49e31d5 attrib-server: Add adapter in attrib_create_sdp function 2011-12-30 13:02:27 +02:00
Santiago Carot-Nemesio
974bb2dca2 attrib-server: Add adapter in attrib_db_del function 2011-12-30 13:02:00 +02:00
Santiago Carot-Nemesio
86980984dd attrib-server: Add adapter in attrib_gap_set function 2011-12-30 13:01:28 +02:00
Santiago Carot-Nemesio
99156a2444 attrib-server: Add adapter in attrib_db_update function 2011-12-30 13:01:05 +02:00
Santiago Carot-Nemesio
7188fe255e gatt-service: Add adapter in gatt_service_add function 2011-12-30 13:00:34 +02:00
Santiago Carot-Nemesio
6a1e46afaf attrib-server: Add adapter in attrib_db_add
Because of there can be many adapters plugged, the GATT servers must
provide the adapter in which the attributes will be registered.
2011-12-30 13:00:00 +02:00
Santiago Carot-Nemesio
bbc34269b0 attrib-server: Add adapter to attrib_db_find_avail function
Adapters manage their own list of handlers so we need to specify the
adapter where the handlers will be registered.
2011-12-30 12:59:09 +02:00
Santiago Carot-Nemesio
caa6034e46 gatt-example: Use adapter driver to register GATT attributes
GATT servers should register their attributes on each adapter when it is
plugged instead of doing that when the plugins is loaded. This patch
registers a new adapter driver to manage plug and unplug events in order
to register attributes in each GATT served managed in each adapter.
2011-12-30 12:57:33 +02:00
Santiago Carot-Nemesio
b84ab528c8 attrib-server: Mark attrib_channel_detach as deprecated
All public attrib-server functions are marked as deprecated until they
expose adapter facilities to operate with. This is a transactional patch
toward multiple adapter support is implemented.  All those functions use
default adapter in order to keep backward compatibility.
2011-12-30 12:57:06 +02:00
Santiago Carot-Nemesio
42de9841d4 attrib-server: Remove global database list
Each server use its own databa list to manage handlers so all operations
should managed separately by each GATT server instead of using a global
handler list.
2011-12-30 12:56:30 +02:00
Santiago Carot-Nemesio
28abb22b4b attrib-server: Remove global le_io variable
Get ride of the global low energy channel in order to use the low
energy channel managed in each server.
2011-12-30 12:56:15 +02:00
Santiago Carot-Nemesio
7606d74e2d attrib-server: Attach attrib_channel in adapter clients list
This patch attaches attribute channels to the gatt server list instead
of using the global client list. Furthermore, we use the GATT server
started in the default adapter when attrib_channel_detach is invoked in
order to keep backward compatibility until the interface is updated to
accept the adapter too.
2011-12-30 12:55:46 +02:00
Santiago Carot-Nemesio
874fc31a04 attrib-server: Add attributes in adapter database
Each server has its own database so the global database list will be
removed. This patch makes a wrapper over attrib_db_add function to get
the default GATT server in order to add attributes in the default
adapter, int his way we keep backward compatibility with the gatt server
interface until the API is updated.
2011-12-30 12:55:09 +02:00
Santiago Carot-Nemesio
d4a259f18c attrib-server: Register GATT SDP record per each adapter
Each server has its own SDP registry wich will be managed separately.
Furthermore, this patch makes a wrapper over attrib_create_sdp function
using the default GATT server started in thye default adapter in order
to keep backward compatibility with the gatt server interface until the
api is finally updated.
2011-12-30 12:54:43 +02:00
Santiago Carot-Nemesio
896573b566 attrib-server: Initial steps towards multi-adapter GATT server support
We need neither to init nor stop gatt server whenever the demon
starts and finishes the execution, instead of doing that, we init
or stop the GATT server when the adapter is initialized or removed.
2011-12-30 12:53:56 +02:00
Johan Hedberg
ddaf4b475f hciops: Fix integer type for Class of Device 2011-12-28 23:00:46 +02:00
Yegor Yefremov
3819e1a6bb add tools to include folder list
adding tools to include folder list avoids out-of-source build
breakage
2011-12-28 09:37:09 -08:00
Yegor Yefremov
a6aa83466a fix link creation for out-of-source builds 2011-12-28 09:36:53 -08:00
Johan Hedberg
cac78035f1 Remove useless btd_event_bonding_complete function 2011-12-28 16:34:40 +02:00
Johan Hedberg
2a8c76faaf Move name resolving control into hciops
Due to the way legacy name resolving is handled for the mgmt interface
the entire logic that was previously part of the core daemon needs to be
moved into hciops. Essentially hciops now contains what the mgmt code
in the kernel will do when mgmtops is used.
2011-12-28 16:15:31 +02:00
Johan Hedberg
9a1006eebc hciops: Fix passing correct bdaddr pointer to oob lookups 2011-12-28 11:13:13 +02:00
Marcel Holtmann
bf5d45f2fb build: Move libcheck under TEST conditional 2011-12-27 20:09:56 -08:00
DoHyun Pyun
ec632165d6 adapter-api: Fix incorrect spelling
This patch fixes incorrect spelling.
2011-12-27 12:06:59 +02:00
Radoslaw Jablonski
df62dbb69b audio: Use headset_shutdown in headset_setconf_cb
If pending connection will stay after state has been changed to
HEADSET_STATE_DISCONNECTED, then crash may happen (e.g. when hs_connect
will be called quickly again after that) To avoid that kind of problems
using headset_shutdown, which does necessary cleanup first (finalizes
pending connections) and after that changes state to
HEADSET_STATE_DISCONNECTED.
2011-12-27 12:06:15 +02:00
Claudio Takahasi
d6f93380ff attrib-client: Fix consecutive set value when disconnected
SetProperty for "Value" property needs to be queued when disconnected.
Registering ATTIO connection callback does not mean that the link is
established, GAttrib instance is assigned in the connection callback.
2011-12-27 12:05:20 +02:00
Claudio Takahasi
f583bef247 attrib-client: Fix GAttrib reference counting
Although ATT connection callbacks control GAttrib reference, each
entity using GAttrib should be increment the GAttrib reference to
keep the code standard.
2011-12-27 12:04:49 +02:00
Claudio Takahasi
6e4a000cab attrib-client: Remove unused SDP header includes 2011-12-27 12:03:19 +02:00
Johan Hedberg
632164a86b Clean up name resolving state handling 2011-12-23 14:20:11 +02:00
Johan Hedberg
b06899eace Fix device address type tracking 2011-12-23 13:00:55 +02:00
Marcel Holtmann
214087d7de Release 4.97 2011-12-22 17:39:07 -08:00
Marcel Holtmann
d223feb814 Update library version 2011-12-22 17:16:25 -08:00