summaryrefslogtreecommitdiff
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* mgmt: Add string for Passkey Notify EventChan-yeol Park2012-10-041-0/+1
|
* lib: Add GoepL2capPsm SDP attribute defineJohan Hedberg2012-10-031-0/+1
|
* lib: Add SPP UUID defineJohan Hedberg2012-10-021-0/+2
|
* lib: Add some missing svclass valuesJohan Hedberg2012-10-021-0/+5
|
* heartrate: Discover HRS characteristicsAndrzej Kaczmarek2012-09-281-0/+3
| | | | | This patch adds support to discover known Heart Rate Service characteristics.
* heartrate: Add initial HRP client supportRafal Garbat2012-09-281-0/+2
| | | | | This patch adds initial support for the Heart Rate Profile client. Profile driver is registered to keep track of adapters and devices.
* sdp: Use bt_get_be* helpers instead of bt_get_unalignedSzymon Janc2012-09-051-18/+18
| | | | | | | | | | | | | | This fix number of compilation errors on ARM similar to one below. lib/sdp.c: In function 'sdp_uuid_extract': lib/sdp.c:1019:27: error: cast increases required alignment of target type [-Werror=cast-align] lib/sdp.c:1019:27: error: cast increases required alignment of target type [-Werror=cast-align] lib/sdp.c:1026:27: error: cast increases required alignment of target type [-Werror=cast-align] lib/sdp.c:1026:27: error: cast increases required alignment of target type [-Werror=cast-align]
* sdp: Fix compilation errors due to unaligned memory accessSzymon Janc2012-09-051-15/+15
| | | | | | | | | | | | | | This fix number of build errors on ARM similar to one below. lib/sdp.c: In function 'sdp_set_seq_len': lib/sdp.c:625:3: error: cast increases required alignment of target type [-Werror=cast-align] lib/sdp.c:625:3: error: cast increases required alignment of target type [-Werror=cast-align] lib/sdp.c:631:3: error: cast increases required alignment of target type [-Werror=cast-align] lib/sdp.c:631:3: error: cast increases required alignment of target type [-Werror=cast-align]
* lib: Add unaligned put helper functionsSzymon Janc2012-09-051-0/+61
| | | | These functions are similar to bt_get_* functions.
* mgmt: Implement support for Passkey Notify eventJohan Hedberg2012-09-041-0/+7
|
* uuid: Add string-format UUID comparison helper functionJohan Hedberg2012-09-032-0/+7
|
* sdp: Fix error reporting in sdp_service_search_attr_reqSzymon Janc2012-08-281-1/+2
| | | | This function reports error code via errno not return value.
* Fix trivial coding style issues on pointer declarations and castingAnderson Lizardo2012-08-261-2/+2
| | | | | Avoid using C++ style pointer declarations like "char* ptr", as most BlueZ code uses "char *ptr".
* mgmt: Add reason to device disconnect eventMikel Astiz2012-08-171-0/+6
| | | | | Extend the management API with the disconnect reason, as now reported by the Kernel in MGMT_EV_DEVICE_DISCONNECTED.
* lib: Add new company identifiersJefferson Delfes2012-08-161-0/+40
|
* lib: Rename GAP UUIDClaudio Takahasi2012-08-161-1/+1
| | | | | Cosmetic patch changing the GAP UUID declaration to follow the same standard of the others GATT based services.
* Fix not setting class of device in adapterSzymon Janc2012-07-301-0/+4
| | | | | Set class of device in adapter when new class is received from kernel. This fix adapters property Class being always zero.
* lib: Correct length name in write assoc structAndrei Emeltchenko2012-07-191-1/+1
| | | | Correct name from assoc_length to remaining_length.
* lib: Add headers for AMP ASSOC dataAndrei Emeltchenko2012-06-282-38/+172
|
* lib/sdp.c: Prevent passing unitialised argumentSlawomir Bochenski2012-06-281-4/+8
| | | | | In case of sdp_seq_alloc() failures in loop, unitialised seqDTDs would be passed to final sdp_seq_alloc.
* core: Move UUID string definition to libDaniel Wagner2012-06-021-0/+3
|
* pnat: Move UUID string definition to libDaniel Wagner2012-06-021-0/+2
|
* input: Move UUID string definition to libDaniel Wagner2012-06-021-0/+3
|
* health: Move UUID string definition to libDaniel Wagner2012-06-021-0/+4
|
* serial: Move UUID string definition to libDaniel Wagner2012-06-021-0/+2
|
* thermometer: Move UUID string definition to libDaniel Wagner2012-06-021-0/+6
|
* sap: Move UUID string definition to libDaniel Wagner2012-06-021-0/+2
|
* proximity: Move UUID string definition to libDaniel Wagner2012-06-021-0/+5
|
* deviceinfo: Move UUID string definition to libDaniel Wagner2012-06-021-0/+3
|
* network: Move UUID string definition to libDaniel Wagner2012-06-021-0/+5
|
* audio: Move UUID string definition to libDaniel Wagner2012-06-021-0/+16
|
* sdp: Remove unused BASE_UUID definitionDaniel Wagner2012-06-021-2/+0
|
* sdp/build: Build fails when SDP_DEBUG enabledArek Lichwa2012-05-231-2/+1
| | | | Enabling SDP_DEBUG prevents build to be done.
* sdp: Remove unnecessary memset()Anderson Lizardo2012-05-181-1/+0
| | | | | The memory referenced by "u" pointer is initialized right after the memset() call.
* lib: Add definitions for AMP Assoc dataAndrei Emeltchenko2012-05-161-0/+38
| | | | Definitions are needed for decoding A2MP Assoc Rsp.
* lib: Fix tab misuseAnderson Lizardo2012-05-102-2/+2
|
* Remove MGMT address type definitionClaudio Takahasi2012-04-251-5/+0
| | | | | This patch replaces the address type defined in management interface header by the new address type constants defined in the bluetooth.h.
* Add Bluetooth address type in sockaddr_l2Claudio Takahasi2012-04-252-0/+6
| | | | | | This patch adds the address type information to sockaddr_l2 structure, allowing the userspace to inform the remote address type required for LE Create Connection command.
* sdp: Fix compilation warning due to data type mismatchSyam Sidhardhan2012-04-161-1/+1
| | | | | | | | | | | | In certain cross compiling environment, if we build the code with enabling the maintainer mode, the following error happens. cc1: warnings being treated as errors lib/sdp.c: In function 'sdp_process': lib/sdp.c:4111:6: error: comparison between signed and unsigned integer expressions make[2]: *** [lib/sdp.lo] Error 1 make[1]: *** [all] Error 2
* mgmt: update mgmt control channel idGustavo Padovan2012-04-051-1/+1
| | | | kernel side has updated its control channel id from 1 to 3.
* Fix common spelling error in code and commentsSzymon Janc2012-03-301-7/+7
| | | | Correct spelling is "incoming" not "incomming".
* Move common code to sdp to avoid duplicationSzymon Janc2012-03-282-0/+15
| | | | | | LanguageBaseAttributeIDList is set from few places and each time static function was copied and used for that. Move this funtion to sdp code and use that instead of copying code.
* mgmtops: Add support for setting Device IDSzymon Janc2012-03-281-0/+9
|
* sdp: Fix sdp_get_profile_descs for Mac Os X LionFrédéric Dalleau2012-03-271-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Mac OS X 10.7.3 publishes the following SDP record for HFP Gateway. record #2 aid 0x0000 (SrvRecHndl) uint 0x10003 aid 0x0001 (SrvClassIDList) < uuid-16 0x111f (Handsfree AG) uuid-16 0x1203 (Audio) > aid 0x0004 (ProtocolDescList) < < uuid-16 0x0100 (L2CAP) > < uuid-16 0x0003 (RFCOMM) uint 0x2 > > aid 0x0005 (BrwGrpList) < uuid-16 0x1002 (PubBrwsGrp) > aid 0x0006 (LangBaseAttrIDList) < uint 0x656e uint 0x6a uint 0x100 > aid 0x0009 (BTProfileDescList) < uuid-16 0x111e (Handsfree) uint 0x105 > aid 0x0100 (SrvName) str "Hands Free Audio Gateway" aid 0x0301 (SuppDataStoresList) uint 0x0 aid 0x0311 (SuppFeatures) uint 0x0 BlueZ do not read correctly the version number of the profile. The patch fixes this. From my understanding, the SDP profile descriptor is a list. The for loop in sdp_get_profile_desc iterates that list. Until now, bluez expected a collection of either uuid or lists with a uuid and a version number. This can be represented as follow: list=(uuid, uuid, (uuid, version)) The patch fixes the situation where the profile descriptor list contains a uuid AND a version number both on the root level and not enclosed in a sublist. If the next item after uuid is uint16, then this is the version number. This can be represented as follow: list=(uuid, uuid, version, uuid, (uuid, version)) Note that core v4.0 spec. states that the Profile Descriptor list is a data sequence of profile descriptors. Each profile descriptor is a data sequence whose first element is a UUID and second element is a version number. This can be represented as follow: list=((uuid, version), (uuid, version))
* sdp: Check type of sdp data before dereferencingFrédéric Dalleau2012-03-132-1/+2
|
* lib: Update company identifiersMarcel Holtmann2012-03-061-0/+24
|
* lib: Add A2MP definitionsPeter Krystad2012-03-051-0/+115
|
* lib: Fix compile issue when using in C++Patrick Ohly2012-03-041-2/+2
| | | | | | | | | | | | | | | | The compiler error is: /usr/include/bluetooth/bluetooth.h::131:9: error: invalid conversion from 'void*' to 'bt_get_le64(void*)::<anonymous struct>*' ... The reason is that C++, in contrast to C, does not allow conversion of void * to anything, and this code gets compiled as C++ when the app is written in C++. The macro with the assignment itself is older, but only recent Bluez starts to use it in inline functions, thus triggering the problem. This patch keeps the "struct __attribute__((packed))" magic and merely changes the typecast so that it works in C and C++. Like the existing macro this patch relies on support for typeof.
* mgmt: Add missing error code definitionsJohan Hedberg2012-03-021-0/+4
|
* mgmt: Move string helpers to lib/mgmt.cJohan Hedberg2012-03-021-0/+113
|