summaryrefslogtreecommitdiff
path: root/profiles/deviceinfo
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.
* 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
* dis: Fix attribute handle when initializing from dbJuha Kuikka2017-02-251-1/+20
| | | | | | | The handle field in struct bt_dis is initialized to the handle of the DIS gatt service. It should be the value handle of the PNP ID characteristic. This patch fixes the issue.
* dis: Add support to gatt-dbLuiz Augusto von Dentz2016-12-292-3/+45
| | | | | | This add support of passing a gatt-db to avoid having to discover the services again, this should also make it easier to port to bt_gatt_client once Android code support it.
* deviceinfo: Use shorter names for profile callbackLuiz Augusto von Dentz2016-09-121-6/+6
|
* deviceinfo: Implement disconnect callbackLuiz Augusto von Dentz2016-09-121-0/+8
| | | | | This implements the profile disconnect so the service state is updated properly.
* deviceinfo: Fix not handling accept properlyLuiz Augusto von Dentz2016-09-121-0/+2
| | | | | | 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
* dis: Move code from android to profilesLuiz Augusto von Dentz2015-11-132-0/+332
| | | | | 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/deviceinfo: rewrite deviceinfo profileJakub Pawlowski2015-10-251-105/+57
| | | | | | This patch include new version of deviceinfo profile. It is now not triggering autoconnect. It's also using accept callback instead of btd_device_add_attio_callback.
* deviceinfo: Enable external flagLuiz Augusto von Dentz2015-10-131-0/+1
| | | | This enable attributes to be accessed over D-Bus.
* profiles: Use local libbluetooth includesMarcel Holtmann2015-02-281-0/+2
|
* profiles: Add explicit include for lib/bluetooth.hMarcel Holtmann2015-02-181-0/+1
|
* 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-2/+2
| | | | | | 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.
* deviceinfo: Use btd_service userdata pointerMikel Astiz2013-06-241-40/+6
| | | | | Avoid maintaining an internal list of probed deviceinfo instances by making use of btd_service's userdata pointer.
* deviceinfo: 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-4/+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.
* profiles: Fix includes for uuid.hMarcel Holtmann2013-01-091-1/+1
|
* profiles: Make use of btd_device_get_primaryJohan Hedberg2012-12-141-16/+2
|
* deviceinfo: Remove leftover main.c fileJohan Hedberg2012-12-141-47/+0
|
* deviceinfo: Remove useless filesJohan Hedberg2012-12-144-136/+59
|
* Revert "Ensure config.h is included by using CPPFLAGS"Johan Hedberg2012-12-072-0/+8
| | | | | | | | | | | | | | 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-052-8/+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.
* device: Add btd_ prefix to device_set_pnpid()Vinicius Costa Gomes2012-11-261-1/+1
| | | | | As device_set_pnpid() is used inside a plugin it should have the btd_ prefix.
* build: Remove stupid -I directivesMarcel Holtmann2012-11-202-6/+6
|
* profiles: Remove GATT enable optionMarcel Holtmann2012-11-091-5/+0
|
* gatt: Remove offset parameter from gatt_read_charJefferson Delfes2012-10-011-1/+1
| | | | | | The Core spec allows to implement Read Long Characteristic Value as a Read Request, followed by zero or more Read Blob Requests, therefore the offset parameter is unnecessary and is always 0 for normal use.
* core: Add profile parameter to adapter and device probe functionsJohan Hedberg2012-09-251-2/+5
| | | | | This is necessary for the external profile implementation (which will have the same callback functions for all external profiles).
* core: Move profile code into profile.{c,h}Johan Hedberg2012-09-111-0/+1
|
* Add profile abstraction (replaces btd_device drivers)Johan Hedberg2012-09-032-7/+10
| | | | | | | | | | | | | | | | | | This patch removes the btd_device_driver concept and replaces it with btd_profile. The new construct also contains the necessary parts for adapter drivers, so btd_adapter_driver is only needed for non-profile related functionality (most of which is in plugins/*). The main purpose of this new construct is to facilitate a centralized connection creation mechanism for profiles, ultimately enabling the addition of a Device.Connect() method instead of requiring a UI to know to call e.g. Input.Connect or Audio.Connect. This feature will also be extended to externally implemented profiles once the internal implementation gets more stable, such as OBEX (obexd) and HFP (oFono). The new D-Bus interface will also partially restore functionality which was previously available through the Serial interface.
* deviceinfo: Remove redundant gattrib includeClaudio Takahasi2012-08-161-1/+0
|
* deviceinfo: move to profiles folderGustavo Padovan2012-07-105-0/+375