Commit Graph

9198 Commits

Author SHA1 Message Date
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
Johan Hedberg
26495f6734 Fix size_t format specifiers 2011-12-19 14:35:03 +02:00
Johan Hedberg
5e837c7943 btmgmt: Add basic confirm_name support 2011-12-19 14:15:53 +02:00
Johan Hedberg
34b08317ae mgmt: Update confirm_name definitions to match API specification 2011-12-19 14:14:57 +02:00
Johan Hedberg
78da89d0c8 mgmt-api: Update Confirm Name return parameters 2011-12-19 14:14:30 +02:00
Johan Hedberg
2bad4b6545 btmgmt: Print confirm_name info for device_found events 2011-12-19 13:54:33 +02:00
Johan Hedberg
4d155a809b mgmtops: Check for exact mgmt_device_found event size 2011-12-19 13:53:07 +02:00
Johan Hedberg
42a03e1c6f mgmtops: Implement mgmt_confirm_name 2011-12-19 13:30:23 +02:00
Johan Hedberg
0c6f4b692c Add initial hooks to pass confirm_name info around 2011-12-19 13:25:54 +02:00
Hemant Gupta
e8c8ec2cac mgmt: Add support for Passkey handling
This patch adds support for handling Passkey Requests and response over
management interface.
2011-12-15 16:20:55 +02:00
Santiago Carot-Nemesio
9942e6a50d hdp: Fix memory leak aborting data channel connections
Use GDestroyNotify function to decrease the reference counter of
the data channel provided in the callback when abort operation is
invoked in MCAP.
2011-12-15 16:13:16 +02:00
Santiago Carot-Nemesio
e1ec45678e hdp: Delay ChannelConnected signal
This signal is sent before channel is connected as soon as MCAP accepts
the data channel creation request. At this moment, applications that
try to get the fd before the connection finishes will fail. This problem
can be solved delaying the ChannelConnection signal until the connection
operation finishes.
2011-12-15 16:12:28 +02:00
Johan Hedberg
7c9d6a2478 health: Fix ordering of includes 2011-12-15 16:07:52 +02:00
Santiago Carot-Nemesio
8ab04c63a6 mcap_sync: fix import statements 2011-12-15 15:57:44 +02:00
Santiago Carot-Nemesio
a7990d8ff6 thermometer: Use system types instead of glib ones 2011-12-15 13:24:26 +02:00
Santiago Carot-Nemesio
3cda922eea thermometer: Fix bad read operation when time stamp is not provided
Time stamp value is an optional field provided in the measure, so next
value in the array will start in a different index depending if the time
stamp was provided or not. This patch check this case and update the
index to a proper value in the byte array before reading the temperature
type value.
2011-12-15 13:24:23 +02:00
Santiago Carot-Nemesio
726dc13a33 thermometer: Fix possible NULL pointer deference
This patch checks the GATT server is connected before doing any GATT
transaction. If it isn't, we abort the operation to avoid the NULL
pointer deference problem.
2011-12-15 13:24:21 +02:00
Santiago Carot-Nemesio
3ff4427f39 thermometer: Process measurement interval indications
This patch emits PropertyChange signal whenever a new value is set in
the measurement interval characteristic.
2011-12-15 13:24:18 +02:00
Santiago Carot-Nemesio
c275bde366 thermometer: Configure C.C.C descriptor during thermometer configuration
This patch enables notification/indication in GATT server if there are
any watcher regitered for measurements when the thermometer is
configured.
2011-12-15 13:23:37 +02:00
Santiago Carot-Nemesio
563ef8324c thermometer: Implement SetProperty D-Bus method 2011-12-15 13:23:29 +02:00
Santiago Carot-Nemesio
110f1830d7 att.h: Add client characteristic configuration bit fields 2011-12-15 13:16:51 +02:00
Johan Hedberg
e7f5c5175b mgmt: Move Set Local Name to it's logical position in the API 2011-12-14 23:03:35 +02:00
Johan Hedberg
f60a1b5fee mgmt: Update implementation to match latest API spec 2011-12-14 14:21:46 +02:00
Johan Hedberg
89ae2d2c0f mgmt: Update read_info & related messages to match the API spec 2011-12-14 14:21:36 +02:00
Johan Hedberg
538346af2d mgmt-api: Update to match latest plans 2011-12-14 14:21:21 +02:00
Johan Hedberg
6910bb809b mgmt-api: Add missing changes to the mgmt messages
Some changes were missing from the previous patch. This moves the fast
connectable command to the right place, adds a Class_Of_Device parameter
to Set UUID Caching (renamed from Set Service Cache) and adds a Class Of
Device Changed event.
2011-12-09 13:11:58 +02:00
Johan Hedberg
0d552f113e mgmt-api: Update to current plans
This patch updates the mgmt API to match the current plans. This is
hopefully the last major change and because of that the command and
event codes are also reshuffled to match some kind of a logical
ordering.
2011-12-08 16:10:10 +02:00
Santiago Carot-Nemesio
0f238b05ba hdp: Fix coding style issues 2011-12-08 14:40:49 +02:00
Santiago Carot-Nemesio
6091d31588 hdp_manager: Fix coding style issues 2011-12-08 14:40:39 +02:00