summaryrefslogtreecommitdiff
path: root/src/profile.h
Commit message (Collapse)AuthorAgeFilesLines
* profile: Add support for experimental flagLuiz Augusto von Dentz2023-05-151-0/+5
| | | | | This adds experimental field to btd_profile so the plugin can indicate drivers that depends on experimental to be enabled.
* src: Add SPDX License IdentifierTedd Ho-Jeong An2020-09-211-14/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch adds SPDX License Identifier and removes the license text. ------------------------------------- License COUNT ------------------------------------- LGPL-2.1-or-later : 62 GPL-2.0-or-later : 51 BSD-2-Clause : 2 License: LGPL-2.1-or-later src/adv_monitor.c src/adv_monitor.h src/shared/mainloop-glib.c src/shared/btp.c src/shared/tester.c src/shared/btsnoop.c src/shared/gatt-helpers.h src/shared/log.h src/shared/util.h src/shared/mainloop-ell.c src/shared/hci-crypto.c src/shared/mainloop.c src/shared/hfp.h src/shared/mainloop-notify.c src/shared/io-mainloop.c src/shared/btsnoop.h src/shared/uhid.h src/shared/util.c src/shared/ringbuf.c src/shared/btp.h src/shared/shell.h src/shared/io-glib.c src/shared/queue.h src/shared/gatt-server.h src/shared/crypto.c src/shared/crypto.h src/shared/io-ell.c src/shared/timeout-glib.c src/shared/mgmt.c src/shared/gatt-db.c src/shared/mainloop-notify.h src/shared/hfp.c src/shared/timeout-ell.c src/shared/shell.c src/shared/hci.c src/shared/log.c src/shared/ringbuf.h src/shared/gatt-helpers.c src/shared/queue.c src/shared/tty.h src/shared/timeout-mainloop.c src/shared/tester.h src/shared/gap.h src/shared/mgmt.h src/shared/gatt-db.h src/shared/uhid.c src/shared/mainloop.h src/shared/timeout.h src/shared/att-types.h src/shared/pcap.c src/shared/gap.c src/shared/att.c src/shared/pcap.h src/shared/hci.h src/shared/gatt-client.h src/shared/io.h src/shared/gatt-client.c src/shared/ad.c src/shared/att.h src/shared/gatt-server.c src/shared/hci-crypto.h src/shared/ad.h License: GPL-2.0-or-later src/attrib-server.h src/advertising.h src/textfile.c src/attrib-server.c src/uinput.h src/log.h src/eir.h src/sdpd.h src/sdpd-request.c src/service.h src/sdpd-database.c src/adapter.h src/plugin.h src/uuid-helper.h src/plugin.c src/main.c src/sdp-xml.c src/error.h src/oui.c src/device.c src/agent.h src/sdp-client.c src/oui.h src/device.h src/gatt-database.c src/error.c src/backtrace.c src/sdpd-server.c src/adapter.c src/log.c src/agent.c src/backtrace.h src/sdp-xml.h src/hcid.h src/dbus-common.h src/uuid-helper.c src/storage.c src/profile.c src/advertising.c src/storage.h src/dbus-common.c src/profile.h src/sdpd-service.c src/eir.c src/sdp-client.h src/gatt-database.h src/gatt-client.h src/rfkill.c src/gatt-client.c src/service.c src/textfile.h License: BSD-2-Clause src/shared/ecc.h src/shared/ecc.c
* profile: Add exception to battery profile for external accessSonny Sasaka2020-07-171-0/+4
| | | | | This gives exception to battery profile to be shared both internally and externally.
* core/gatt: Cleanup service probeLuiz Augusto von Dentz2015-09-031-0/+1
| | | | | | | | | | | | This cleanup code related to service probe making it use a single function, because of that now all driver must implement device_probe in order for the service probe to work properly. In addition to that a new flag called external was introduced to btd_profile to be possible to distinguish whether it is a internal plugin or external client, this was needed in order to decide if an attribute should be claimed which whould prevent it to be exported over D-Bus.
* core: profile: Add accept functionArman Uguray2014-12-171-0/+2
| | | | | | | | | This patch introduces the "accept" function to btd_profile. The purpose of this function is to notify a profile when a btd_service is ready to interact with and will be called by btd_device when a bt_gatt_client becomes ready (MTU exchange and discovery has been completed). This is initially meant to be optional for non-GATT based profiles but could be generalized for them in the future.
* profile: Use btd_service for connect/disconnectMikel Astiz2013-04-261-4/+2
| | | | | | | | | | | | | | Change the btd_profile connect/disconnect callbacks to receive a btd_service pointer. This should make it possible to handle multiple instances of the same profile in a specific device. The patch strongly influences how the profiles should interact with the core. The state transitions, previously reported using the device.h API (device_profile_connected() and device_profile_disconnected()), have now been replaced by the btd_service API. The transitions will then be propagated to device.c by means of the conventional state-changed callback mechanism.
* profile: Use btd_service for probing profilesMikel Astiz2013-04-261-3/+4
| | | | | | | | | | | | | | 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-3/+1
| | | | | The code can be considerably simplified by constraining struct btd_profile to one single remote UUID.
* core: Fix being able to register the same custom property multiple timesLuiz Augusto von Dentz2012-12-211-1/+1
| | | | | | btd_profile_add_custom_prop should check if the a property with the same name already exists, in addition to that btd_profile_add_custom_prop now returns a boolean indicating the success or failure of the operation.
* core: Fix btd_profile_remove_custom_prop crashLuiz Augusto von Dentz2012-12-211-1/+1
| | | | | In addition add a boolean return to indicate sucess/failure of the operation.
* core: Add btd_profile_remove_custom_prop functionLuiz Augusto von Dentz2012-12-211-0/+1
| | | | | btd_profile_remove_custom_prop should be used when the user_data passed to btd_profile_add_custom_prop is invalidated/destroyed.
* profile: Get rid of not needed btd_profile_cb defineJohan Hedberg2012-12-111-5/+0
|
* profile: Use direct calls for profile connection statesJohan Hedberg2012-12-111-6/+5
| | | | | | | In order to be able to track also remotely initiated connections we cannot have a callback system where device.c passes a function pointer to the profile implementation. Instead we need explicit calls to device.c whenever the connection state changes.
* core: Add connection priority to btd_profileJohan Hedberg2012-11-141-0/+5
|
* core: Move profile registration to Profile Manager interfaceMarcel Holtmann2012-11-091-5/+1
|
* core: Add support for custom Profile.NewConnection propertiesJohan Hedberg2012-11-091-0/+15
|
* core: Add btd_profile parameter to profile disconnect callbackJohan Hedberg2012-10-011-1/+3
|
* core: Add cleanup function for external profilesJohan Hedberg2012-09-251-0/+2
|
* core: Add profile parameter to adapter and device probe functionsJohan Hedberg2012-09-251-4/+8
| | | | | This is necessary for the external profile implementation (which will have the same callback functions for all external profiles).
* core: Add external profile registration callbacksJohan Hedberg2012-09-251-0/+5
|
* core: Remove btd_get_profilesJohan Hedberg2012-09-251-2/+0
|
* core: Add error reporting to profile callbacksJohan Hedberg2012-09-251-5/+5
|
* profile: Add asynchronous completion functions for connect/disconnectJohan Hedberg2012-09-111-2/+8
|
* core: Move profile code into profile.{c,h}Johan Hedberg2012-09-111-0/+50