summaryrefslogtreecommitdiff
path: root/profiles/scanparam
Commit message (Collapse)AuthorAgeFilesLines
* build: Replace use of g_memdup with util_memdupLuiz Augusto von Dentz2022-01-061-2/+2
| | | | | | | | | | | This replaces the uses of g_memdup with util_memdup since the former has been deprecated: warning: ‘g_memdup’ is deprecated: Use 'g_memdup2' instead [-Wdeprecated-declarations] g_memdup2 requires bumping glib version which would likely have its own problems thus why util_memdup was introduced.
* core: Rename hcid.h to btd.hLuiz Augusto von Dentz2020-10-291-1/+1
| | | | | Since we use btd term for daemon APIs it makes sense to use it also for the header name instead of hcid.
* core: Rename main_opts to btd_optsLuiz Augusto von Dentz2020-10-291-4/+4
| | | | Use btd_ prefix since this is a daemon API.
* core: Split LE and BR/EDR parametersLuiz Augusto von Dentz2020-10-291-4/+4
| | | | | This splits LE and BR/EDR config parameters and checks main_conf.mode when parsing them.
* profiles: Add SPDX License IdentifierTedd Ho-Jeong An2020-09-213-42/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch adds SPDX License Identifier and removes the license text. ------------------------------------- License COUNT ------------------------------------- GPL-2.0-or-later : 72 LGPL-2.1-or-later : 6 License: GPL-2.0-or-later profiles/deviceinfo/dis.c profiles/deviceinfo/deviceinfo.c profiles/health/hdp_types.h profiles/health/mcap.c profiles/health/hdp_manager.c profiles/health/hdp_main.c profiles/health/mcap.h profiles/health/hdp_util.h profiles/health/hdp_manager.h profiles/health/hdp_util.c profiles/health/hdp.c profiles/health/hdp.h profiles/network/server.c profiles/network/connection.h profiles/network/connection.c profiles/network/manager.c profiles/network/bnep.c profiles/network/server.h profiles/network/bnep.h profiles/battery/battery.c profiles/cups/cups.h profiles/cups/sdp.c profiles/cups/main.c profiles/cups/spp.c profiles/cups/hcrp.c profiles/scanparam/scpp.c profiles/scanparam/scan.c profiles/audio/transport.h profiles/audio/avdtp.h profiles/audio/source.c profiles/audio/player.c profiles/audio/avctp.c profiles/audio/control.h profiles/audio/a2dp.c profiles/audio/source.h profiles/audio/transport.c profiles/audio/sink.c profiles/audio/avrcp.h profiles/audio/avdtp.c profiles/audio/a2dp.h profiles/audio/avrcp.c profiles/audio/media.h profiles/audio/avctp.h profiles/audio/control.c profiles/audio/sink.h profiles/audio/player.h profiles/audio/media.c profiles/sap/server.c profiles/sap/sap-dummy.c profiles/sap/main.c profiles/sap/sap.h profiles/sap/manager.c profiles/sap/server.h profiles/sap/manager.h profiles/iap/main.c profiles/gap/gas.c profiles/midi/midi.c profiles/midi/libmidi.c profiles/midi/libmidi.h profiles/input/server.c profiles/input/suspend.h profiles/input/uhid_copy.h profiles/input/device.c profiles/input/hog.c profiles/input/device.h profiles/input/hidp_defs.h profiles/input/manager.c profiles/input/suspend-none.c profiles/input/sixaxis.h profiles/input/hog-lib.c profiles/input/suspend-dummy.c profiles/input/server.h License: LGPL-2.1-or-later profiles/deviceinfo/dis.h profiles/battery/bas.h profiles/battery/bas.c profiles/scanparam/scpp.h profiles/audio/a2dp-codecs.h profiles/input/hog-lib.h
* scanparam: Use configured values when availableAlain Michaud2020-07-011-4/+11
| | | | | This patch updates the scan parameter service to use the configured scan parameters when available rather than the hardcoded kernel defaults.
* gap: scanparam: Use bt_gatt_client_cloneLuiz Augusto von Dentz2016-11-281-1/+1
| | | | | Use bt_gatt_client_clone instead of bt_gatt_client_ref as that can track requests per clone instead of using the core reference.
* scanparam: Implement disconnect callbackLuiz Augusto von Dentz2016-09-081-9/+22
| | | | | This implements the profile disconnect callback using it to cleanup existing references of bt_gatt_client and gatt_db.
* scanparam: Make use of service user_data to store service contextLuiz Augusto von Dentz2016-09-081-27/+8
| | | | | | Instead of storing service context data in a list this make use of btd_service_set_user_data to store the context data which later can be retrieved with btd_service_get_user_data.
* scanparam: Fix not handling accept properlyLuiz Augusto von Dentz2016-09-081-1/+11
| | | | | | On accept the profile shall check about existing attribute, etc and once done call btd_service_connecting_complete updating the service state properly.
* shared/gatt-db: Extend gatt_db_attribute_get_char_data with ext. propŁukasz Rymanowski2016-04-221-1/+1
| | | | | This patch adds way to get extended properties from characteristic extended property descriptor
* scpp: Move code from android to profilesLuiz Augusto von Dentz2015-11-132-0/+390
| | | | | This is a place holder until the code is ported to use shared API so it can be shared by android and D-Bus daemon.
* profiles/scanparam: rewrite scanparam profileJakub Pawlowski2015-10-251-124/+132
| | | | | This patch rewrites scanparam profile. It will no longer trigger autoconnect.
* profiles: Use local libbluetooth includesMarcel Holtmann2015-02-281-0/+2
|
* profiles: Add explicit include for lib/bluetooth.hMarcel Holtmann2015-02-181-0/+1
|
* lib/uuid: Add define for Scan Parameter UUIDLuiz Augusto von Dentz2014-06-271-2/+0
|
* scan: Discover CCC using gatt_discover_descAndrzej Kaczmarek2014-05-051-21/+13
|
* Replace att_put_u16() by put_le16()Claudio Takahasi2014-03-241-3/+3
|
* Replace att_get_u16() by get_le16()Claudio Takahasi2014-03-241-2/+3
|
* profiles: Use full include path for header filesMarcel Holtmann2014-01-251-7/+7
|
* attrib: Modify gatt_cb_t signatureAnderson Lizardo2014-01-111-4/+3
| | | | | | Use standard C types instead of GLib ones (which are unnecessary here) and move the "status" parameter to the first position, so it is consistent with other callbacks.
* scanparam: Remove unneeded header includeClaudio Takahasi2013-07-301-2/+0
|
* scanparam: Apply convention for "GSource id" like variableAnderson Lizardo2013-07-301-2/+2
| | | | | | | | | | By convention, BlueZ code checks for "Gsource id" like variables using: if (source_id > 0) ... Also fix the variable type to match that returned by g_attrib_unregister().
* scanparam: Fix missing check for valid GAttrib when removing deviceAnderson Lizardo2013-07-301-1/+1
| | | | | | | If device is removed while there is no connection, scan->attrib will be NULL, because its reference is managed by attio connect/disconnect callbacks. This means that on disconnect any resources owned by GAttrib will be properly destroyed.
* scanparam: Remove unnecessary assignmentAnderson Lizardo2013-07-301-3/+1
| | | | | "scan" will be g_free()'d on this same function, so no need to assign 0 to refresh_cb_id.
* scanparam: Fix handle range check on descriptor discoveryAnderson Lizardo2013-07-301-1/+1
| | | | | | | | | When discovering descriptors, if there is only a single descriptor, the start handle will be equal to the end handle. It is valid to issue the Find Information Request on this case. Before this fix, notification for Scan Refresh characteristic was never enabled.
* attrib: Do not use Write Command in gatt_write_char()Anderson Lizardo2013-07-241-1/+1
| | | | | | | | | | | | | Previously, if no callback was given to gatt_write_char(), it was assumed that a "Write Without Response" (which uses Write Command) should be used instead of Write Request. This "shortcut" is unnecessary (there is gatt_write_cmd() for the situations where Write Without Response is required) and just duplicates code. This commit also fixes the few places where gatt_write_cmd() should be used.
* attrib: Rename gatt_find_info() to gatt_discover_char_desc()Anderson Lizardo2013-07-241-2/+2
| | | | | | The old name referred to the underlying ATT PDU (Find Information Request and Find Information Response) and not to the actual GATT procedure (Discover All Characteristic Descriptors).
* scanparam: Use btd_service userdata pointerMikel Astiz2013-06-241-30/+6
| | | | | Avoid maintaining an internal list of probed struct scan instances by making use of btd_service's userdata pointer.
* scanparam: Get rid of gintLucas De Marchi2013-05-011-1/+1
| | | | | Use plain int instead of gint. In glib gint is always a typedef to int, so it's safe to use it even for callbacks with glib.
* profile: Use btd_service for probing profilesMikel Astiz2013-04-261-2/+6
| | | | | | | | | | | | | | Change the profile probe mechanism in order to pass the btd_service instance representing the remote service. This object is bound to a btd_profile and a btd_device, thus replacing the previous parameters. The probe callback is allowed to hold a reference to the btd_service by means of btd_service_ref(), which should be unreferenced during removal. Keeping such a reference of the btd_service allows supporting multiple instances of the same UUID, since the reference can serve as a handle during the interactions between the profile implementation and the core.
* profile: Remove UUID list from probe functionMikel Astiz2013-04-261-2/+1
| | | | | | Each instance of btd_profile is associated to one single remote UUID and therefore the list provided by the callback is redundant and can be removed.
* profile: Limit to one remote UUID per profileMikel Astiz2013-03-101-1/+1
| | | | | The code can be considerably simplified by constraining struct btd_profile to one single remote UUID.
* scanparam: Fix remaining references to bluetooth/uuid.hAnderson Lizardo2013-01-101-1/+1
| | | | These headers are not public anymore, so need to use "lib/uuid.h".
* profiles: Make use of btd_device_get_primaryJohan Hedberg2012-12-141-15/+4
|
* scanparam: Remove left-over main.c fileJohan Hedberg2012-12-141-50/+0
|
* scanparam: Remove useless filesJohan Hedberg2012-12-144-147/+58
|
* Revert "Ensure config.h is included by using CPPFLAGS"Johan Hedberg2012-12-073-0/+12
| | | | | | | | | | | | | | This reverts commit 8a03376544b046a84301847d1594f6c3674983ff. The patch needs to be split up and the gdbus/ changes were bogus compared to the original commit message. Conflicts: Makefile.am Makefile.obexd profiles/cyclingspeed/cyclingspeed.c profiles/heartrate/heartrate.c src/error.c
* Ensure config.h is included by using CPPFLAGSLucas De Marchi2012-12-053-12/+0
| | | | | | | | | | Instead of trying to include config.h in each file over the tree and possibly forgetting to include it, give a "-include config.h" argument to the compiler so it's guaranteed that a) it will be included for all source files and b) it will be the first header included. gdbus/ directory is left out, since it would break other projects using it.
* build: Remove stupid -I directivesMarcel Holtmann2012-11-202-6/+6
|
* profiles: Remove GATT enable optionMarcel Holtmann2012-11-091-5/+0
|
* scan: Use the per handle GATT event notifierVinicius Costa Gomes2012-10-111-13/+2
|
* gattrib: Add support for listening for events for specific handlesVinicius Costa Gomes2012-10-111-2/+2
| | | | | | We want only the profile that implements a service to be notified of changes on that service. Before this patch, all the registered event notifiers are being called.
* scanparam: Fix servers list to be staticJohan Hedberg2012-09-281-1/+1
|
* scan: Avoid discover if scan handle is knownClaudio Takahasi2012-09-281-2/+7
| | | | | This patch avoids the characteristic discovery for Scan Interval Window if the attribute value handle was discovered on a previous interaction.
* scan: Write parameters when requestedClaudio Takahasi2012-09-281-8/+18
| | | | | | | This patch implements the update procedure of the scan parameters when the Scan Server requests. The Scan Refresh characteristic is used to inform the Scan Client(BlueZ) that the Scan Server requires the most recent scan settings.
* scan: Register notification handlerClaudio Takahasi2012-09-281-1/+35
| | | | | This patch registers the GAttrib notification handler for Refresh Characteristic notification.
* scan: Enable Scan Refresh notificationClaudio Takahasi2012-09-281-1/+80
| | | | | This patch discovers the Scan Refresh Characteristic handle and sets it's Client Characteristic Configuration bit to enable notifications.
* scan: Add write scan interval windowClaudio Takahasi2012-09-281-0/+41
| | | | | | This patch adds the handle discovery of the Scan Interval Window Characteristic and writes the default value (hard-coded in the kernel) of the scan interval, and scan window in the remote's characteristic.
* scan: Add ATTIO callbacks registrationClaudio Takahasi2012-09-283-1/+156
| | | | | | | | This patch add the functions to manage ATTIO callbacks. The current registration mechanism is not suitable for this service since it needs to be passive. Scan Parameters should not actively request connections, it needs to be notified if the connections has been established requested by other services.