2020-09-21 19:27:31

by Tedd Ho-Jeong An

[permalink] [raw]
Subject: [BlueZ V4 RESEND 00/20] Add SPDX License Identifier

From: Tedd Ho-Jeong An <[email protected]>

This series adds SPDX License Identifer to the relavant files and
creates LICENSES folder with full text of licenses used by the BlueZ
tree. The following files were updated with SPDX License Identifier:
- Source and header files (.c/.h)
- Build files (Makefile.*)
- Test scripts (python, bash, and etc)

The SDPX License Identifier is added in form of a comment based on file
type with the same rule from the Linxu kernel source, and added to the
first line of the file or the second line after '#!PATH_TO_INTERPRETER'.

C source: // SPDX-License-Identifer: <License id>
C header: /* SPDX-License-Identifer: <License id> */
scripts: # SPDX-License-Identifier: <License id>

For SPDX-License Identifier, it used the identifer from the SPDX License
list page(https://spdx.org/licenses).

For the summary, currently BlueZ sources have following licenses:

-------------------------------------------
License File Count
-------------------------------------------
GPL-2.0-or-later : 403
LGPL-2.1-or-later : 308
BSD-2-Clause : 3
GPL-2.0-only : 5
MIT : 2
Apache-2.0 : 80

Note that these folder/files were ignored:
- .git/
- document files
- configuration files

Tedd Ho-Jeong An (20):
android: Add SPDX License Identifier
attrib: Add SPDX License Identifier
btio: Add SPDX License Identifier
client: Add SPDX License Identifier
emulator: Add SPDX License Identifier
gdbus: Add SPDX License Identifier
gobex: Add SPDX License Identifier
lib: Add SPDX License Identifier
mesh: Add SPDX License Identifier
monitor: Add SPDX License Identifier
obexd: Add SPDX License Identifier
peripheral: Add SPDX License Identifier
plugins: Add SPDX License Identifier
profiles: Add SPDX License Identifier
unit: Add SPDX License Identifier
src: Add SPDX License Identifier
tools: Add SPDX License Identifier
build: Add SPDX License Identifier
test: Add SPDX License Identifier
LICENSES: Add License files

LICENSES/dual/Apache-2.0 | 187 +++++++++++
LICENSES/preferred/BSD-2-Clause | 32 ++
LICENSES/preferred/GPL-2.0 | 354 ++++++++++++++++++++
LICENSES/preferred/LGPL-2.1 | 503 +++++++++++++++++++++++++++++
LICENSES/preferred/MIT | 30 ++
Makefile.am | 2 +-
Makefile.mesh | 1 +
Makefile.obexd | 1 +
Makefile.plugins | 2 +-
Makefile.tools | 2 +-
android/a2dp-sink.c | 15 +-
android/a2dp-sink.h | 15 +-
android/a2dp.c | 15 +-
android/a2dp.h | 15 +-
android/audio-msg.h | 15 +-
android/audio_utils/resampler.c | 12 +-
android/audio_utils/resampler.h | 12 +-
android/avctp.c | 15 +-
android/avctp.h | 15 +-
android/avdtp.c | 15 +-
android/avdtp.h | 15 +-
android/avdtptest.c | 15 +-
android/avrcp-lib.c | 15 +-
android/avrcp-lib.h | 15 +-
android/avrcp.c | 15 +-
android/avrcp.h | 15 +-
android/bluetooth.c | 15 +-
android/bluetooth.h | 15 +-
android/bluetoothd-snoop.c | 15 +-
android/bluetoothd-wrapper.c | 13 +-
android/client/haltest.c | 13 +-
android/client/history.c | 13 +-
android/client/history.h | 13 +-
android/client/if-audio.c | 13 +-
android/client/if-av-sink.c | 13 +-
android/client/if-av.c | 13 +-
android/client/if-bt.c | 13 +-
android/client/if-gatt.c | 13 +-
android/client/if-hf-client.c | 13 +-
android/client/if-hf.c | 13 +-
android/client/if-hh.c | 13 +-
android/client/if-hl.c | 13 +-
android/client/if-main.h | 13 +-
android/client/if-mce.c | 13 +-
android/client/if-pan.c | 13 +-
android/client/if-rc-ctrl.c | 13 +-
android/client/if-rc.c | 13 +-
android/client/if-sco.c | 13 +-
android/client/if-sock.c | 13 +-
android/client/pollhandler.c | 13 +-
android/client/pollhandler.h | 13 +-
android/client/tabcompletion.c | 13 +-
android/client/terminal.c | 13 +-
android/client/terminal.h | 13 +-
android/compat/readline/history.h | 15 +-
android/compat/readline/readline.h | 15 +-
android/compat/wordexp.h | 15 +-
android/cutils/properties.h | 15 +-
android/gatt.c | 15 +-
android/gatt.h | 15 +-
android/hal-a2dp-sink.c | 13 +-
android/hal-a2dp.c | 13 +-
android/hal-audio-aptx.c | 13 +-
android/hal-audio-sbc.c | 13 +-
android/hal-audio.c | 13 +-
android/hal-audio.h | 13 +-
android/hal-avrcp-ctrl.c | 13 +-
android/hal-avrcp.c | 13 +-
android/hal-bluetooth.c | 13 +-
android/hal-gatt.c | 13 +-
android/hal-handsfree-client.c | 13 +-
android/hal-handsfree.c | 13 +-
android/hal-health.c | 13 +-
android/hal-hidhost.c | 13 +-
android/hal-ipc.c | 13 +-
android/hal-ipc.h | 13 +-
android/hal-log.h | 13 +-
android/hal-map-client.c | 13 +-
android/hal-msg.h | 15 +-
android/hal-pan.c | 13 +-
android/hal-sco.c | 13 +-
android/hal-socket.c | 13 +-
android/hal-utils.c | 13 +-
android/hal-utils.h | 13 +-
android/hal.h | 13 +-
android/handsfree-client.c | 15 +-
android/handsfree-client.h | 15 +-
android/handsfree.c | 15 +-
android/handsfree.h | 15 +-
android/hardware/audio.h | 12 +-
android/hardware/audio_effect.h | 12 +-
android/hardware/bluetooth.h | 12 +-
android/hardware/bt_av.h | 12 +-
android/hardware/bt_gatt.h | 12 +-
android/hardware/bt_gatt_client.h | 12 +-
android/hardware/bt_gatt_server.h | 12 +-
android/hardware/bt_gatt_types.h | 12 +-
android/hardware/bt_hf.h | 12 +-
android/hardware/bt_hf_client.h | 12 +-
android/hardware/bt_hh.h | 12 +-
android/hardware/bt_hl.h | 12 +-
android/hardware/bt_mce.h | 12 +-
android/hardware/bt_pan.h | 12 +-
android/hardware/bt_rc.h | 12 +-
android/hardware/bt_sock.h | 12 +-
android/hardware/hardware.c | 12 +-
android/hardware/hardware.h | 12 +-
android/health.c | 15 +-
android/health.h | 15 +-
android/hidhost.c | 15 +-
android/hidhost.h | 15 +-
android/ipc-common.h | 15 +-
android/ipc-tester.c | 15 +-
android/ipc.c | 15 +-
android/ipc.h | 15 +-
android/log.c | 15 +-
android/main.c | 15 +-
android/map-client.c | 15 +-
android/map-client.h | 15 +-
android/pan.c | 15 +-
android/pan.h | 15 +-
android/sco-msg.h | 15 +-
android/sco.c | 15 +-
android/sco.h | 15 +-
android/socket.c | 15 +-
android/socket.h | 15 +-
android/system-emulator.c | 15 +-
android/system/audio.h | 12 +-
android/test-ipc.c | 15 +-
android/tester-a2dp.c | 13 +-
android/tester-avrcp.c | 13 +-
android/tester-bluetooth.c | 13 +-
android/tester-gatt.c | 13 +-
android/tester-hdp.c | 13 +-
android/tester-hidhost.c | 13 +-
android/tester-main.c | 13 +-
android/tester-main.h | 15 +-
android/tester-map-client.c | 13 +-
android/tester-pan.c | 13 +-
android/tester-socket.c | 13 +-
android/utils.h | 15 +-
attrib/att-database.h | 15 +-
attrib/att.c | 15 +-
attrib/att.h | 15 +-
attrib/gatt-service.c | 15 +-
attrib/gatt-service.h | 15 +-
attrib/gatt.c | 15 +-
attrib/gatt.h | 15 +-
attrib/gattrib.c | 15 +-
attrib/gattrib.h | 15 +-
attrib/gatttool.c | 15 +-
attrib/gatttool.h | 15 +-
attrib/interactive.c | 15 +-
attrib/utils.c | 15 +-
btio/btio.c | 15 +-
btio/btio.h | 15 +-
client/adv_monitor.c | 11 +-
client/adv_monitor.h | 11 +-
client/advertising.c | 15 +-
client/advertising.h | 15 +-
client/agent.c | 15 +-
client/agent.h | 15 +-
client/display.c | 15 +-
client/display.h | 15 +-
client/gatt.c | 15 +-
client/gatt.h | 15 +-
client/main.c | 15 +-
configure.ac | 1 +
emulator/amp.c | 15 +-
emulator/amp.h | 15 +-
emulator/b1ee.c | 15 +-
emulator/btdev.c | 15 +-
emulator/btdev.h | 15 +-
emulator/bthost.c | 15 +-
emulator/bthost.h | 15 +-
emulator/hciemu.c | 15 +-
emulator/hciemu.h | 15 +-
emulator/hfp.c | 15 +-
emulator/le.c | 15 +-
emulator/le.h | 15 +-
emulator/main.c | 15 +-
emulator/phy.c | 15 +-
emulator/phy.h | 15 +-
emulator/serial.c | 15 +-
emulator/serial.h | 15 +-
emulator/server.c | 15 +-
emulator/server.h | 15 +-
emulator/smp.c | 15 +-
emulator/vhci.c | 15 +-
emulator/vhci.h | 15 +-
gdbus/client.c | 15 +-
gdbus/gdbus.h | 15 +-
gdbus/mainloop.c | 15 +-
gdbus/object.c | 15 +-
gdbus/polkit.c | 15 +-
gdbus/watch.c | 15 +-
gobex/gobex-apparam.c | 15 +-
gobex/gobex-apparam.h | 15 +-
gobex/gobex-debug.h | 15 +-
gobex/gobex-defs.c | 15 +-
gobex/gobex-defs.h | 15 +-
gobex/gobex-header.c | 15 +-
gobex/gobex-header.h | 15 +-
gobex/gobex-packet.c | 15 +-
gobex/gobex-packet.h | 15 +-
gobex/gobex-transfer.c | 15 +-
gobex/gobex.c | 15 +-
gobex/gobex.h | 15 +-
lib/a2mp.h | 15 +-
lib/amp.h | 10 +-
lib/bluetooth.c | 15 +-
lib/bluetooth.h | 15 +-
lib/bnep.h | 15 +-
lib/cmtp.h | 15 +-
lib/hci.c | 15 +-
lib/hci.h | 15 +-
lib/hci_lib.h | 15 +-
lib/hidp.h | 15 +-
lib/l2cap.h | 15 +-
lib/mgmt.h | 15 +-
lib/rfcomm.h | 15 +-
lib/sco.h | 15 +-
lib/sdp.c | 15 +-
lib/sdp.h | 15 +-
lib/sdp_lib.h | 15 +-
lib/uuid.c | 15 +-
lib/uuid.h | 15 +-
mesh/agent.c | 11 +-
mesh/agent.h | 11 +-
mesh/appkey.c | 11 +-
mesh/appkey.h | 11 +-
mesh/cfgmod-server.c | 11 +-
mesh/cfgmod.h | 11 +-
mesh/crypto.c | 11 +-
mesh/crypto.h | 11 +-
mesh/dbus.c | 11 +-
mesh/dbus.h | 11 +-
mesh/error.h | 11 +-
mesh/friend.c | 11 +-
mesh/friend.h | 11 +-
mesh/keyring.c | 11 +-
mesh/keyring.h | 11 +-
mesh/main.c | 11 +-
mesh/manager.c | 11 +-
mesh/manager.h | 11 +-
mesh/mesh-config-json.c | 11 +-
mesh/mesh-config.h | 11 +-
mesh/mesh-defs.h | 12 +-
mesh/mesh-io-api.h | 11 +-
mesh/mesh-io-generic.c | 11 +-
mesh/mesh-io-generic.h | 11 +-
mesh/mesh-io.c | 11 +-
mesh/mesh-io.h | 11 +-
mesh/mesh-mgmt.c | 11 +-
mesh/mesh-mgmt.h | 11 +-
mesh/mesh.c | 11 +-
mesh/mesh.h | 11 +-
mesh/model.c | 11 +-
mesh/model.h | 11 +-
mesh/net-keys.c | 11 +-
mesh/net-keys.h | 11 +-
mesh/net.c | 11 +-
mesh/net.h | 11 +-
mesh/node.c | 11 +-
mesh/node.h | 11 +-
mesh/pb-adv.c | 11 +-
mesh/pb-adv.h | 11 +-
mesh/prov-acceptor.c | 11 +-
mesh/prov-initiator.c | 11 +-
mesh/prov.h | 11 +-
mesh/provision.h | 11 +-
mesh/rpl.c | 11 +-
mesh/rpl.h | 11 +-
mesh/util.c | 11 +-
mesh/util.h | 11 +-
monitor/a2dp.c | 15 +-
monitor/a2dp.h | 15 +-
monitor/analyze.c | 15 +-
monitor/analyze.h | 15 +-
monitor/avctp.c | 15 +-
monitor/avctp.h | 15 +-
monitor/avdtp.c | 15 +-
monitor/avdtp.h | 15 +-
monitor/bnep.c | 15 +-
monitor/bnep.h | 15 +-
monitor/broadcom.c | 15 +-
monitor/broadcom.h | 15 +-
monitor/bt.h | 15 +-
monitor/control.c | 15 +-
monitor/control.h | 15 +-
monitor/crc.c | 15 +-
monitor/crc.h | 15 +-
monitor/display.c | 15 +-
monitor/display.h | 15 +-
monitor/ellisys.c | 15 +-
monitor/ellisys.h | 15 +-
monitor/hcidump.c | 15 +-
monitor/hcidump.h | 15 +-
monitor/hwdb.c | 15 +-
monitor/hwdb.h | 15 +-
monitor/intel.c | 15 +-
monitor/intel.h | 15 +-
monitor/jlink.c | 15 +-
monitor/jlink.h | 15 +-
monitor/keys.c | 15 +-
monitor/keys.h | 15 +-
monitor/l2cap.c | 15 +-
monitor/l2cap.h | 15 +-
monitor/ll.c | 15 +-
monitor/ll.h | 15 +-
monitor/lmp.c | 15 +-
monitor/lmp.h | 15 +-
monitor/main.c | 15 +-
monitor/packet.c | 15 +-
monitor/packet.h | 15 +-
monitor/rfcomm.c | 15 +-
monitor/rfcomm.h | 15 +-
monitor/sdp.c | 15 +-
monitor/sdp.h | 15 +-
monitor/tty.h | 15 +-
monitor/vendor.c | 15 +-
monitor/vendor.h | 15 +-
obexd/client/bluetooth.c | 15 +-
obexd/client/bluetooth.h | 15 +-
obexd/client/driver.c | 15 +-
obexd/client/driver.h | 15 +-
obexd/client/ftp.c | 15 +-
obexd/client/ftp.h | 15 +-
obexd/client/manager.c | 15 +-
obexd/client/manager.h | 15 +-
obexd/client/map-event.c | 15 +-
obexd/client/map-event.h | 15 +-
obexd/client/map.c | 15 +-
obexd/client/map.h | 15 +-
obexd/client/mns.c | 15 +-
obexd/client/opp.c | 15 +-
obexd/client/opp.h | 15 +-
obexd/client/pbap.c | 15 +-
obexd/client/pbap.h | 15 +-
obexd/client/session.c | 15 +-
obexd/client/session.h | 15 +-
obexd/client/sync.c | 15 +-
obexd/client/sync.h | 15 +-
obexd/client/transfer.c | 15 +-
obexd/client/transfer.h | 15 +-
obexd/client/transport.c | 15 +-
obexd/client/transport.h | 15 +-
obexd/plugins/bluetooth.c | 15 +-
obexd/plugins/filesystem.c | 15 +-
obexd/plugins/filesystem.h | 15 +-
obexd/plugins/ftp.c | 15 +-
obexd/plugins/ftp.h | 15 +-
obexd/plugins/irmc.c | 15 +-
obexd/plugins/mas.c | 15 +-
obexd/plugins/messages-dummy.c | 15 +-
obexd/plugins/messages-tracker.c | 15 +-
obexd/plugins/messages.h | 15 +-
obexd/plugins/opp.c | 15 +-
obexd/plugins/pbap.c | 15 +-
obexd/plugins/pcsuite.c | 15 +-
obexd/plugins/phonebook-dummy.c | 15 +-
obexd/plugins/phonebook-ebook.c | 15 +-
obexd/plugins/phonebook-tracker.c | 15 +-
obexd/plugins/phonebook.h | 15 +-
obexd/plugins/syncevolution.c | 15 +-
obexd/plugins/vcard.c | 15 +-
obexd/plugins/vcard.h | 15 +-
obexd/src/log.c | 15 +-
obexd/src/log.h | 15 +-
obexd/src/main.c | 15 +-
obexd/src/manager.c | 15 +-
obexd/src/manager.h | 15 +-
obexd/src/map_ap.h | 15 +-
obexd/src/mimetype.c | 15 +-
obexd/src/mimetype.h | 15 +-
obexd/src/obex-priv.h | 15 +-
obexd/src/obex.c | 15 +-
obexd/src/obex.h | 15 +-
obexd/src/obexd.h | 15 +-
obexd/src/plugin.c | 15 +-
obexd/src/plugin.h | 15 +-
obexd/src/server.c | 15 +-
obexd/src/server.h | 15 +-
obexd/src/service.c | 15 +-
obexd/src/service.h | 15 +-
obexd/src/transport.c | 15 +-
obexd/src/transport.h | 15 +-
peripheral/attach.c | 15 +-
peripheral/attach.h | 15 +-
peripheral/efivars.c | 15 +-
peripheral/efivars.h | 15 +-
peripheral/gap.c | 15 +-
peripheral/gap.h | 15 +-
peripheral/gatt.c | 15 +-
peripheral/gatt.h | 15 +-
peripheral/log.c | 15 +-
peripheral/log.h | 15 +-
peripheral/main.c | 15 +-
plugins/autopair.c | 15 +-
plugins/external-dummy.c | 15 +-
plugins/hostname.c | 15 +-
plugins/neard.c | 15 +-
plugins/policy.c | 15 +-
plugins/sixaxis.c | 15 +-
plugins/wiimote.c | 15 +-
profiles/audio/a2dp-codecs.h | 15 +-
profiles/audio/a2dp.c | 15 +-
profiles/audio/a2dp.h | 15 +-
profiles/audio/avctp.c | 15 +-
profiles/audio/avctp.h | 15 +-
profiles/audio/avdtp.c | 15 +-
profiles/audio/avdtp.h | 15 +-
profiles/audio/avrcp.c | 15 +-
profiles/audio/avrcp.h | 15 +-
profiles/audio/control.c | 15 +-
profiles/audio/control.h | 15 +-
profiles/audio/media.c | 15 +-
profiles/audio/media.h | 15 +-
profiles/audio/player.c | 15 +-
profiles/audio/player.h | 15 +-
profiles/audio/sink.c | 15 +-
profiles/audio/sink.h | 15 +-
profiles/audio/source.c | 15 +-
profiles/audio/source.h | 15 +-
profiles/audio/transport.c | 15 +-
profiles/audio/transport.h | 15 +-
profiles/battery/bas.c | 15 +-
profiles/battery/bas.h | 15 +-
profiles/battery/battery.c | 10 +-
profiles/cups/cups.h | 15 +-
profiles/cups/hcrp.c | 15 +-
profiles/cups/main.c | 15 +-
profiles/cups/sdp.c | 15 +-
profiles/cups/spp.c | 15 +-
profiles/deviceinfo/deviceinfo.c | 15 +-
profiles/deviceinfo/dis.c | 15 +-
profiles/deviceinfo/dis.h | 15 +-
profiles/gap/gas.c | 10 +-
profiles/health/hdp.c | 15 +-
profiles/health/hdp.h | 15 +-
profiles/health/hdp_main.c | 15 +-
profiles/health/hdp_manager.c | 15 +-
profiles/health/hdp_manager.h | 15 +-
profiles/health/hdp_types.h | 15 +-
profiles/health/hdp_util.c | 15 +-
profiles/health/hdp_util.h | 15 +-
profiles/health/mcap.c | 15 +-
profiles/health/mcap.h | 15 +-
profiles/iap/main.c | 15 +-
profiles/input/device.c | 15 +-
profiles/input/device.h | 15 +-
profiles/input/hidp_defs.h | 15 +-
profiles/input/hog-lib.c | 15 +-
profiles/input/hog-lib.h | 15 +-
profiles/input/hog.c | 15 +-
profiles/input/manager.c | 15 +-
profiles/input/server.c | 15 +-
profiles/input/server.h | 15 +-
profiles/input/sixaxis.h | 15 +-
profiles/input/suspend-dummy.c | 15 +-
profiles/input/suspend-none.c | 15 +-
profiles/input/suspend.h | 15 +-
profiles/midi/libmidi.c | 16 +-
profiles/midi/libmidi.h | 16 +-
profiles/midi/midi.c | 20 +-
profiles/network/bnep.c | 15 +-
profiles/network/bnep.h | 15 +-
profiles/network/connection.c | 15 +-
profiles/network/connection.h | 15 +-
profiles/network/manager.c | 15 +-
profiles/network/server.c | 15 +-
profiles/network/server.h | 15 +-
profiles/sap/main.c | 14 +-
profiles/sap/manager.c | 14 +-
profiles/sap/manager.h | 14 +-
profiles/sap/sap-dummy.c | 14 +-
profiles/sap/sap.h | 14 +-
profiles/sap/server.c | 14 +-
profiles/sap/server.h | 14 +-
profiles/scanparam/scan.c | 15 +-
profiles/scanparam/scpp.c | 15 +-
profiles/scanparam/scpp.h | 15 +-
src/adapter.c | 15 +-
src/adapter.h | 15 +-
src/adv_monitor.c | 11 +-
src/adv_monitor.h | 11 +-
src/advertising.c | 11 +-
src/advertising.h | 11 +-
src/agent.c | 15 +-
src/agent.h | 15 +-
src/attrib-server.c | 15 +-
src/attrib-server.h | 15 +-
src/backtrace.c | 15 +-
src/backtrace.h | 15 +-
src/dbus-common.c | 15 +-
src/dbus-common.h | 15 +-
src/device.c | 15 +-
src/device.h | 15 +-
src/eir.c | 15 +-
src/eir.h | 15 +-
src/error.c | 15 +-
src/error.h | 15 +-
src/gatt-client.c | 11 +-
src/gatt-client.h | 11 +-
src/gatt-database.c | 11 +-
src/gatt-database.h | 11 +-
src/hcid.h | 15 +-
src/log.c | 15 +-
src/log.h | 15 +-
src/main.c | 15 +-
src/oui.c | 15 +-
src/oui.h | 15 +-
src/plugin.c | 15 +-
src/plugin.h | 15 +-
src/profile.c | 15 +-
src/profile.h | 15 +-
src/rfkill.c | 15 +-
src/sdp-client.c | 15 +-
src/sdp-client.h | 15 +-
src/sdp-xml.c | 15 +-
src/sdp-xml.h | 15 +-
src/sdpd-database.c | 15 +-
src/sdpd-request.c | 15 +-
src/sdpd-server.c | 15 +-
src/sdpd-service.c | 15 +-
src/sdpd.h | 15 +-
src/service.c | 15 +-
src/service.h | 15 +-
src/shared/ad.c | 15 +-
src/shared/ad.h | 15 +-
src/shared/att-types.h | 15 +-
src/shared/att.c | 15 +-
src/shared/att.h | 15 +-
src/shared/btp.c | 15 +-
src/shared/btp.h | 15 +-
src/shared/btsnoop.c | 15 +-
src/shared/btsnoop.h | 15 +-
src/shared/crypto.c | 15 +-
src/shared/crypto.h | 15 +-
src/shared/ecc.c | 21 +-
src/shared/ecc.h | 21 +-
src/shared/gap.c | 15 +-
src/shared/gap.h | 15 +-
src/shared/gatt-client.c | 15 +-
src/shared/gatt-client.h | 15 +-
src/shared/gatt-db.c | 15 +-
src/shared/gatt-db.h | 15 +-
src/shared/gatt-helpers.c | 15 +-
src/shared/gatt-helpers.h | 15 +-
src/shared/gatt-server.c | 15 +-
src/shared/gatt-server.h | 15 +-
src/shared/hci-crypto.c | 15 +-
src/shared/hci-crypto.h | 15 +-
src/shared/hci.c | 15 +-
src/shared/hci.h | 15 +-
src/shared/hfp.c | 15 +-
src/shared/hfp.h | 15 +-
src/shared/io-ell.c | 15 +-
src/shared/io-glib.c | 15 +-
src/shared/io-mainloop.c | 15 +-
src/shared/io.h | 15 +-
src/shared/log.c | 15 +-
src/shared/log.h | 15 +-
src/shared/mainloop-ell.c | 12 +-
src/shared/mainloop-glib.c | 15 +-
src/shared/mainloop-notify.c | 15 +-
src/shared/mainloop-notify.h | 15 +-
src/shared/mainloop.c | 15 +-
src/shared/mainloop.h | 15 +-
src/shared/mgmt.c | 15 +-
src/shared/mgmt.h | 15 +-
src/shared/pcap.c | 15 +-
src/shared/pcap.h | 15 +-
src/shared/queue.c | 15 +-
src/shared/queue.h | 15 +-
src/shared/ringbuf.c | 15 +-
src/shared/ringbuf.h | 15 +-
src/shared/shell.c | 15 +-
src/shared/shell.h | 15 +-
src/shared/tester.c | 15 +-
src/shared/tester.h | 15 +-
src/shared/timeout-ell.c | 11 +-
src/shared/timeout-glib.c | 11 +-
src/shared/timeout-mainloop.c | 11 +-
src/shared/timeout.h | 11 +-
src/shared/tty.h | 15 +-
src/shared/uhid.c | 15 +-
src/shared/uhid.h | 15 +-
src/shared/util.c | 15 +-
src/shared/util.h | 15 +-
src/storage.c | 15 +-
src/storage.h | 15 +-
src/textfile.c | 15 +-
src/textfile.h | 15 +-
src/uinput.h | 15 +-
src/uuid-helper.c | 15 +-
src/uuid-helper.h | 15 +-
test/agent.py | 1 +
test/bluezutils.py | 2 +
test/dbusdef.py | 2 +
test/example-advertisement | 1 +
test/example-endpoint | 1 +
test/example-gatt-client | 1 +
test/example-gatt-server | 1 +
test/example-player | 1 +
test/exchange-business-cards | 1 +
test/ftp-client | 1 +
test/get-managed-objects | 1 +
test/get-obex-capabilities | 1 +
test/list-devices | 1 +
test/list-folders | 1 +
test/map-client | 1 +
test/monitor-bluetooth | 1 +
test/opp-client | 1 +
test/pbap-client | 1 +
test/sap_client.py | 15 +-
test/simple-agent | 1 +
test/simple-endpoint | 1 +
test/simple-obex-agent | 1 +
test/simple-player | 1 +
test/test-adapter | 1 +
test/test-device | 1 +
test/test-discovery | 1 +
test/test-gatt-profile | 1 +
test/test-health | 1 +
test/test-health-sink | 1 +
test/test-hfp | 1 +
test/test-join | 1 +
test/test-manager | 1 +
test/test-mesh | 1 +
test/test-nap | 1 +
test/test-network | 1 +
test/test-profile | 1 +
test/test-sap-server | 1 +
tools/3dsp.c | 15 +-
tools/advtest.c | 15 +-
tools/amptest.c | 15 +-
tools/avinfo.c | 15 +-
tools/avtest.c | 15 +-
tools/bccmd.c | 15 +-
tools/bcmfw.c | 15 +-
tools/bdaddr.c | 15 +-
tools/bluemoon.c | 15 +-
tools/bluetooth-player.c | 15 +-
tools/bnep-tester.c | 15 +-
tools/bneptest.c | 15 +-
tools/btattach.c | 15 +-
tools/btconfig.c | 15 +-
tools/btgatt-client.c | 15 +-
tools/btgatt-server.c | 11 +-
tools/btinfo.c | 15 +-
tools/btiotest.c | 15 +-
tools/btmgmt.c | 15 +-
tools/btmon-logger.c | 15 +-
tools/btpclient.c | 15 +-
tools/btpclientctl.c | 15 +-
tools/btproxy.c | 15 +-
tools/btsnoop.c | 15 +-
tools/check-selftest.c | 15 +-
tools/ciptool.c | 15 +-
tools/cltest.c | 15 +-
tools/create-image.c | 15 +-
tools/csr.c | 15 +-
tools/csr.h | 15 +-
tools/csr_3wire.c | 15 +-
tools/csr_bcsp.c | 15 +-
tools/csr_h4.c | 15 +-
tools/csr_hci.c | 15 +-
tools/csr_usb.c | 15 +-
tools/eddystone.c | 15 +-
tools/gap-tester.c | 15 +-
tools/gatt-service.c | 15 +-
tools/hci-tester.c | 15 +-
tools/hciattach.c | 15 +-
tools/hciattach.h | 15 +-
tools/hciattach_ath3k.c | 15 +-
tools/hciattach_bcm43xx.c | 15 +-
tools/hciattach_intel.c | 15 +-
tools/hciattach_qualcomm.c | 15 +-
tools/hciattach_st.c | 15 +-
tools/hciattach_ti.c | 15 +-
tools/hciattach_tialt.c | 15 +-
tools/hciconfig.c | 15 +-
tools/hcidump.c | 15 +-
tools/hcieventmask.c | 15 +-
tools/hcisecfilter.c | 15 +-
tools/hcitool.c | 15 +-
tools/hex2hcd.c | 15 +-
tools/hid2hci.c | 15 +-
tools/hwdb.c | 15 +-
tools/ibeacon.c | 15 +-
tools/l2cap-tester.c | 15 +-
tools/l2ping.c | 15 +-
tools/l2test.c | 15 +-
tools/mcaptest.c | 15 +-
tools/mesh-cfgclient.c | 11 +-
tools/mesh-gatt/config-client.c | 15 +-
tools/mesh-gatt/config-server.c | 15 +-
tools/mesh-gatt/crypto.c | 15 +-
tools/mesh-gatt/crypto.h | 15 +-
tools/mesh-gatt/gatt.c | 15 +-
tools/mesh-gatt/gatt.h | 15 +-
tools/mesh-gatt/keys.h | 15 +-
tools/mesh-gatt/mesh-net.h | 15 +-
tools/mesh-gatt/net.c | 15 +-
tools/mesh-gatt/net.h | 15 +-
tools/mesh-gatt/node.c | 15 +-
tools/mesh-gatt/node.h | 15 +-
tools/mesh-gatt/onoff-model.c | 15 +-
tools/mesh-gatt/onoff-model.h | 15 +-
tools/mesh-gatt/prov-db.c | 15 +-
tools/mesh-gatt/prov-db.h | 15 +-
tools/mesh-gatt/prov.c | 15 +-
tools/mesh-gatt/prov.h | 15 +-
tools/mesh-gatt/util.c | 15 +-
tools/mesh-gatt/util.h | 15 +-
tools/mesh/agent.c | 15 +-
tools/mesh/agent.h | 15 +-
tools/mesh/cfgcli.c | 12 +-
tools/mesh/cfgcli.h | 12 +-
tools/mesh/config-model.h | 15 +-
tools/mesh/keys.c | 12 +-
tools/mesh/keys.h | 12 +-
tools/mesh/mesh-db.c | 11 +-
tools/mesh/mesh-db.h | 11 +-
tools/mesh/model.h | 12 +-
tools/mesh/remote.c | 11 +-
tools/mesh/remote.h | 11 +-
tools/mesh/util.c | 11 +-
tools/mesh/util.h | 11 +-
tools/meshctl.c | 15 +-
tools/mgmt-tester.c | 15 +-
tools/mpris-proxy.c | 15 +-
tools/nokfw.c | 15 +-
tools/obex-client-tool.c | 14 +-
tools/obex-server-tool.c | 14 +-
tools/obexctl.c | 15 +-
tools/oobtest.c | 15 +-
tools/parse_companies.pl | 2 +-
tools/parser/amp.c | 15 +-
tools/parser/att.c | 15 +-
tools/parser/avctp.c | 15 +-
tools/parser/avdtp.c | 15 +-
tools/parser/avrcp.c | 15 +-
tools/parser/bnep.c | 15 +-
tools/parser/bpa.c | 15 +-
tools/parser/capi.c | 15 +-
tools/parser/cmtp.c | 15 +-
tools/parser/csr.c | 15 +-
tools/parser/ericsson.c | 15 +-
tools/parser/hci.c | 15 +-
tools/parser/hcrp.c | 15 +-
tools/parser/hidp.c | 15 +-
tools/parser/l2cap.c | 15 +-
tools/parser/l2cap.h | 15 +-
tools/parser/lmp.c | 15 +-
tools/parser/obex.c | 15 +-
tools/parser/parser.c | 15 +-
tools/parser/parser.h | 15 +-
tools/parser/ppp.c | 15 +-
tools/parser/rfcomm.c | 15 +-
tools/parser/rfcomm.h | 15 +-
tools/parser/sap.c | 15 +-
tools/parser/sdp.c | 15 +-
tools/parser/sdp.h | 15 +-
tools/parser/smp.c | 15 +-
tools/parser/tcpip.c | 15 +-
tools/rctest.c | 15 +-
tools/rfcomm-tester.c | 15 +-
tools/rfcomm.c | 15 +-
tools/rtlfw.c | 15 +-
tools/sco-tester.c | 15 +-
tools/scotest.c | 15 +-
tools/sdptool.c | 15 +-
tools/seq2bseq.c | 15 +-
tools/smp-tester.c | 15 +-
tools/test-runner.c | 15 +-
tools/ubcsp.c | 20 +-
tools/ubcsp.h | 20 +-
tools/update_compids.sh | 1 +
tools/userchan-tester.c | 15 +-
unit/test-avctp.c | 15 +-
unit/test-avdtp.c | 15 +-
unit/test-avrcp.c | 15 +-
unit/test-crc.c | 15 +-
unit/test-crypto.c | 15 +-
unit/test-ecc.c | 21 +-
unit/test-eir.c | 15 +-
unit/test-gatt.c | 15 +-
unit/test-gattrib.c | 15 +-
unit/test-gdbus-client.c | 15 +-
unit/test-gobex-apparam.c | 15 +-
unit/test-gobex-header.c | 15 +-
unit/test-gobex-packet.c | 15 +-
unit/test-gobex-transfer.c | 15 +-
unit/test-gobex.c | 15 +-
unit/test-hfp.c | 15 +-
unit/test-hog.c | 15 +-
unit/test-lib.c | 15 +-
unit/test-mesh-crypto.c | 11 +-
unit/test-mgmt.c | 15 +-
unit/test-midi.c | 16 +-
unit/test-queue.c | 15 +-
unit/test-ringbuf.c | 15 +-
unit/test-sdp.c | 15 +-
unit/test-textfile.c | 15 +-
unit/test-uhid.c | 15 +-
unit/test-uuid.c | 15 +-
unit/util.c | 14 +-
unit/util.h | 14 +-
810 files changed, 1913 insertions(+), 10186 deletions(-)
create mode 100644 LICENSES/dual/Apache-2.0
create mode 100644 LICENSES/preferred/BSD-2-Clause
create mode 100644 LICENSES/preferred/GPL-2.0
create mode 100644 LICENSES/preferred/LGPL-2.1
create mode 100644 LICENSES/preferred/MIT

--
2.25.4


2020-09-21 19:35:43

by Tedd Ho-Jeong An

[permalink] [raw]
Subject: [BlueZ V4 RESEND 06/20] gdbus: Add SPDX License Identifier

From: Tedd Ho-Jeong An <[email protected]>

This patch adds SPDX License Identifier and removes the license text.

-------------------------------------
License COUNT
-------------------------------------
GPL-2.0-or-later : 6

License: GPL-2.0-or-later
gdbus/mainloop.c
gdbus/object.c
gdbus/polkit.c
gdbus/client.c
gdbus/watch.c
gdbus/gdbus.h
---
gdbus/client.c | 15 +--------------
gdbus/gdbus.h | 15 +--------------
gdbus/mainloop.c | 15 +--------------
gdbus/object.c | 15 +--------------
gdbus/polkit.c | 15 +--------------
gdbus/watch.c | 15 +--------------
6 files changed, 6 insertions(+), 84 deletions(-)

diff --git a/gdbus/client.c b/gdbus/client.c
index 84e076994..3b7faa4e4 100644
--- a/gdbus/client.c
+++ b/gdbus/client.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
/*
*
* D-Bus helper library
@@ -5,20 +6,6 @@
* Copyright (C) 2004-2011 Marcel Holtmann <[email protected]>
*
*
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
- *
*/

#ifdef HAVE_CONFIG_H
diff --git a/gdbus/gdbus.h b/gdbus/gdbus.h
index 9bdff9eba..28b802296 100644
--- a/gdbus/gdbus.h
+++ b/gdbus/gdbus.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
/*
*
* D-Bus helper library
@@ -5,20 +6,6 @@
* Copyright (C) 2004-2011 Marcel Holtmann <[email protected]>
*
*
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
- *
*/

#ifndef __GDBUS_H
diff --git a/gdbus/mainloop.c b/gdbus/mainloop.c
index b90a8447c..a04ebb19b 100644
--- a/gdbus/mainloop.c
+++ b/gdbus/mainloop.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
/*
*
* D-Bus helper library
@@ -5,20 +6,6 @@
* Copyright (C) 2004-2011 Marcel Holtmann <[email protected]>
*
*
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
- *
*/

#ifdef HAVE_CONFIG_H
diff --git a/gdbus/object.c b/gdbus/object.c
index 49b578087..50a8b4ff1 100644
--- a/gdbus/object.c
+++ b/gdbus/object.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
/*
*
* D-Bus helper library
@@ -5,20 +6,6 @@
* Copyright (C) 2004-2011 Marcel Holtmann <[email protected]>
*
*
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
- *
*/

#ifdef HAVE_CONFIG_H
diff --git a/gdbus/polkit.c b/gdbus/polkit.c
index 9e95fa384..80e024fad 100644
--- a/gdbus/polkit.c
+++ b/gdbus/polkit.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
/*
*
* D-Bus helper library
@@ -5,20 +6,6 @@
* Copyright (C) 2004-2011 Marcel Holtmann <[email protected]>
*
*
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
- *
*/

#ifdef HAVE_CONFIG_H
diff --git a/gdbus/watch.c b/gdbus/watch.c
index 447e48671..25f367613 100644
--- a/gdbus/watch.c
+++ b/gdbus/watch.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
/*
*
* D-Bus helper library
@@ -5,20 +6,6 @@
* Copyright (C) 2004-2011 Marcel Holtmann <[email protected]>
*
*
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
- *
*/

#ifdef HAVE_CONFIG_H
--
2.25.4

2020-09-21 19:36:35

by Tedd Ho-Jeong An

[permalink] [raw]
Subject: [BlueZ V4 RESEND 09/20] mesh: Add SPDX License Identifier

From: Tedd Ho-Jeong An <[email protected]>

This patch adds SPDX License Identifier and removes the license text.

-------------------------------------
License COUNT
-------------------------------------
LGPL-2.1-or-later : 48

License: LGPL-2.1-or-later
mesh/mesh-mgmt.h
mesh/mesh-mgmt.c
mesh/net-keys.c
mesh/mesh-io-api.h
mesh/mesh.h
mesh/net-keys.h
mesh/model.h
mesh/util.h
mesh/appkey.c
mesh/cfgmod.h
mesh/appkey.h
mesh/prov.h
mesh/prov-acceptor.c
mesh/net.c
mesh/dbus.h
mesh/friend.h
mesh/mesh-io-generic.c
mesh/main.c
mesh/util.c
mesh/dbus.c
mesh/error.h
mesh/mesh-config-json.c
mesh/agent.h
mesh/pb-adv.c
mesh/crypto.c
mesh/crypto.h
mesh/friend.c
mesh/pb-adv.h
mesh/provision.h
mesh/mesh-config.h
mesh/mesh-io-generic.h
mesh/agent.c
mesh/cfgmod-server.c
mesh/mesh-io.h
mesh/keyring.h
mesh/net.h
mesh/keyring.c
mesh/mesh-defs.h
mesh/mesh.c
mesh/rpl.c
mesh/manager.c
mesh/model.c
mesh/mesh-io.c
mesh/node.c
mesh/prov-initiator.c
mesh/rpl.h
mesh/node.h
mesh/manager.h
---
mesh/agent.c | 11 +----------
mesh/agent.h | 11 +----------
mesh/appkey.c | 11 +----------
mesh/appkey.h | 11 +----------
mesh/cfgmod-server.c | 11 +----------
mesh/cfgmod.h | 11 +----------
mesh/crypto.c | 11 +----------
mesh/crypto.h | 11 +----------
mesh/dbus.c | 11 +----------
mesh/dbus.h | 11 +----------
mesh/error.h | 11 +----------
mesh/friend.c | 11 +----------
mesh/friend.h | 11 +----------
mesh/keyring.c | 11 +----------
mesh/keyring.h | 11 +----------
mesh/main.c | 11 +----------
mesh/manager.c | 11 +----------
mesh/manager.h | 11 +----------
mesh/mesh-config-json.c | 11 +----------
mesh/mesh-config.h | 11 +----------
mesh/mesh-defs.h | 12 +-----------
mesh/mesh-io-api.h | 11 +----------
mesh/mesh-io-generic.c | 11 +----------
mesh/mesh-io-generic.h | 11 +----------
mesh/mesh-io.c | 11 +----------
mesh/mesh-io.h | 11 +----------
mesh/mesh-mgmt.c | 11 +----------
mesh/mesh-mgmt.h | 11 +----------
mesh/mesh.c | 11 +----------
mesh/mesh.h | 11 +----------
mesh/model.c | 11 +----------
mesh/model.h | 11 +----------
mesh/net-keys.c | 11 +----------
mesh/net-keys.h | 11 +----------
mesh/net.c | 11 +----------
mesh/net.h | 11 +----------
mesh/node.c | 11 +----------
mesh/node.h | 11 +----------
mesh/pb-adv.c | 11 +----------
mesh/pb-adv.h | 11 +----------
mesh/prov-acceptor.c | 11 +----------
mesh/prov-initiator.c | 11 +----------
mesh/prov.h | 11 +----------
mesh/provision.h | 11 +----------
mesh/rpl.c | 11 +----------
mesh/rpl.h | 11 +----------
mesh/util.c | 11 +----------
mesh/util.h | 11 +----------
48 files changed, 48 insertions(+), 481 deletions(-)

diff --git a/mesh/agent.c b/mesh/agent.c
index 4d200416f..b0d523d16 100644
--- a/mesh/agent.c
+++ b/mesh/agent.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: LGPL-2.1-or-later
/*
*
* BlueZ - Bluetooth protocol stack for Linux
@@ -5,16 +6,6 @@
* Copyright (C) 2018-2019 Intel Corporation. All rights reserved.
*
*
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
*/

#ifdef HAVE_CONFIG_H
diff --git a/mesh/agent.h b/mesh/agent.h
index 6cc3d0f71..6664c2226 100644
--- a/mesh/agent.h
+++ b/mesh/agent.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: LGPL-2.1-or-later */
/*
*
* BlueZ - Bluetooth protocol stack for Linux
@@ -5,16 +6,6 @@
* Copyright (C) 2018 Intel Corporation. All rights reserved.
*
*
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
*/

struct mesh_agent;
diff --git a/mesh/appkey.c b/mesh/appkey.c
index a4771bd7d..7efb8f5c4 100644
--- a/mesh/appkey.c
+++ b/mesh/appkey.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: LGPL-2.1-or-later
/*
*
* BlueZ - Bluetooth protocol stack for Linux
@@ -5,16 +6,6 @@
* Copyright (C) 2017-2019 Intel Corporation. All rights reserved.
*
*
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
*/

#ifdef HAVE_CONFIG_H
diff --git a/mesh/appkey.h b/mesh/appkey.h
index 23b474a0a..3bb70445b 100644
--- a/mesh/appkey.h
+++ b/mesh/appkey.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: LGPL-2.1-or-later */
/*
*
* BlueZ - Bluetooth protocol stack for Linux
@@ -5,16 +6,6 @@
* Copyright (C) 2018-2019 Intel Corporation. All rights reserved.
*
*
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
*/

/* TODO: get this number from configuration */
diff --git a/mesh/cfgmod-server.c b/mesh/cfgmod-server.c
index 2e5da863a..0009a1bee 100644
--- a/mesh/cfgmod-server.c
+++ b/mesh/cfgmod-server.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: LGPL-2.1-or-later
/*
*
* BlueZ - Bluetooth protocol stack for Linux
@@ -5,16 +6,6 @@
* Copyright (C) 2018-2020 Intel Corporation. All rights reserved.
*
*
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
*/

#ifdef HAVE_CONFIG_H
diff --git a/mesh/cfgmod.h b/mesh/cfgmod.h
index 6d73656a7..f47a42c60 100644
--- a/mesh/cfgmod.h
+++ b/mesh/cfgmod.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: LGPL-2.1-or-later */
/*
*
* BlueZ - Bluetooth protocol stack for Linux
@@ -5,16 +6,6 @@
* Copyright (C) 2018 Intel Corporation. All rights reserved.
*
*
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
*/

#define CONFIG_SRV_MODEL SET_ID(SIG_VENDOR, 0x0000)
diff --git a/mesh/crypto.c b/mesh/crypto.c
index 70b96c51b..da227ebbb 100644
--- a/mesh/crypto.c
+++ b/mesh/crypto.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: LGPL-2.1-or-later
/*
*
* BlueZ - Bluetooth protocol stack for Linux
@@ -5,16 +6,6 @@
* Copyright (C) 2018-2019 Intel Corporation. All rights reserved.
*
*
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
*/

#ifdef HAVE_CONFIG_H
diff --git a/mesh/crypto.h b/mesh/crypto.h
index 7d3f89cde..2f31dc3de 100644
--- a/mesh/crypto.h
+++ b/mesh/crypto.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: LGPL-2.1-or-later */
/*
*
* BlueZ - Bluetooth protocol stack for Linux
@@ -5,16 +6,6 @@
* Copyright (C) 2018 Intel Corporation. All rights reserved.
*
*
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
*/

#include <stdbool.h>
diff --git a/mesh/dbus.c b/mesh/dbus.c
index 63ea420ed..a7abdc428 100644
--- a/mesh/dbus.c
+++ b/mesh/dbus.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: LGPL-2.1-or-later
/*
*
* BlueZ - Bluetooth protocol stack for Linux
@@ -5,16 +6,6 @@
* Copyright (C) 2018-2019 Intel Corporation. All rights reserved.
*
*
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
*/

#ifdef HAVE_CONFIG_H
diff --git a/mesh/dbus.h b/mesh/dbus.h
index 89d6b1d31..8f00434d6 100644
--- a/mesh/dbus.h
+++ b/mesh/dbus.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: LGPL-2.1-or-later */
/*
*
* BlueZ - Bluetooth protocol stack for Linux
@@ -5,16 +6,6 @@
* Copyright (C) 2018 Intel Corporation. All rights reserved.
*
*
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
*/

#define BLUEZ_MESH_PATH "/org/bluez/mesh"
diff --git a/mesh/error.h b/mesh/error.h
index 2809915b0..6d9ccdb59 100644
--- a/mesh/error.h
+++ b/mesh/error.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: LGPL-2.1-or-later */
/*
*
* BlueZ - Bluetooth protocol stack for Linux
@@ -5,16 +6,6 @@
* Copyright (C) 2018-2019 Intel Corporation. All rights reserved.
*
*
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
*/

/*
diff --git a/mesh/friend.c b/mesh/friend.c
index d27da9592..1e67704b8 100644
--- a/mesh/friend.c
+++ b/mesh/friend.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: LGPL-2.1-or-later
/*
*
* BlueZ - Bluetooth protocol stack for Linux
@@ -5,16 +6,6 @@
* Copyright (C) 2018-2019 Intel Corporation. All rights reserved.
*
*
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
*/

#ifdef HAVE_CONFIG_H
diff --git a/mesh/friend.h b/mesh/friend.h
index 2351dee31..ba6053426 100644
--- a/mesh/friend.h
+++ b/mesh/friend.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: LGPL-2.1-or-later */
/*
*
* BlueZ - Bluetooth protocol stack for Linux
@@ -5,16 +6,6 @@
* Copyright (C) 2018 Intel Corporation. All rights reserved.
*
*
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
*/

#define OP_FRND_REQUEST 0x8040
diff --git a/mesh/keyring.c b/mesh/keyring.c
index e8dd1e463..bbe501063 100644
--- a/mesh/keyring.c
+++ b/mesh/keyring.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: LGPL-2.1-or-later
/*
*
* BlueZ - Bluetooth protocol stack for Linux
@@ -5,16 +6,6 @@
* Copyright (C) 2019 Intel Corporation. All rights reserved.
*
*
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
*/

#ifdef HAVE_CONFIG_H
diff --git a/mesh/keyring.h b/mesh/keyring.h
index 2fab6b0dc..c2d38e9ff 100644
--- a/mesh/keyring.h
+++ b/mesh/keyring.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: LGPL-2.1-or-later */
/*
*
* BlueZ - Bluetooth protocol stack for Linux
@@ -5,16 +6,6 @@
* Copyright (C) 2019 Intel Corporation. All rights reserved.
*
*
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
*/

struct keyring_net_key {
diff --git a/mesh/main.c b/mesh/main.c
index 5a3cbf290..4356e3f65 100644
--- a/mesh/main.c
+++ b/mesh/main.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: LGPL-2.1-or-later
/*
*
* BlueZ - Bluetooth protocol stack for Linux
@@ -5,16 +6,6 @@
* Copyright (C) 2017-2019 Intel Corporation. All rights reserved.
*
*
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
*/

#ifdef HAVE_CONFIG_H
diff --git a/mesh/manager.c b/mesh/manager.c
index 8ef681366..d70993e3b 100644
--- a/mesh/manager.c
+++ b/mesh/manager.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: LGPL-2.1-or-later
/*
*
* BlueZ - Bluetooth protocol stack for Linux
@@ -5,16 +6,6 @@
* Copyright (C) 2019 Intel Corporation. All rights reserved.
*
*
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
*/

#ifdef HAVE_CONFIG_H
diff --git a/mesh/manager.h b/mesh/manager.h
index 5a4c7d94a..a45a1f1c4 100644
--- a/mesh/manager.h
+++ b/mesh/manager.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: LGPL-2.1-or-later */
/*
*
* BlueZ - Bluetooth protocol stack for Linux
@@ -5,16 +6,6 @@
* Copyright (C) 2019 Intel Corporation. All rights reserved.
*
*
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
*/

bool manager_dbus_init(struct l_dbus *dbus);
diff --git a/mesh/mesh-config-json.c b/mesh/mesh-config-json.c
index 30c90170d..ec9ecb786 100644
--- a/mesh/mesh-config-json.c
+++ b/mesh/mesh-config-json.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: LGPL-2.1-or-later
/*
*
* BlueZ - Bluetooth protocol stack for Linux
@@ -5,16 +6,6 @@
* Copyright (C) 2018-2019 Intel Corporation. All rights reserved.
*
*
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
*/

#ifdef HAVE_CONFIG_H
diff --git a/mesh/mesh-config.h b/mesh/mesh-config.h
index 738cff9dd..420775829 100644
--- a/mesh/mesh-config.h
+++ b/mesh/mesh-config.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: LGPL-2.1-or-later */
/*
*
* BlueZ - Bluetooth protocol stack for Linux
@@ -5,16 +6,6 @@
* Copyright (C) 2018-2019 Intel Corporation. All rights reserved.
*
*
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
*/

#define MIN_COMP_SIZE 14
diff --git a/mesh/mesh-defs.h b/mesh/mesh-defs.h
index 1a41e987b..43bdf5aab 100644
--- a/mesh/mesh-defs.h
+++ b/mesh/mesh-defs.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: LGPL-2.1-or-later */
/*
*
* BlueZ - Bluetooth protocol stack for Linux
@@ -5,17 +6,6 @@
* Copyright (C) 2018-2019 Intel Corporation. All rights reserved.
*
*
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- *
*/

#define MESH_AD_TYPE_PROVISION 0x29
diff --git a/mesh/mesh-io-api.h b/mesh/mesh-io-api.h
index 7a5b49c60..61f79f224 100644
--- a/mesh/mesh-io-api.h
+++ b/mesh/mesh-io-api.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: LGPL-2.1-or-later */
/*
*
* BlueZ - Bluetooth protocol stack for Linux
@@ -5,16 +6,6 @@
* Copyright (C) 2018 Intel Corporation. All rights reserved.
*
*
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
*/

struct mesh_io_private;
diff --git a/mesh/mesh-io-generic.c b/mesh/mesh-io-generic.c
index 67304d201..4eb7f27ce 100644
--- a/mesh/mesh-io-generic.c
+++ b/mesh/mesh-io-generic.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: LGPL-2.1-or-later
/*
*
* BlueZ - Bluetooth protocol stack for Linux
@@ -5,16 +6,6 @@
* Copyright (C) 2018-2019 Intel Corporation. All rights reserved.
*
*
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
*/

#ifdef HAVE_CONFIG_H
diff --git a/mesh/mesh-io-generic.h b/mesh/mesh-io-generic.h
index 4bf4d5cb7..915e376bf 100644
--- a/mesh/mesh-io-generic.h
+++ b/mesh/mesh-io-generic.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: LGPL-2.1-or-later */
/*
*
* BlueZ - Bluetooth protocol stack for Linux
@@ -5,16 +6,6 @@
* Copyright (C) 2018 Intel Corporation. All rights reserved.
*
*
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
*/

extern const struct mesh_io_api mesh_io_generic;
diff --git a/mesh/mesh-io.c b/mesh/mesh-io.c
index c4eaecefd..62fc5d12e 100644
--- a/mesh/mesh-io.c
+++ b/mesh/mesh-io.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: LGPL-2.1-or-later
/*
*
* BlueZ - Bluetooth protocol stack for Linux
@@ -5,16 +6,6 @@
* Copyright (C) 2018 Intel Corporation. All rights reserved.
*
*
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
*/

#ifdef HAVE_CONFIG_H
diff --git a/mesh/mesh-io.h b/mesh/mesh-io.h
index fc0422020..b11c6c6e1 100644
--- a/mesh/mesh-io.h
+++ b/mesh/mesh-io.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: LGPL-2.1-or-later */
/*
*
* BlueZ - Bluetooth protocol stack for Linux
@@ -5,16 +6,6 @@
* Copyright (C) 2018 Intel Corporation. All rights reserved.
*
*
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
*/

struct mesh_io;
diff --git a/mesh/mesh-mgmt.c b/mesh/mesh-mgmt.c
index 2cf2ebac2..754093dbc 100644
--- a/mesh/mesh-mgmt.c
+++ b/mesh/mesh-mgmt.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: LGPL-2.1-or-later
/*
*
* BlueZ - Bluetooth protocol stack for Linux
@@ -5,16 +6,6 @@
* Copyright (C) 2019 SILVAIR sp. z o.o. All rights reserved.
*
*
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
*/

#ifdef HAVE_CONFIG_H
diff --git a/mesh/mesh-mgmt.h b/mesh/mesh-mgmt.h
index 93ad7995e..90ac14e73 100644
--- a/mesh/mesh-mgmt.h
+++ b/mesh/mesh-mgmt.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: LGPL-2.1-or-later */
/*
*
* BlueZ - Bluetooth protocol stack for Linux
@@ -5,16 +6,6 @@
* Copyright (C) 2019 SILVAIR sp. z o.o. All rights reserved.
*
*
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
*/
#include <stdbool.h>

diff --git a/mesh/mesh.c b/mesh/mesh.c
index bc170371d..f29e8b6be 100644
--- a/mesh/mesh.c
+++ b/mesh/mesh.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: LGPL-2.1-or-later
/*
*
* BlueZ - Bluetooth protocol stack for Linux
@@ -5,16 +6,6 @@
* Copyright (C) 2018-2019 Intel Corporation. All rights reserved.
*
*
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
*/

#ifdef HAVE_CONFIG_H
diff --git a/mesh/mesh.h b/mesh/mesh.h
index eb887723d..0f77ebc58 100644
--- a/mesh/mesh.h
+++ b/mesh/mesh.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: LGPL-2.1-or-later */
/*
*
* BlueZ - Bluetooth protocol stack for Linux
@@ -5,16 +6,6 @@
* Copyright (C) 2018-2019 Intel Corporation. All rights reserved.
*
*
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
*/

#define BLUEZ_MESH_NAME "org.bluez.mesh"
diff --git a/mesh/model.c b/mesh/model.c
index 5716f5e22..c8eb8c607 100644
--- a/mesh/model.c
+++ b/mesh/model.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: LGPL-2.1-or-later
/*
*
* BlueZ - Bluetooth protocol stack for Linux
@@ -5,16 +6,6 @@
* Copyright (C) 2018-2020 Intel Corporation. All rights reserved.
*
*
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
*/

#ifdef HAVE_CONFIG_H
diff --git a/mesh/model.h b/mesh/model.h
index 2eec761a0..8df4f205f 100644
--- a/mesh/model.h
+++ b/mesh/model.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: LGPL-2.1-or-later */
/*
*
* BlueZ - Bluetooth protocol stack for Linux
@@ -5,16 +6,6 @@
* Copyright (C) 2018-2020 Intel Corporation. All rights reserved.
*
*
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
*/

struct mesh_model;
diff --git a/mesh/net-keys.c b/mesh/net-keys.c
index 7dfabf922..e42cac70c 100644
--- a/mesh/net-keys.c
+++ b/mesh/net-keys.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: LGPL-2.1-or-later
/*
*
* BlueZ - Bluetooth protocol stack for Linux
@@ -5,16 +6,6 @@
* Copyright (C) 2019 Intel Corporation. All rights reserved.
*
*
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
*/

#ifdef HAVE_CONFIG_H
diff --git a/mesh/net-keys.h b/mesh/net-keys.h
index 4f480fcda..70b3d22c3 100644
--- a/mesh/net-keys.h
+++ b/mesh/net-keys.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: LGPL-2.1-or-later */
/*
*
* BlueZ - Bluetooth protocol stack for Linux
@@ -5,16 +6,6 @@
* Copyright (C) 2019 Intel Corporation. All rights reserved.
*
*
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
*/

#define BEACON_TYPE_SNB 0x01
diff --git a/mesh/net.c b/mesh/net.c
index 6c7311732..01a475d74 100644
--- a/mesh/net.c
+++ b/mesh/net.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: LGPL-2.1-or-later
/*
*
* BlueZ - Bluetooth protocol stack for Linux
@@ -5,16 +6,6 @@
* Copyright (C) 2018-2019 Intel Corporation. All rights reserved.
*
*
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
*/

#ifdef HAVE_CONFIG_H
diff --git a/mesh/net.h b/mesh/net.h
index 7bec6d0fc..4dbc94b8b 100644
--- a/mesh/net.h
+++ b/mesh/net.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: LGPL-2.1-or-later */
/*
*
* BlueZ - Bluetooth protocol stack for Linux
@@ -5,16 +6,6 @@
* Copyright (C) 2018-2019 Intel Corporation. All rights reserved.
*
*
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
*/

#ifndef __packed
diff --git a/mesh/node.c b/mesh/node.c
index f7ac5ff67..76d8fd6e9 100644
--- a/mesh/node.c
+++ b/mesh/node.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: LGPL-2.1-or-later
/*
*
* BlueZ - Bluetooth protocol stack for Linux
@@ -5,16 +6,6 @@
* Copyright (C) 2017-2020 Intel Corporation. All rights reserved.
*
*
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
*/

#ifdef HAVE_CONFIG_H
diff --git a/mesh/node.h b/mesh/node.h
index 7874b8692..30d53db33 100644
--- a/mesh/node.h
+++ b/mesh/node.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: LGPL-2.1-or-later */
/*
*
* BlueZ - Bluetooth protocol stack for Linux
@@ -5,16 +6,6 @@
* Copyright (C) 2018-2019 Intel Corporation. All rights reserved.
*
*
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
*/

struct mesh_net;
diff --git a/mesh/pb-adv.c b/mesh/pb-adv.c
index ae5b81391..c74dae79f 100644
--- a/mesh/pb-adv.c
+++ b/mesh/pb-adv.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: LGPL-2.1-or-later
/*
*
* BlueZ - Bluetooth protocol stack for Linux
@@ -5,16 +6,6 @@
* Copyright (C) 2018-2019 Intel Corporation. All rights reserved.
*
*
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
*/

#ifdef HAVE_CONFIG_H
diff --git a/mesh/pb-adv.h b/mesh/pb-adv.h
index 80d53d234..5b1e03dae 100644
--- a/mesh/pb-adv.h
+++ b/mesh/pb-adv.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: LGPL-2.1-or-later */
/*
*
* BlueZ - Bluetooth protocol stack for Linux
@@ -5,16 +6,6 @@
* Copyright (C) 2018 Intel Corporation. All rights reserved.
*
*
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
*/

bool pb_adv_reg(bool initiator, mesh_prov_open_func_t open_cb,
diff --git a/mesh/prov-acceptor.c b/mesh/prov-acceptor.c
index 96f7e15ad..a03ee1ce5 100644
--- a/mesh/prov-acceptor.c
+++ b/mesh/prov-acceptor.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: LGPL-2.1-or-later
/*
*
* BlueZ - Bluetooth protocol stack for Linux
@@ -5,16 +6,6 @@
* Copyright (C) 2018-2019 Intel Corporation. All rights reserved.
*
*
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
*/

#ifdef HAVE_CONFIG_H
diff --git a/mesh/prov-initiator.c b/mesh/prov-initiator.c
index 4de4df62d..8399282ee 100644
--- a/mesh/prov-initiator.c
+++ b/mesh/prov-initiator.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: LGPL-2.1-or-later
/*
*
* BlueZ - Bluetooth protocol stack for Linux
@@ -5,16 +6,6 @@
* Copyright (C) 2018-2019 Intel Corporation. All rights reserved.
*
*
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
*/

#ifdef HAVE_CONFIG_H
diff --git a/mesh/prov.h b/mesh/prov.h
index 11b20b31f..99e864c50 100644
--- a/mesh/prov.h
+++ b/mesh/prov.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: LGPL-2.1-or-later */
/*
*
* BlueZ - Bluetooth protocol stack for Linux
@@ -5,16 +6,6 @@
* Copyright (C) 2018 Intel Corporation. All rights reserved.
*
*
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
*/

#ifndef __packed
diff --git a/mesh/provision.h b/mesh/provision.h
index 1d78ed8e2..1a11b691b 100644
--- a/mesh/provision.h
+++ b/mesh/provision.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: LGPL-2.1-or-later */
/*
*
* BlueZ - Bluetooth protocol stack for Linux
@@ -5,16 +6,6 @@
* Copyright (C) 2018 Intel Corporation. All rights reserved.
*
*
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
*/


diff --git a/mesh/rpl.c b/mesh/rpl.c
index 792c52ad6..7cea8e346 100644
--- a/mesh/rpl.c
+++ b/mesh/rpl.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: LGPL-2.1-or-later
/*
*
* BlueZ - Bluetooth protocol stack for Linux
@@ -5,16 +6,6 @@
* Copyright (C) 2020 Intel Corporation. All rights reserved.
*
*
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
*/

#ifdef HAVE_CONFIG_H
diff --git a/mesh/rpl.h b/mesh/rpl.h
index 2bbbdc9b9..9e988e7c5 100644
--- a/mesh/rpl.h
+++ b/mesh/rpl.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: LGPL-2.1-or-later */
/*
*
* BlueZ - Bluetooth protocol stack for Linux
@@ -5,16 +6,6 @@
* Copyright (C) 2020 Intel Corporation. All rights reserved.
*
*
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
*/

struct mesh_rpl {
diff --git a/mesh/util.c b/mesh/util.c
index 7d283331a..308e7d998 100644
--- a/mesh/util.c
+++ b/mesh/util.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: LGPL-2.1-or-later
/*
*
* BlueZ - Bluetooth protocol stack for Linux
@@ -5,16 +6,6 @@
* Copyright (C) 2018 Intel Corporation. All rights reserved.
*
*
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
*/

#ifdef HAVE_CONFIG_H
diff --git a/mesh/util.h b/mesh/util.h
index 93c2d8687..085ec3330 100644
--- a/mesh/util.h
+++ b/mesh/util.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: LGPL-2.1-or-later */
/*
*
* BlueZ - Bluetooth protocol stack for Linux
@@ -5,16 +6,6 @@
* Copyright (C) 2018 Intel Corporation. All rights reserved.
*
*
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
*/

uint32_t get_timestamp_secs(void);
--
2.25.4

2020-09-21 19:37:09

by Tedd Ho-Jeong An

[permalink] [raw]
Subject: [BlueZ V4 RESEND 16/20] src: Add SPDX License Identifier

From: Tedd Ho-Jeong An <[email protected]>

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
---
src/adapter.c | 15 +--------------
src/adapter.h | 15 +--------------
src/adv_monitor.c | 11 +----------
src/adv_monitor.h | 11 +----------
src/advertising.c | 11 +----------
src/advertising.h | 11 +----------
src/agent.c | 15 +--------------
src/agent.h | 15 +--------------
src/attrib-server.c | 15 +--------------
src/attrib-server.h | 15 +--------------
src/backtrace.c | 15 +--------------
src/backtrace.h | 15 +--------------
src/dbus-common.c | 15 +--------------
src/dbus-common.h | 15 +--------------
src/device.c | 15 +--------------
src/device.h | 15 +--------------
src/eir.c | 15 +--------------
src/eir.h | 15 +--------------
src/error.c | 15 +--------------
src/error.h | 15 +--------------
src/gatt-client.c | 11 +----------
src/gatt-client.h | 11 +----------
src/gatt-database.c | 11 +----------
src/gatt-database.h | 11 +----------
src/hcid.h | 15 +--------------
src/log.c | 15 +--------------
src/log.h | 15 +--------------
src/main.c | 15 +--------------
src/oui.c | 15 +--------------
src/oui.h | 15 +--------------
src/plugin.c | 15 +--------------
src/plugin.h | 15 +--------------
src/profile.c | 15 +--------------
src/profile.h | 15 +--------------
src/rfkill.c | 15 +--------------
src/sdp-client.c | 15 +--------------
src/sdp-client.h | 15 +--------------
src/sdp-xml.c | 15 +--------------
src/sdp-xml.h | 15 +--------------
src/sdpd-database.c | 15 +--------------
src/sdpd-request.c | 15 +--------------
src/sdpd-server.c | 15 +--------------
src/sdpd-service.c | 15 +--------------
src/sdpd.h | 15 +--------------
src/service.c | 15 +--------------
src/service.h | 15 +--------------
src/shared/ad.c | 15 +--------------
src/shared/ad.h | 15 +--------------
src/shared/att-types.h | 15 +--------------
src/shared/att.c | 15 +--------------
src/shared/att.h | 15 +--------------
src/shared/btp.c | 15 +--------------
src/shared/btp.h | 15 +--------------
src/shared/btsnoop.c | 15 +--------------
src/shared/btsnoop.h | 15 +--------------
src/shared/crypto.c | 15 +--------------
src/shared/crypto.h | 15 +--------------
src/shared/ecc.c | 21 +--------------------
src/shared/ecc.h | 21 +--------------------
src/shared/gap.c | 15 +--------------
src/shared/gap.h | 15 +--------------
src/shared/gatt-client.c | 15 +--------------
src/shared/gatt-client.h | 15 +--------------
src/shared/gatt-db.c | 15 +--------------
src/shared/gatt-db.h | 15 +--------------
src/shared/gatt-helpers.c | 15 +--------------
src/shared/gatt-helpers.h | 15 +--------------
src/shared/gatt-server.c | 15 +--------------
src/shared/gatt-server.h | 15 +--------------
src/shared/hci-crypto.c | 15 +--------------
src/shared/hci-crypto.h | 15 +--------------
src/shared/hci.c | 15 +--------------
src/shared/hci.h | 15 +--------------
src/shared/hfp.c | 15 +--------------
src/shared/hfp.h | 15 +--------------
src/shared/io-ell.c | 15 +--------------
src/shared/io-glib.c | 15 +--------------
src/shared/io-mainloop.c | 15 +--------------
src/shared/io.h | 15 +--------------
src/shared/log.c | 15 +--------------
src/shared/log.h | 15 +--------------
src/shared/mainloop-ell.c | 12 +-----------
src/shared/mainloop-glib.c | 15 +--------------
src/shared/mainloop-notify.c | 15 +--------------
src/shared/mainloop-notify.h | 15 +--------------
src/shared/mainloop.c | 15 +--------------
src/shared/mainloop.h | 15 +--------------
src/shared/mgmt.c | 15 +--------------
src/shared/mgmt.h | 15 +--------------
src/shared/pcap.c | 15 +--------------
src/shared/pcap.h | 15 +--------------
src/shared/queue.c | 15 +--------------
src/shared/queue.h | 15 +--------------
src/shared/ringbuf.c | 15 +--------------
src/shared/ringbuf.h | 15 +--------------
src/shared/shell.c | 15 +--------------
src/shared/shell.h | 15 +--------------
src/shared/tester.c | 15 +--------------
src/shared/tester.h | 15 +--------------
src/shared/timeout-ell.c | 11 +----------
src/shared/timeout-glib.c | 11 +----------
src/shared/timeout-mainloop.c | 11 +----------
src/shared/timeout.h | 11 +----------
src/shared/tty.h | 15 +--------------
src/shared/uhid.c | 15 +--------------
src/shared/uhid.h | 15 +--------------
src/shared/util.c | 15 +--------------
src/shared/util.h | 15 +--------------
src/storage.c | 15 +--------------
src/storage.h | 15 +--------------
src/textfile.c | 15 +--------------
src/textfile.h | 15 +--------------
src/uinput.h | 15 +--------------
src/uuid-helper.c | 15 +--------------
src/uuid-helper.h | 15 +--------------
115 files changed, 115 insertions(+), 1571 deletions(-)

diff --git a/src/adapter.c b/src/adapter.c
index b2bd8b3f1..c0053000a 100644
--- a/src/adapter.c
+++ b/src/adapter.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
/*
*
* BlueZ - Bluetooth protocol stack for Linux
@@ -6,20 +7,6 @@
* Copyright (C) 2004-2010 Marcel Holtmann <[email protected]>
*
*
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
- *
*/

#ifdef HAVE_CONFIG_H
diff --git a/src/adapter.h b/src/adapter.h
index b4d872b15..dcc574857 100644
--- a/src/adapter.h
+++ b/src/adapter.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
/*
*
* BlueZ - Bluetooth protocol stack for Linux
@@ -6,20 +7,6 @@
* Copyright (C) 2004-2010 Marcel Holtmann <[email protected]>
*
*
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
- *
*/

#include <stdbool.h>
diff --git a/src/adv_monitor.c b/src/adv_monitor.c
index 737da1c90..e441a5566 100644
--- a/src/adv_monitor.c
+++ b/src/adv_monitor.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: LGPL-2.1-or-later
/*
*
* BlueZ - Bluetooth protocol stack for Linux
@@ -5,16 +6,6 @@
* Copyright (C) 2020 Google LLC
*
*
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
*/

#ifdef HAVE_CONFIG_H
diff --git a/src/adv_monitor.h b/src/adv_monitor.h
index 69ea348f8..5cb372217 100644
--- a/src/adv_monitor.h
+++ b/src/adv_monitor.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: LGPL-2.1-or-later */
/*
*
* BlueZ - Bluetooth protocol stack for Linux
@@ -5,16 +6,6 @@
* Copyright (C) 2020 Google LLC
*
*
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
*/

#ifndef __ADV_MONITOR_H
diff --git a/src/advertising.c b/src/advertising.c
index e5f25948d..c03869e50 100644
--- a/src/advertising.c
+++ b/src/advertising.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
/*
*
* BlueZ - Bluetooth protocol stack for Linux
@@ -5,16 +6,6 @@
* Copyright (C) 2015 Google Inc.
*
*
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
*/

#ifdef HAVE_CONFIG_H
diff --git a/src/advertising.h b/src/advertising.h
index 50d86674b..0e31a277b 100644
--- a/src/advertising.h
+++ b/src/advertising.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
/*
*
* BlueZ - Bluetooth protocol stack for Linux
@@ -5,16 +6,6 @@
* Copyright (C) 2015 Google Inc.
*
*
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
*/

struct btd_adapter;
diff --git a/src/agent.c b/src/agent.c
index e0ffcd22f..770a63838 100644
--- a/src/agent.c
+++ b/src/agent.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
/*
*
* BlueZ - Bluetooth protocol stack for Linux
@@ -6,20 +7,6 @@
* Copyright (C) 2004-2010 Marcel Holtmann <[email protected]>
*
*
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
- *
*/

#ifdef HAVE_CONFIG_H
diff --git a/src/agent.h b/src/agent.h
index 1438b9e6d..bd0502030 100644
--- a/src/agent.h
+++ b/src/agent.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
/*
*
* BlueZ - Bluetooth protocol stack for Linux
@@ -6,20 +7,6 @@
* Copyright (C) 2004-2010 Marcel Holtmann <[email protected]>
*
*
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
- *
*/

#define IO_CAPABILITY_DISPLAYONLY 0x00
diff --git a/src/attrib-server.c b/src/attrib-server.c
index 7c15a4e8f..91a10b274 100644
--- a/src/attrib-server.c
+++ b/src/attrib-server.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
/*
*
* BlueZ - Bluetooth protocol stack for Linux
@@ -6,20 +7,6 @@
* Copyright (C) 2010 Marcel Holtmann <[email protected]>
*
*
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
- *
*/

#ifdef HAVE_CONFIG_H
diff --git a/src/attrib-server.h b/src/attrib-server.h
index 063cb6621..7cdbe3b96 100644
--- a/src/attrib-server.h
+++ b/src/attrib-server.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
/*
*
* BlueZ - Bluetooth protocol stack for Linux
@@ -6,20 +7,6 @@
* Copyright (C) 2010 Marcel Holtmann <[email protected]>
*
*
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
- *
*/

uint16_t attrib_db_find_avail(struct btd_adapter *adapter, bt_uuid_t *svc_uuid,
diff --git a/src/backtrace.c b/src/backtrace.c
index c43873354..50f71e88a 100644
--- a/src/backtrace.c
+++ b/src/backtrace.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
/*
*
* BlueZ - Bluetooth protocol stack for Linux
@@ -5,20 +6,6 @@
* Copyright (C) 2004-2010 Marcel Holtmann <[email protected]>
*
*
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
- *
*/

#ifdef HAVE_CONFIG_H
diff --git a/src/backtrace.h b/src/backtrace.h
index b3eef6dd9..d6a1dab5b 100644
--- a/src/backtrace.h
+++ b/src/backtrace.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
/*
*
* BlueZ - Bluetooth protocol stack for Linux
@@ -5,20 +6,6 @@
* Copyright (C) 2004-2010 Marcel Holtmann <[email protected]>
*
*
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
- *
*/

#include <stdint.h>
diff --git a/src/dbus-common.c b/src/dbus-common.c
index 6e2097a2d..384f27700 100644
--- a/src/dbus-common.c
+++ b/src/dbus-common.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
/*
*
* BlueZ - Bluetooth protocol stack for Linux
@@ -7,20 +8,6 @@
* Copyright (C) 2005-2007 Johan Hedberg <[email protected]>
*
*
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
- *
*/

#ifdef HAVE_CONFIG_H
diff --git a/src/dbus-common.h b/src/dbus-common.h
index fbf4acd28..11c64cc77 100644
--- a/src/dbus-common.h
+++ b/src/dbus-common.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
/* *
* BlueZ - Bluetooth protocol stack for Linux
*
@@ -5,20 +6,6 @@
* Copyright (C) 2004-2010 Marcel Holtmann <[email protected]>
*
*
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
- *
*/

void dict_append_entry(DBusMessageIter *dict,
diff --git a/src/device.c b/src/device.c
index 3e7784034..a4b5968d4 100644
--- a/src/device.c
+++ b/src/device.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
/*
*
* BlueZ - Bluetooth protocol stack for Linux
@@ -6,20 +7,6 @@
* Copyright (C) 2004-2010 Marcel Holtmann <[email protected]>
*
*
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
- *
*/

#ifdef HAVE_CONFIG_H
diff --git a/src/device.h b/src/device.h
index 3cd090786..4ae9abe0d 100644
--- a/src/device.h
+++ b/src/device.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
/*
*
* BlueZ - Bluetooth protocol stack for Linux
@@ -6,20 +7,6 @@
* Copyright (C) 2004-2010 Marcel Holtmann <[email protected]>
*
*
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
- *
*/

#define DEVICE_INTERFACE "org.bluez.Device1"
diff --git a/src/eir.c b/src/eir.c
index fa52a2bd8..0f5d14fcd 100644
--- a/src/eir.c
+++ b/src/eir.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
/*
*
* BlueZ - Bluetooth protocol stack for Linux
@@ -6,20 +7,6 @@
* Copyright (C) 2011 Marcel Holtmann <[email protected]>
*
*
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
- *
*/

#ifdef HAVE_CONFIG_H
diff --git a/src/eir.h b/src/eir.h
index c868177a6..6154e23ec 100644
--- a/src/eir.h
+++ b/src/eir.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
/*
*
* BlueZ - Bluetooth protocol stack for Linux
@@ -6,20 +7,6 @@
* Copyright (C) 2011 Marcel Holtmann <[email protected]>
*
*
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
- *
*/

#include <glib.h>
diff --git a/src/error.c b/src/error.c
index 89517075e..dd85cd288 100644
--- a/src/error.c
+++ b/src/error.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
/*
*
* BlueZ - Bluetooth protocol stack for Linux
@@ -7,20 +8,6 @@
* Copyright (C) 2007-2008 Fabien Chevalier <[email protected]>
*
*
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
- *
*/

#ifdef HAVE_CONFIG_H
diff --git a/src/error.h b/src/error.h
index 7c8cad066..7fcddaf4a 100644
--- a/src/error.h
+++ b/src/error.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
/*
*
* BlueZ - Bluetooth protocol stack for Linux
@@ -7,20 +8,6 @@
* Copyright (C) 2007-2008 Fabien Chevalier <[email protected]>
*
*
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
- *
*/

#include <dbus/dbus.h>
diff --git a/src/gatt-client.c b/src/gatt-client.c
index c706307c7..38b0b5170 100644
--- a/src/gatt-client.c
+++ b/src/gatt-client.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
/*
*
* BlueZ - Bluetooth protocol stack for Linux
@@ -5,16 +6,6 @@
* Copyright (C) 2014 Google Inc.
*
*
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
*/

#ifdef HAVE_CONFIG_H
diff --git a/src/gatt-client.h b/src/gatt-client.h
index 92a925546..b6539207e 100644
--- a/src/gatt-client.h
+++ b/src/gatt-client.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
/*
*
* BlueZ - Bluetooth protocol stack for Linux
@@ -5,16 +6,6 @@
* Copyright (C) 2014 Google Inc.
*
*
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
*/

struct btd_gatt_client;
diff --git a/src/gatt-database.c b/src/gatt-database.c
index e7e4a36a6..2b22add88 100644
--- a/src/gatt-database.c
+++ b/src/gatt-database.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
/*
*
* BlueZ - Bluetooth protocol stack for Linux
@@ -5,16 +6,6 @@
* Copyright (C) 2015 Google Inc.
*
*
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
*/

#ifdef HAVE_CONFIG_H
diff --git a/src/gatt-database.h b/src/gatt-database.h
index 154d3243f..30ae68e7e 100644
--- a/src/gatt-database.h
+++ b/src/gatt-database.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
/*
*
* BlueZ - Bluetooth protocol stack for Linux
@@ -5,16 +6,6 @@
* Copyright (C) 2015 Google Inc.
*
*
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
*/

struct btd_gatt_database;
diff --git a/src/hcid.h b/src/hcid.h
index 3624ba6ea..95d4b9665 100644
--- a/src/hcid.h
+++ b/src/hcid.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
/*
*
* BlueZ - Bluetooth protocol stack for Linux
@@ -7,20 +8,6 @@
* Copyright (C) 2002-2010 Marcel Holtmann <[email protected]>
*
*
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
- *
*/

typedef enum {
diff --git a/src/log.c b/src/log.c
index a42c5941d..0155a6bba 100644
--- a/src/log.c
+++ b/src/log.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
/*
*
* BlueZ - Bluetooth protocol stack for Linux
@@ -5,20 +6,6 @@
* Copyright (C) 2004-2010 Marcel Holtmann <[email protected]>
*
*
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
- *
*/

#ifdef HAVE_CONFIG_H
diff --git a/src/log.h b/src/log.h
index e83431151..74941beb2 100644
--- a/src/log.h
+++ b/src/log.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
/*
*
* BlueZ - Bluetooth protocol stack for Linux
@@ -5,20 +6,6 @@
* Copyright (C) 2004-2010 Marcel Holtmann <[email protected]>
*
*
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
- *
*/

#include <stdint.h>
diff --git a/src/main.c b/src/main.c
index 038f867b5..77be77668 100644
--- a/src/main.c
+++ b/src/main.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
/*
*
* BlueZ - Bluetooth protocol stack for Linux
@@ -7,20 +8,6 @@
* Copyright (C) 2002-2010 Marcel Holtmann <[email protected]>
*
*
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
- *
*/

#ifdef HAVE_CONFIG_H
diff --git a/src/oui.c b/src/oui.c
index 8059c0a89..c434f416f 100644
--- a/src/oui.c
+++ b/src/oui.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
/*
*
* BlueZ - Bluetooth protocol stack for Linux
@@ -5,20 +6,6 @@
* Copyright (C) 2004-2010 Marcel Holtmann <[email protected]>
*
*
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
- *
*/

#ifdef HAVE_CONFIG_H
diff --git a/src/oui.h b/src/oui.h
index 2ddc27fef..bde933f4c 100644
--- a/src/oui.h
+++ b/src/oui.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
/*
*
* BlueZ - Bluetooth protocol stack for Linux
@@ -5,20 +6,6 @@
* Copyright (C) 2004-2010 Marcel Holtmann <[email protected]>
*
*
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
- *
*/

char *batocomp(const bdaddr_t *ba);
diff --git a/src/plugin.c b/src/plugin.c
index 39310a7db..6fe394f5f 100644
--- a/src/plugin.c
+++ b/src/plugin.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
/*
*
* BlueZ - Bluetooth protocol stack for Linux
@@ -5,20 +6,6 @@
* Copyright (C) 2004-2010 Marcel Holtmann <[email protected]>
*
*
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
- *
*/

#ifdef HAVE_CONFIG_H
diff --git a/src/plugin.h b/src/plugin.h
index 89c7b8515..a5f92a557 100644
--- a/src/plugin.h
+++ b/src/plugin.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
/*
*
* BlueZ - Bluetooth protocol stack for Linux
@@ -5,20 +6,6 @@
* Copyright (C) 2004-2010 Marcel Holtmann <[email protected]>
*
*
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
- *
*/
#define BLUETOOTH_PLUGIN_PRIORITY_LOW -100
#define BLUETOOTH_PLUGIN_PRIORITY_DEFAULT 0
diff --git a/src/profile.c b/src/profile.c
index 6961a107b..5e460b639 100644
--- a/src/profile.c
+++ b/src/profile.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
/*
*
* BlueZ - Bluetooth protocol stack for Linux
@@ -5,20 +6,6 @@
* Copyright (C) 2012 Intel Corporation. All rights reserved.
*
*
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
- *
*/

#ifdef HAVE_CONFIG_H
diff --git a/src/profile.h b/src/profile.h
index 95523e50a..6827f8481 100644
--- a/src/profile.h
+++ b/src/profile.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
/*
*
* BlueZ - Bluetooth protocol stack for Linux
@@ -5,20 +6,6 @@
* Copyright (C) 2012 Intel Corporation. All rights reserved.
*
*
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
- *
*/

#define BTD_PROFILE_PRIORITY_LOW 0
diff --git a/src/rfkill.c b/src/rfkill.c
index fb2d11306..6309a7768 100644
--- a/src/rfkill.c
+++ b/src/rfkill.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
/*
*
* BlueZ - Bluetooth protocol stack for Linux
@@ -5,20 +6,6 @@
* Copyright (C) 2004-2010 Marcel Holtmann <[email protected]>
*
*
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
- *
*/

#ifdef HAVE_CONFIG_H
diff --git a/src/sdp-client.c b/src/sdp-client.c
index b92a083af..55f5bc323 100644
--- a/src/sdp-client.c
+++ b/src/sdp-client.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
/*
*
* BlueZ - Bluetooth protocol stack for Linux
@@ -5,20 +6,6 @@
* Copyright (C) 2004-2011 Marcel Holtmann <[email protected]>
*
*
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
- *
*/

#ifdef HAVE_CONFIG_H
diff --git a/src/sdp-client.h b/src/sdp-client.h
index 3a7212fd2..9ad182e37 100644
--- a/src/sdp-client.h
+++ b/src/sdp-client.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
/*
*
* BlueZ - Bluetooth protocol stack for Linux
@@ -5,20 +6,6 @@
* Copyright (C) 2004-2010 Marcel Holtmann <[email protected]>
*
*
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
- *
*/

typedef void (*bt_callback_t) (sdp_list_t *recs, int err, gpointer user_data);
diff --git a/src/sdp-xml.c b/src/sdp-xml.c
index 6f831737d..5efa62ab8 100644
--- a/src/sdp-xml.c
+++ b/src/sdp-xml.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
/*
*
* BlueZ - Bluetooth protocol stack for Linux
@@ -5,20 +6,6 @@
* Copyright (C) 2005-2010 Marcel Holtmann <[email protected]>
*
*
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
- *
*/

#ifdef HAVE_CONFIG_H
diff --git a/src/sdp-xml.h b/src/sdp-xml.h
index 80a4f446d..d9cdbccc4 100644
--- a/src/sdp-xml.h
+++ b/src/sdp-xml.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
/*
*
* BlueZ - Bluetooth protocol stack for Linux
@@ -5,20 +6,6 @@
* Copyright (C) 2005-2010 Marcel Holtmann <[email protected]>
*
*
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
- *
*/

void convert_sdp_record_to_xml(sdp_record_t *rec,
diff --git a/src/sdpd-database.c b/src/sdpd-database.c
index 843b6d02b..35617abec 100644
--- a/src/sdpd-database.c
+++ b/src/sdpd-database.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
/*
*
* BlueZ - Bluetooth protocol stack for Linux
@@ -8,20 +9,6 @@
* Copyright (C) 2002-2003 Stephen Crane <[email protected]>
*
*
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
- *
*/

#ifdef HAVE_CONFIG_H
diff --git a/src/sdpd-request.c b/src/sdpd-request.c
index deaed266f..033d1e5bf 100644
--- a/src/sdpd-request.c
+++ b/src/sdpd-request.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
/*
*
* BlueZ - Bluetooth protocol stack for Linux
@@ -8,20 +9,6 @@
* Copyright (C) 2002-2003 Stephen Crane <[email protected]>
*
*
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
- *
*/

#ifdef HAVE_CONFIG_H
diff --git a/src/sdpd-server.c b/src/sdpd-server.c
index ef35309ce..dfd8b1f00 100644
--- a/src/sdpd-server.c
+++ b/src/sdpd-server.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
/*
*
* BlueZ - Bluetooth protocol stack for Linux
@@ -8,20 +9,6 @@
* Copyright (C) 2002-2003 Stephen Crane <[email protected]>
*
*
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
- *
*/

#ifdef HAVE_CONFIG_H
diff --git a/src/sdpd-service.c b/src/sdpd-service.c
index c3ee3eb48..012438558 100644
--- a/src/sdpd-service.c
+++ b/src/sdpd-service.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
/*
*
* BlueZ - Bluetooth protocol stack for Linux
@@ -8,20 +9,6 @@
* Copyright (C) 2002-2003 Stephen Crane <[email protected]>
*
*
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
- *
*/

#ifdef HAVE_CONFIG_H
diff --git a/src/sdpd.h b/src/sdpd.h
index 49cd98a2b..257411f03 100644
--- a/src/sdpd.h
+++ b/src/sdpd.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
/*
*
* BlueZ - Bluetooth protocol stack for Linux
@@ -8,20 +9,6 @@
* Copyright (C) 2002-2003 Stephen Crane <[email protected]>
*
*
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
- *
*/

#ifdef SDP_DEBUG
diff --git a/src/service.c b/src/service.c
index e4d747a6e..d810fc3b0 100644
--- a/src/service.c
+++ b/src/service.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
/*
*
* BlueZ - Bluetooth protocol stack for Linux
@@ -5,20 +6,6 @@
* Copyright (C) 2012-2013 BMW Car IT GmbH. All rights reserved.
*
*
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
- *
*/

#ifdef HAVE_CONFIG_H
diff --git a/src/service.h b/src/service.h
index 6f1edfb8f..88530cc17 100644
--- a/src/service.h
+++ b/src/service.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
/*
*
* BlueZ - Bluetooth protocol stack for Linux
@@ -5,20 +6,6 @@
* Copyright (C) 2012-2013 BMW Car IT GmbH. All rights reserved.
*
*
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
- *
*/

typedef enum {
diff --git a/src/shared/ad.c b/src/shared/ad.c
index 14a2709b1..a34d7a147 100644
--- a/src/shared/ad.c
+++ b/src/shared/ad.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: LGPL-2.1-or-later
/*
*
* BlueZ - Bluetooth protocol stack for Linux
@@ -5,20 +6,6 @@
* Copyright (C) 2015 Google Inc.
*
*
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
- *
*/

#ifdef HAVE_CONFIG_H
diff --git a/src/shared/ad.h b/src/shared/ad.h
index 17e3b631b..83eacab66 100644
--- a/src/shared/ad.h
+++ b/src/shared/ad.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: LGPL-2.1-or-later */
/*
*
* BlueZ - Bluetooth protocol stack for Linux
@@ -5,20 +6,6 @@
* Copyright (C) 2015 Google Inc.
*
*
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
- *
*/

#include <inttypes.h>
diff --git a/src/shared/att-types.h b/src/shared/att-types.h
index 99b108990..7108b4e94 100644
--- a/src/shared/att-types.h
+++ b/src/shared/att-types.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: LGPL-2.1-or-later */
/*
*
* BlueZ - Bluetooth protocol stack for Linux
@@ -5,20 +6,6 @@
* Copyright (C) 2014 Google Inc.
*
*
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
- *
*/

#include <stdint.h>
diff --git a/src/shared/att.c b/src/shared/att.c
index 58f23dfcb..429ba6696 100644
--- a/src/shared/att.c
+++ b/src/shared/att.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: LGPL-2.1-or-later
/*
*
* BlueZ - Bluetooth protocol stack for Linux
@@ -5,20 +6,6 @@
* Copyright (C) 2014 Google Inc.
*
*
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
- *
*/

#ifdef HAVE_CONFIG_H
diff --git a/src/shared/att.h b/src/shared/att.h
index ed20bb5b8..1938fc724 100644
--- a/src/shared/att.h
+++ b/src/shared/att.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: LGPL-2.1-or-later */
/*
*
* BlueZ - Bluetooth protocol stack for Linux
@@ -5,20 +6,6 @@
* Copyright (C) 2014 Google Inc.
*
*
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
- *
*/

#include <stdbool.h>
diff --git a/src/shared/btp.c b/src/shared/btp.c
index 7eea241a2..e54eb830f 100644
--- a/src/shared/btp.c
+++ b/src/shared/btp.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: LGPL-2.1-or-later
/*
*
* BlueZ - Bluetooth protocol stack for Linux
@@ -5,20 +6,6 @@
* Copyright (C) 2012-2017 Intel Corporation. All rights reserved.
*
*
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
- *
*/

#include <stdbool.h>
diff --git a/src/shared/btp.h b/src/shared/btp.h
index cc71a71df..a99fdf075 100644
--- a/src/shared/btp.h
+++ b/src/shared/btp.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: LGPL-2.1-or-later */
/*
*
* BlueZ - Bluetooth protocol stack for Linux
@@ -5,20 +6,6 @@
* Copyright (C) 2012-2017 Intel Corporation. All rights reserved.
*
*
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
- *
*/

#include <stdbool.h>
diff --git a/src/shared/btsnoop.c b/src/shared/btsnoop.c
index f0d074743..e2b3747e3 100644
--- a/src/shared/btsnoop.c
+++ b/src/shared/btsnoop.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: LGPL-2.1-or-later
/*
*
* BlueZ - Bluetooth protocol stack for Linux
@@ -5,20 +6,6 @@
* Copyright (C) 2012-2014 Intel Corporation. All rights reserved.
*
*
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
- *
*/

#ifdef HAVE_CONFIG_H
diff --git a/src/shared/btsnoop.h b/src/shared/btsnoop.h
index 5fb084aa2..80f0d5d82 100644
--- a/src/shared/btsnoop.h
+++ b/src/shared/btsnoop.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: LGPL-2.1-or-later */
/*
*
* BlueZ - Bluetooth protocol stack for Linux
@@ -5,20 +6,6 @@
* Copyright (C) 2012-2014 Intel Corporation. All rights reserved.
*
*
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
- *
*/

#include <stdint.h>
diff --git a/src/shared/crypto.c b/src/shared/crypto.c
index 5cc88ce4a..6d14903e4 100644
--- a/src/shared/crypto.c
+++ b/src/shared/crypto.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: LGPL-2.1-or-later
/*
*
* BlueZ - Bluetooth protocol stack for Linux
@@ -5,20 +6,6 @@
* Copyright (C) 2012-2014 Intel Corporation. All rights reserved.
*
*
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
- *
*/

#ifdef HAVE_CONFIG_H
diff --git a/src/shared/crypto.h b/src/shared/crypto.h
index d17daa835..356326d75 100644
--- a/src/shared/crypto.h
+++ b/src/shared/crypto.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: LGPL-2.1-or-later */
/*
*
* BlueZ - Bluetooth protocol stack for Linux
@@ -5,20 +6,6 @@
* Copyright (C) 2012-2014 Intel Corporation. All rights reserved.
*
*
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
- *
*/

#include <stdbool.h>
diff --git a/src/shared/ecc.c b/src/shared/ecc.c
index 1b45e0d0a..adaae2082 100644
--- a/src/shared/ecc.c
+++ b/src/shared/ecc.c
@@ -1,27 +1,8 @@
+// SPDX-License-Identifier: BSD-2-Clause
/*
* Copyright (c) 2013, Kenneth MacKay
* All rights reserved.
*
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are
- * met:
- * * Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * * Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
- * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
- * HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
- * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
- * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/

#ifdef HAVE_CONFIG_H
diff --git a/src/shared/ecc.h b/src/shared/ecc.h
index 8c15e4ee8..5d7b25d75 100644
--- a/src/shared/ecc.h
+++ b/src/shared/ecc.h
@@ -1,27 +1,8 @@
+/* SPDX-License-Identifier: BSD-2-Clause */
/*
* Copyright (c) 2013, Kenneth MacKay
* All rights reserved.
*
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are
- * met:
- * * Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * * Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
- * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
- * HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
- * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
- * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/

#include <stdbool.h>
diff --git a/src/shared/gap.c b/src/shared/gap.c
index 0b8d073c5..6fb1b7b69 100644
--- a/src/shared/gap.c
+++ b/src/shared/gap.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: LGPL-2.1-or-later
/*
*
* BlueZ - Bluetooth protocol stack for Linux
@@ -5,20 +6,6 @@
* Copyright (C) 2012-2014 Intel Corporation. All rights reserved.
*
*
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
- *
*/

#ifdef HAVE_CONFIG_H
diff --git a/src/shared/gap.h b/src/shared/gap.h
index 52c264a8e..4a75d26e4 100644
--- a/src/shared/gap.h
+++ b/src/shared/gap.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: LGPL-2.1-or-later */
/*
*
* BlueZ - Bluetooth protocol stack for Linux
@@ -5,20 +6,6 @@
* Copyright (C) 2012-2014 Intel Corporation. All rights reserved.
*
*
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
- *
*/

#include <stdbool.h>
diff --git a/src/shared/gatt-client.c b/src/shared/gatt-client.c
index f15466673..8becf1c6c 100644
--- a/src/shared/gatt-client.c
+++ b/src/shared/gatt-client.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: LGPL-2.1-or-later
/*
*
* BlueZ - Bluetooth protocol stack for Linux
@@ -5,20 +6,6 @@
* Copyright (C) 2014 Google Inc.
*
*
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
- *
*/

#ifdef HAVE_CONFIG_H
diff --git a/src/shared/gatt-client.h b/src/shared/gatt-client.h
index 10900168b..dc5102394 100644
--- a/src/shared/gatt-client.h
+++ b/src/shared/gatt-client.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: LGPL-2.1-or-later */
/*
*
* BlueZ - Bluetooth protocol stack for Linux
@@ -5,20 +6,6 @@
* Copyright (C) 2014 Google Inc.
*
*
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
- *
*/

#include <stdbool.h>
diff --git a/src/shared/gatt-db.c b/src/shared/gatt-db.c
index e939ddc3a..54e64d0e0 100644
--- a/src/shared/gatt-db.c
+++ b/src/shared/gatt-db.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: LGPL-2.1-or-later
/*
*
* BlueZ - Bluetooth protocol stack for Linux
@@ -5,20 +6,6 @@
* Copyright (C) 2014 Intel Corporation. All rights reserved.
*
*
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
- *
*/

#ifdef HAVE_CONFIG_H
diff --git a/src/shared/gatt-db.h b/src/shared/gatt-db.h
index 5bf19d302..a0da33065 100644
--- a/src/shared/gatt-db.h
+++ b/src/shared/gatt-db.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: LGPL-2.1-or-later */
/*
*
* BlueZ - Bluetooth protocol stack for Linux
@@ -5,20 +6,6 @@
* Copyright (C) 2014 Intel Corporation. All rights reserved.
*
*
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
- *
*/

struct gatt_db;
diff --git a/src/shared/gatt-helpers.c b/src/shared/gatt-helpers.c
index 6b39bb161..50fcb269b 100644
--- a/src/shared/gatt-helpers.c
+++ b/src/shared/gatt-helpers.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: LGPL-2.1-or-later
/*
*
* BlueZ - Bluetooth protocol stack for Linux
@@ -5,20 +6,6 @@
* Copyright (C) 2014 Google Inc.
*
*
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
- *
*/


diff --git a/src/shared/gatt-helpers.h b/src/shared/gatt-helpers.h
index dd9dd1c44..7623862e9 100644
--- a/src/shared/gatt-helpers.h
+++ b/src/shared/gatt-helpers.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: LGPL-2.1-or-later */
/*
*
* BlueZ - Bluetooth protocol stack for Linux
@@ -5,20 +6,6 @@
* Copyright (C) 2014 Google Inc.
*
*
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
- *
*/

/* This file defines helpers for performing client-side procedures defined by
diff --git a/src/shared/gatt-server.c b/src/shared/gatt-server.c
index 28ac2d68d..0ce994be3 100644
--- a/src/shared/gatt-server.c
+++ b/src/shared/gatt-server.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: LGPL-2.1-or-later
/*
*
* BlueZ - Bluetooth protocol stack for Linux
@@ -5,20 +6,6 @@
* Copyright (C) 2014 Google Inc.
*
*
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
- *
*/

#ifdef HAVE_CONFIG_H
diff --git a/src/shared/gatt-server.h b/src/shared/gatt-server.h
index a2492d275..de98a0d04 100644
--- a/src/shared/gatt-server.h
+++ b/src/shared/gatt-server.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: LGPL-2.1-or-later */
/*
*
* BlueZ - Bluetooth protocol stack for Linux
@@ -5,20 +6,6 @@
* Copyright (C) 2014 Google Inc.
*
*
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
- *
*/

#include <stdint.h>
diff --git a/src/shared/hci-crypto.c b/src/shared/hci-crypto.c
index f7507472b..5e6dd3e20 100644
--- a/src/shared/hci-crypto.c
+++ b/src/shared/hci-crypto.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: LGPL-2.1-or-later
/*
*
* BlueZ - Bluetooth protocol stack for Linux
@@ -5,20 +6,6 @@
* Copyright (C) 2013-2014 Intel Corporation
*
*
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
- *
*/

#ifdef HAVE_CONFIG_H
diff --git a/src/shared/hci-crypto.h b/src/shared/hci-crypto.h
index b090c2410..d10812bdc 100644
--- a/src/shared/hci-crypto.h
+++ b/src/shared/hci-crypto.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: LGPL-2.1-or-later */
/*
*
* BlueZ - Bluetooth protocol stack for Linux
@@ -5,20 +6,6 @@
* Copyright (C) 2013-2014 Intel Corporation
*
*
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
- *
*/

#include <stdbool.h>
diff --git a/src/shared/hci.c b/src/shared/hci.c
index 262e93d5a..f741a2bf5 100644
--- a/src/shared/hci.c
+++ b/src/shared/hci.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: LGPL-2.1-or-later
/*
*
* BlueZ - Bluetooth protocol stack for Linux
@@ -5,20 +6,6 @@
* Copyright (C) 2012-2014 Intel Corporation. All rights reserved.
*
*
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
- *
*/

#ifdef HAVE_CONFIG_H
diff --git a/src/shared/hci.h b/src/shared/hci.h
index dba0f11db..9298442e5 100644
--- a/src/shared/hci.h
+++ b/src/shared/hci.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: LGPL-2.1-or-later */
/*
*
* BlueZ - Bluetooth protocol stack for Linux
@@ -5,20 +6,6 @@
* Copyright (C) 2012-2014 Intel Corporation. All rights reserved.
*
*
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
- *
*/

#include <stdbool.h>
diff --git a/src/shared/hfp.c b/src/shared/hfp.c
index f4747b4ca..f41c70dfe 100644
--- a/src/shared/hfp.c
+++ b/src/shared/hfp.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: LGPL-2.1-or-later
/*
*
* BlueZ - Bluetooth protocol stack for Linux
@@ -5,20 +6,6 @@
* Copyright (C) 2012-2014 Intel Corporation. All rights reserved.
*
*
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
- *
*/

#ifdef HAVE_CONFIG_H
diff --git a/src/shared/hfp.h b/src/shared/hfp.h
index 2eb783849..1fb3ee8d3 100644
--- a/src/shared/hfp.h
+++ b/src/shared/hfp.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: LGPL-2.1-or-later */
/*
*
* BlueZ - Bluetooth protocol stack for Linux
@@ -5,20 +6,6 @@
* Copyright (C) 2012-2014 Intel Corporation. All rights reserved.
*
*
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
- *
*/

#include <stdbool.h>
diff --git a/src/shared/io-ell.c b/src/shared/io-ell.c
index 6748982c7..c4a115478 100644
--- a/src/shared/io-ell.c
+++ b/src/shared/io-ell.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: LGPL-2.1-or-later
/*
*
* BlueZ - Bluetooth protocol stack for Linux
@@ -5,20 +6,6 @@
* Copyright (C) 2018 Intel Corporation. All rights reserved.
*
*
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
- *
*/

#ifdef HAVE_CONFIG_H
diff --git a/src/shared/io-glib.c b/src/shared/io-glib.c
index d62de4e10..754043db1 100644
--- a/src/shared/io-glib.c
+++ b/src/shared/io-glib.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: LGPL-2.1-or-later
/*
*
* BlueZ - Bluetooth protocol stack for Linux
@@ -5,20 +6,6 @@
* Copyright (C) 2012-2014 Intel Corporation. All rights reserved.
*
*
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
- *
*/

#ifdef HAVE_CONFIG_H
diff --git a/src/shared/io-mainloop.c b/src/shared/io-mainloop.c
index 2306c3479..ad461843c 100644
--- a/src/shared/io-mainloop.c
+++ b/src/shared/io-mainloop.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: LGPL-2.1-or-later
/*
*
* BlueZ - Bluetooth protocol stack for Linux
@@ -5,20 +6,6 @@
* Copyright (C) 2012-2014 Intel Corporation. All rights reserved.
*
*
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
- *
*/

#ifdef HAVE_CONFIG_H
diff --git a/src/shared/io.h b/src/shared/io.h
index 8bc1111d0..bad899ff7 100644
--- a/src/shared/io.h
+++ b/src/shared/io.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: LGPL-2.1-or-later */
/*
*
* BlueZ - Bluetooth protocol stack for Linux
@@ -5,20 +6,6 @@
* Copyright (C) 2012-2014 Intel Corporation. All rights reserved.
*
*
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
- *
*/

#include <stdbool.h>
diff --git a/src/shared/log.c b/src/shared/log.c
index 7c8b71220..3f18e803d 100644
--- a/src/shared/log.c
+++ b/src/shared/log.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: LGPL-2.1-or-later
/*
*
* BlueZ - Bluetooth protocol stack for Linux
@@ -5,20 +6,6 @@
* Copyright (C) 2018 Intel Corporation. All rights reserved.
*
*
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
- *
*/

#ifdef HAVE_CONFIG_H
diff --git a/src/shared/log.h b/src/shared/log.h
index c72ab735b..4a8bd4b6e 100644
--- a/src/shared/log.h
+++ b/src/shared/log.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: LGPL-2.1-or-later */
/*
*
* BlueZ - Bluetooth protocol stack for Linux
@@ -5,20 +6,6 @@
* Copyright (C) 2018 Intel Corporation. All rights reserved.
*
*
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
- *
*/

int bt_log_open(void);
diff --git a/src/shared/mainloop-ell.c b/src/shared/mainloop-ell.c
index 63e254ac6..5cc0311c2 100644
--- a/src/shared/mainloop-ell.c
+++ b/src/shared/mainloop-ell.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: LGPL-2.1-or-later
/*
*
* BlueZ - Bluetooth protocol stack for Linux
@@ -5,17 +6,6 @@
* Copyright (C) 2019 Intel Corporation
*
*
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- *
*/

#ifdef HAVE_CONFIG_H
diff --git a/src/shared/mainloop-glib.c b/src/shared/mainloop-glib.c
index 2508a1fb2..7d4b057bf 100644
--- a/src/shared/mainloop-glib.c
+++ b/src/shared/mainloop-glib.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: LGPL-2.1-or-later
/*
*
* BlueZ - Bluetooth protocol stack for Linux
@@ -5,20 +6,6 @@
* Copyright (C) 2018 Intel Corporation
*
*
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
- *
*/

#ifdef HAVE_CONFIG_H
diff --git a/src/shared/mainloop-notify.c b/src/shared/mainloop-notify.c
index 1de714a0e..33be3cf8d 100644
--- a/src/shared/mainloop-notify.c
+++ b/src/shared/mainloop-notify.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: LGPL-2.1-or-later
/*
*
* BlueZ - Bluetooth protocol stack for Linux
@@ -5,20 +6,6 @@
* Copyright (C) 2018 Intel Corporation. All rights reserved.
*
*
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
- *
*/

#ifdef HAVE_CONFIG_H
diff --git a/src/shared/mainloop-notify.h b/src/shared/mainloop-notify.h
index 721b5fbed..c2cf34c44 100644
--- a/src/shared/mainloop-notify.h
+++ b/src/shared/mainloop-notify.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: LGPL-2.1-or-later */
/*
*
* BlueZ - Bluetooth protocol stack for Linux
@@ -5,20 +6,6 @@
* Copyright (C) 2018 Intel Corporation. All rights reserved.
*
*
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
- *
*/

void mainloop_notify_init(void);
diff --git a/src/shared/mainloop.c b/src/shared/mainloop.c
index 8a8e2c022..b71707cae 100644
--- a/src/shared/mainloop.c
+++ b/src/shared/mainloop.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: LGPL-2.1-or-later
/*
*
* BlueZ - Bluetooth protocol stack for Linux
@@ -6,20 +7,6 @@
* Copyright (C) 2002-2010 Marcel Holtmann <[email protected]>
*
*
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
- *
*/

#ifdef HAVE_CONFIG_H
diff --git a/src/shared/mainloop.h b/src/shared/mainloop.h
index 1ede62797..fb02dd341 100644
--- a/src/shared/mainloop.h
+++ b/src/shared/mainloop.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: LGPL-2.1-or-later */
/*
*
* BlueZ - Bluetooth protocol stack for Linux
@@ -6,20 +7,6 @@
* Copyright (C) 2002-2010 Marcel Holtmann <[email protected]>
*
*
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
- *
*/

#include <signal.h>
diff --git a/src/shared/mgmt.c b/src/shared/mgmt.c
index 277e361a6..b327b4088 100644
--- a/src/shared/mgmt.c
+++ b/src/shared/mgmt.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: LGPL-2.1-or-later
/*
*
* BlueZ - Bluetooth protocol stack for Linux
@@ -5,20 +6,6 @@
* Copyright (C) 2012-2014 Intel Corporation. All rights reserved.
*
*
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
- *
*/

#ifdef HAVE_CONFIG_H
diff --git a/src/shared/mgmt.h b/src/shared/mgmt.h
index 7caeb3844..6608faa7e 100644
--- a/src/shared/mgmt.h
+++ b/src/shared/mgmt.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: LGPL-2.1-or-later */
/*
*
* BlueZ - Bluetooth protocol stack for Linux
@@ -5,20 +6,6 @@
* Copyright (C) 2012-2014 Intel Corporation. All rights reserved.
*
*
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
- *
*/

#include <stdbool.h>
diff --git a/src/shared/pcap.c b/src/shared/pcap.c
index 0d887e24c..2596a498e 100644
--- a/src/shared/pcap.c
+++ b/src/shared/pcap.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: LGPL-2.1-or-later
/*
*
* BlueZ - Bluetooth protocol stack for Linux
@@ -5,20 +6,6 @@
* Copyright (C) 2012-2014 Intel Corporation. All rights reserved.
*
*
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
- *
*/

#ifdef HAVE_CONFIG_H
diff --git a/src/shared/pcap.h b/src/shared/pcap.h
index b47de62e8..936c3b145 100644
--- a/src/shared/pcap.h
+++ b/src/shared/pcap.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: LGPL-2.1-or-later */
/*
*
* BlueZ - Bluetooth protocol stack for Linux
@@ -5,20 +6,6 @@
* Copyright (C) 2012-2014 Intel Corporation. All rights reserved.
*
*
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
- *
*/

#include <stdint.h>
diff --git a/src/shared/queue.c b/src/shared/queue.c
index 60df11143..0b53b5b79 100644
--- a/src/shared/queue.c
+++ b/src/shared/queue.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: LGPL-2.1-or-later
/*
*
* BlueZ - Bluetooth protocol stack for Linux
@@ -5,20 +6,6 @@
* Copyright (C) 2012-2014 Intel Corporation. All rights reserved.
*
*
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
- *
*/

#ifdef HAVE_CONFIG_H
diff --git a/src/shared/queue.h b/src/shared/queue.h
index 8cd817cc0..122f4eaa6 100644
--- a/src/shared/queue.h
+++ b/src/shared/queue.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: LGPL-2.1-or-later */
/*
*
* BlueZ - Bluetooth protocol stack for Linux
@@ -5,20 +6,6 @@
* Copyright (C) 2012-2014 Intel Corporation. All rights reserved.
*
*
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
- *
*/

#include <stdbool.h>
diff --git a/src/shared/ringbuf.c b/src/shared/ringbuf.c
index 8cf0b5b19..3dc7ed71b 100644
--- a/src/shared/ringbuf.c
+++ b/src/shared/ringbuf.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: LGPL-2.1-or-later
/*
*
* BlueZ - Bluetooth protocol stack for Linux
@@ -5,20 +6,6 @@
* Copyright (C) 2012-2014 Intel Corporation. All rights reserved.
*
*
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
- *
*/

#ifdef HAVE_CONFIG_H
diff --git a/src/shared/ringbuf.h b/src/shared/ringbuf.h
index adf471a43..ee30ff430 100644
--- a/src/shared/ringbuf.h
+++ b/src/shared/ringbuf.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: LGPL-2.1-or-later */
/*
*
* BlueZ - Bluetooth protocol stack for Linux
@@ -5,20 +6,6 @@
* Copyright (C) 2012-2014 Intel Corporation. All rights reserved.
*
*
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
- *
*/

#include <stdlib.h>
diff --git a/src/shared/shell.c b/src/shared/shell.c
index d58e2d7d1..c0de1640d 100644
--- a/src/shared/shell.c
+++ b/src/shared/shell.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: LGPL-2.1-or-later
/*
*
* BlueZ - Bluetooth protocol stack for Linux
@@ -5,20 +6,6 @@
* Copyright (C) 2017 Intel Corporation. All rights reserved.
*
*
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
- *
*/

#ifdef HAVE_CONFIG_H
diff --git a/src/shared/shell.h b/src/shared/shell.h
index e14d58381..415194a40 100644
--- a/src/shared/shell.h
+++ b/src/shared/shell.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: LGPL-2.1-or-later */
/*
*
* BlueZ - Bluetooth protocol stack for Linux
@@ -5,20 +6,6 @@
* Copyright (C) 2017 Intel Corporation. All rights reserved.
*
*
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
- *
*/
#include <getopt.h>

diff --git a/src/shared/tester.c b/src/shared/tester.c
index 62e5c1aae..bd42c8bad 100644
--- a/src/shared/tester.c
+++ b/src/shared/tester.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: LGPL-2.1-or-later
/*
*
* BlueZ - Bluetooth protocol stack for Linux
@@ -5,20 +6,6 @@
* Copyright (C) 2012-2014 Intel Corporation. All rights reserved.
*
*
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
- *
*/

#ifdef HAVE_CONFIG_H
diff --git a/src/shared/tester.h b/src/shared/tester.h
index 96e8dc901..a304d89fe 100644
--- a/src/shared/tester.h
+++ b/src/shared/tester.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: LGPL-2.1-or-later */
/*
*
* BlueZ - Bluetooth protocol stack for Linux
@@ -5,20 +6,6 @@
* Copyright (C) 2012-2014 Intel Corporation. All rights reserved.
*
*
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
- *
*/

#include <stdbool.h>
diff --git a/src/shared/timeout-ell.c b/src/shared/timeout-ell.c
index 8419d4617..c2da387e2 100644
--- a/src/shared/timeout-ell.c
+++ b/src/shared/timeout-ell.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: LGPL-2.1-or-later
/*
*
* BlueZ - Bluetooth protocol stack for Linux
@@ -5,16 +6,6 @@
* Copyright (C) 2019 Intel Corporation. All rights reserved.
*
*
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
*/

#include <ell/ell.h>
diff --git a/src/shared/timeout-glib.c b/src/shared/timeout-glib.c
index fd71ca430..8bdb7a662 100644
--- a/src/shared/timeout-glib.c
+++ b/src/shared/timeout-glib.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: LGPL-2.1-or-later
/*
*
* BlueZ - Bluetooth protocol stack for Linux
@@ -5,16 +6,6 @@
* Copyright (C) 2014 Intel Corporation. All rights reserved.
*
*
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
*/

#include "timeout.h"
diff --git a/src/shared/timeout-mainloop.c b/src/shared/timeout-mainloop.c
index 971124a2e..5ffa65c2a 100644
--- a/src/shared/timeout-mainloop.c
+++ b/src/shared/timeout-mainloop.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: LGPL-2.1-or-later
/*
*
* BlueZ - Bluetooth protocol stack for Linux
@@ -5,16 +6,6 @@
* Copyright (C) 2014 Intel Corporation. All rights reserved.
*
*
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
*/

#include <stdlib.h>
diff --git a/src/shared/timeout.h b/src/shared/timeout.h
index 4930ce162..7e22345dd 100644
--- a/src/shared/timeout.h
+++ b/src/shared/timeout.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: LGPL-2.1-or-later */
/*
*
* BlueZ - Bluetooth protocol stack for Linux
@@ -5,16 +6,6 @@
* Copyright (C) 2014 Intel Corporation. All rights reserved.
*
*
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
*/

#include <stdbool.h>
diff --git a/src/shared/tty.h b/src/shared/tty.h
index 66ec09f31..3392f9ba6 100644
--- a/src/shared/tty.h
+++ b/src/shared/tty.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: LGPL-2.1-or-later */
/*
*
* BlueZ - Bluetooth protocol stack for Linux
@@ -5,20 +6,6 @@
* Copyright (C) 2016 Intel Corporation. All rights reserved.
*
*
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
- *
*/

#include <termios.h>
diff --git a/src/shared/uhid.c b/src/shared/uhid.c
index 71a4e04ba..1f15443cd 100644
--- a/src/shared/uhid.c
+++ b/src/shared/uhid.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: LGPL-2.1-or-later
/*
*
* BlueZ - Bluetooth protocol stack for Linux
@@ -5,20 +6,6 @@
* Copyright (C) 2014 Intel Corporation. All rights reserved.
*
*
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
- *
*/

#ifdef HAVE_CONFIG_H
diff --git a/src/shared/uhid.h b/src/shared/uhid.h
index dbdca852d..839809d9a 100644
--- a/src/shared/uhid.h
+++ b/src/shared/uhid.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: LGPL-2.1-or-later */
/*
*
* BlueZ - Bluetooth protocol stack for Linux
@@ -5,20 +6,6 @@
* Copyright (C) 2014 Intel Corporation. All rights reserved.
*
*
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
- *
*/

#include <stdbool.h>
diff --git a/src/shared/util.c b/src/shared/util.c
index 4ecf31a03..525302164 100644
--- a/src/shared/util.c
+++ b/src/shared/util.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: LGPL-2.1-or-later
/*
*
* BlueZ - Bluetooth protocol stack for Linux
@@ -5,20 +6,6 @@
* Copyright (C) 2012-2014 Intel Corporation. All rights reserved.
*
*
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
- *
*/

#ifdef HAVE_CONFIG_H
diff --git a/src/shared/util.h b/src/shared/util.h
index 9193068d1..8a920bc12 100644
--- a/src/shared/util.h
+++ b/src/shared/util.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: LGPL-2.1-or-later */
/*
*
* BlueZ - Bluetooth protocol stack for Linux
@@ -5,20 +6,6 @@
* Copyright (C) 2012-2014 Intel Corporation. All rights reserved.
*
*
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
- *
*/

#include <stdint.h>
diff --git a/src/storage.c b/src/storage.c
index 8cbb5b270..d819c2c1e 100644
--- a/src/storage.c
+++ b/src/storage.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
/*
*
* BlueZ - Bluetooth protocol stack for Linux
@@ -6,20 +7,6 @@
* Copyright (C) 2004-2010 Marcel Holtmann <[email protected]>
*
*
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
- *
*/

#ifdef HAVE_CONFIG_H
diff --git a/src/storage.h b/src/storage.h
index 1c0ad57ec..011916671 100644
--- a/src/storage.h
+++ b/src/storage.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
/*
*
* BlueZ - Bluetooth protocol stack for Linux
@@ -5,20 +6,6 @@
* Copyright (C) 2002-2010 Marcel Holtmann <[email protected]>
*
*
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
- *
*/

int read_discoverable_timeout(const char *src, int *timeout);
diff --git a/src/textfile.c b/src/textfile.c
index 371651bd8..7dd62392b 100644
--- a/src/textfile.c
+++ b/src/textfile.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
/*
*
* BlueZ - Bluetooth protocol stack for Linux
@@ -5,20 +6,6 @@
* Copyright (C) 2004-2010 Marcel Holtmann <[email protected]>
*
*
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
- *
*/

#ifdef HAVE_CONFIG_H
diff --git a/src/textfile.h b/src/textfile.h
index f01629e43..b4e2e0248 100644
--- a/src/textfile.h
+++ b/src/textfile.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
/*
*
* BlueZ - Bluetooth protocol stack for Linux
@@ -5,20 +6,6 @@
* Copyright (C) 2004-2010 Marcel Holtmann <[email protected]>
*
*
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
- *
*/

int create_file(const char *filename, const mode_t mode);
diff --git a/src/uinput.h b/src/uinput.h
index 20e0941d1..75d791bc6 100644
--- a/src/uinput.h
+++ b/src/uinput.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
/*
*
* BlueZ - Bluetooth protocol stack for Linux
@@ -5,20 +6,6 @@
* Copyright (C) 2003-2010 Marcel Holtmann <[email protected]>
*
*
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
- *
*/

#ifndef __UINPUT_H
diff --git a/src/uuid-helper.c b/src/uuid-helper.c
index 2c897d86c..b62b1af82 100644
--- a/src/uuid-helper.c
+++ b/src/uuid-helper.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
/*
*
* BlueZ - Bluetooth protocol stack for Linux
@@ -5,20 +6,6 @@
* Copyright (C) 2004-2010 Marcel Holtmann <[email protected]>
*
*
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
- *
*/

#ifdef HAVE_CONFIG_H
diff --git a/src/uuid-helper.h b/src/uuid-helper.h
index c0d7f9eec..0b99098c8 100644
--- a/src/uuid-helper.h
+++ b/src/uuid-helper.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
/*
*
* BlueZ - Bluetooth protocol stack for Linux
@@ -5,20 +6,6 @@
* Copyright (C) 2004-2010 Marcel Holtmann <[email protected]>
*
*
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
- *
*/

char *bt_modalias(uint16_t source, uint16_t vendor,
--
2.25.4

2020-09-21 19:38:54

by Tedd Ho-Jeong An

[permalink] [raw]
Subject: [BlueZ V4 RESEND 01/20] android: Add SPDX License Identifier

From: Tedd Ho-Jeong An <[email protected]>

This patch adds SPDX License Identifier and removes the license text.

-------------------------------------
License COUNT
-------------------------------------
Apache-2.0 : 80
LGPL-2.1-or-later : 42
GPL-2.0-or-later : 9

License: Apache-2.0
android/bluetoothd-wrapper.c
android/tester-hidhost.c
android/tester-map-client.c
android/hal-audio-aptx.c
android/hal-audio.c
android/hal-handsfree-client.c
android/tester-gatt.c
android/hal-pan.c
android/hal-socket.c
android/tester-hdp.c
android/tester-pan.c
android/tester-avrcp.c
android/hal-a2dp-sink.c
android/hal-gatt.c
android/hal-avrcp.c
android/tester-a2dp.c
android/hal-audio.h
android/hal-bluetooth.c
android/tester-socket.c
android/hal-health.c
android/hal-a2dp.c
android/hal-ipc.c
android/hal-avrcp-ctrl.c
android/hal-sco.c
android/hal-ipc.h
android/tester-main.c
android/hal-audio-sbc.c
android/hal-utils.c
android/hal-map-client.c
android/hal-handsfree.c
android/hal-log.h
android/hal.h
android/hal-utils.h
android/tester-bluetooth.c
android/hal-hidhost.c
android/audio_utils/resampler.h
android/audio_utils/resampler.c
android/system/audio.h
android/hardware/bt_sock.h
android/hardware/bt_gatt_client.h
android/hardware/bt_hh.h
android/hardware/bluetooth.h
android/hardware/hardware.h
android/hardware/bt_hf_client.h
android/hardware/bt_rc.h
android/hardware/bt_hf.h
android/hardware/bt_pan.h
android/hardware/bt_gatt_types.h
android/hardware/hardware.c
android/hardware/audio_effect.h
android/hardware/audio.h
android/hardware/bt_gatt_server.h
android/hardware/bt_gatt.h
android/hardware/bt_hl.h
android/hardware/bt_mce.h
android/hardware/bt_av.h
android/client/if-hh.c
android/client/if-sco.c
android/client/pollhandler.h
android/client/haltest.c
android/client/tabcompletion.c
android/client/if-hf-client.c
android/client/history.h
android/client/if-audio.c
android/client/terminal.h
android/client/if-av.c
android/client/if-main.h
android/client/if-av-sink.c
android/client/terminal.c
android/client/if-mce.c
android/client/if-hf.c
android/client/pollhandler.c
android/client/if-sock.c
android/client/if-rc-ctrl.c
android/client/if-rc.c
android/client/history.c
android/client/if-pan.c
android/client/if-gatt.c
android/client/if-bt.c
android/client/if-hl.c

License: LGPL-2.1-or-later
android/sco.h
android/socket.c
android/tester-main.h
android/hidhost.h
android/map-client.h
android/utils.h
android/hal-msg.h
android/health.h
android/avrcp-lib.c
android/bluetoothd-snoop.c
android/a2dp.c
android/bluetooth.h
android/a2dp-sink.c
android/handsfree-client.c
android/audio-msg.h
android/main.c
android/pan.c
android/ipc-tester.c
android/health.c
android/socket.h
android/handsfree.h
android/avrcp-lib.h
android/a2dp-sink.h
android/system-emulator.c
android/gatt.c
android/avrcp.h
android/pan.h
android/test-ipc.c
android/hidhost.c
android/a2dp.h
android/avrcp.c
android/sco-msg.h
android/bluetooth.c
android/map-client.c
android/handsfree-client.h
android/ipc.c
android/handsfree.c
android/gatt.h
android/ipc.h
android/ipc-common.h
android/compat/wordexp.h
android/cutils/properties.h

License: GPL-2.0-or-later
android/avdtp.h
android/avctp.c
android/avdtptest.c
android/sco.c
android/log.c
android/avdtp.c
android/avctp.h
android/compat/readline/history.h
android/compat/readline/readline.h
---
android/a2dp-sink.c | 15 +--------------
android/a2dp-sink.h | 15 +--------------
android/a2dp.c | 15 +--------------
android/a2dp.h | 15 +--------------
android/audio-msg.h | 15 +--------------
android/audio_utils/resampler.c | 12 +-----------
android/audio_utils/resampler.h | 12 +-----------
android/avctp.c | 15 +--------------
android/avctp.h | 15 +--------------
android/avdtp.c | 15 +--------------
android/avdtp.h | 15 +--------------
android/avdtptest.c | 15 +--------------
android/avrcp-lib.c | 15 +--------------
android/avrcp-lib.h | 15 +--------------
android/avrcp.c | 15 +--------------
android/avrcp.h | 15 +--------------
android/bluetooth.c | 15 +--------------
android/bluetooth.h | 15 +--------------
android/bluetoothd-snoop.c | 15 +--------------
android/bluetoothd-wrapper.c | 13 +------------
android/client/haltest.c | 13 +------------
android/client/history.c | 13 +------------
android/client/history.h | 13 +------------
android/client/if-audio.c | 13 +------------
android/client/if-av-sink.c | 13 +------------
android/client/if-av.c | 13 +------------
android/client/if-bt.c | 13 +------------
android/client/if-gatt.c | 13 +------------
android/client/if-hf-client.c | 13 +------------
android/client/if-hf.c | 13 +------------
android/client/if-hh.c | 13 +------------
android/client/if-hl.c | 13 +------------
android/client/if-main.h | 13 +------------
android/client/if-mce.c | 13 +------------
android/client/if-pan.c | 13 +------------
android/client/if-rc-ctrl.c | 13 +------------
android/client/if-rc.c | 13 +------------
android/client/if-sco.c | 13 +------------
android/client/if-sock.c | 13 +------------
android/client/pollhandler.c | 13 +------------
android/client/pollhandler.h | 13 +------------
android/client/tabcompletion.c | 13 +------------
android/client/terminal.c | 13 +------------
android/client/terminal.h | 13 +------------
android/compat/readline/history.h | 15 +--------------
android/compat/readline/readline.h | 15 +--------------
android/compat/wordexp.h | 15 +--------------
android/cutils/properties.h | 15 +--------------
android/gatt.c | 15 +--------------
android/gatt.h | 15 +--------------
android/hal-a2dp-sink.c | 13 +------------
android/hal-a2dp.c | 13 +------------
android/hal-audio-aptx.c | 13 +------------
android/hal-audio-sbc.c | 13 +------------
android/hal-audio.c | 13 +------------
android/hal-audio.h | 13 +------------
android/hal-avrcp-ctrl.c | 13 +------------
android/hal-avrcp.c | 13 +------------
android/hal-bluetooth.c | 13 +------------
android/hal-gatt.c | 13 +------------
android/hal-handsfree-client.c | 13 +------------
android/hal-handsfree.c | 13 +------------
android/hal-health.c | 13 +------------
android/hal-hidhost.c | 13 +------------
android/hal-ipc.c | 13 +------------
android/hal-ipc.h | 13 +------------
android/hal-log.h | 13 +------------
android/hal-map-client.c | 13 +------------
android/hal-msg.h | 15 +--------------
android/hal-pan.c | 13 +------------
android/hal-sco.c | 13 +------------
android/hal-socket.c | 13 +------------
android/hal-utils.c | 13 +------------
android/hal-utils.h | 13 +------------
android/hal.h | 13 +------------
android/handsfree-client.c | 15 +--------------
android/handsfree-client.h | 15 +--------------
android/handsfree.c | 15 +--------------
android/handsfree.h | 15 +--------------
android/hardware/audio.h | 12 +-----------
android/hardware/audio_effect.h | 12 +-----------
android/hardware/bluetooth.h | 12 +-----------
android/hardware/bt_av.h | 12 +-----------
android/hardware/bt_gatt.h | 12 +-----------
android/hardware/bt_gatt_client.h | 12 +-----------
android/hardware/bt_gatt_server.h | 12 +-----------
android/hardware/bt_gatt_types.h | 12 +-----------
android/hardware/bt_hf.h | 12 +-----------
android/hardware/bt_hf_client.h | 12 +-----------
android/hardware/bt_hh.h | 12 +-----------
android/hardware/bt_hl.h | 12 +-----------
android/hardware/bt_mce.h | 12 +-----------
android/hardware/bt_pan.h | 12 +-----------
android/hardware/bt_rc.h | 12 +-----------
android/hardware/bt_sock.h | 12 +-----------
android/hardware/hardware.c | 12 +-----------
android/hardware/hardware.h | 12 +-----------
android/health.c | 15 +--------------
android/health.h | 15 +--------------
android/hidhost.c | 15 +--------------
android/hidhost.h | 15 +--------------
android/ipc-common.h | 15 +--------------
android/ipc-tester.c | 15 +--------------
android/ipc.c | 15 +--------------
android/ipc.h | 15 +--------------
android/log.c | 15 +--------------
android/main.c | 15 +--------------
android/map-client.c | 15 +--------------
android/map-client.h | 15 +--------------
android/pan.c | 15 +--------------
android/pan.h | 15 +--------------
android/sco-msg.h | 15 +--------------
android/sco.c | 15 +--------------
android/sco.h | 15 +--------------
android/socket.c | 15 +--------------
android/socket.h | 15 +--------------
android/system-emulator.c | 15 +--------------
android/system/audio.h | 12 +-----------
android/test-ipc.c | 15 +--------------
android/tester-a2dp.c | 13 +------------
android/tester-avrcp.c | 13 +------------
android/tester-bluetooth.c | 13 +------------
android/tester-gatt.c | 13 +------------
android/tester-hdp.c | 13 +------------
android/tester-hidhost.c | 13 +------------
android/tester-main.c | 13 +------------
android/tester-main.h | 15 +--------------
android/tester-map-client.c | 13 +------------
android/tester-pan.c | 13 +------------
android/tester-socket.c | 13 +------------
android/utils.h | 15 +--------------
131 files changed, 131 insertions(+), 1653 deletions(-)

diff --git a/android/a2dp-sink.c b/android/a2dp-sink.c
index 7c1e1a03a..0ecb5c392 100644
--- a/android/a2dp-sink.c
+++ b/android/a2dp-sink.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: LGPL-2.1-or-later
/*
*
* BlueZ - Bluetooth protocol stack for Linux
@@ -5,20 +6,6 @@
* Copyright (C) 2014 Intel Corporation. All rights reserved.
*
*
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
- *
*/

#ifdef HAVE_CONFIG_H
diff --git a/android/a2dp-sink.h b/android/a2dp-sink.h
index d2c5ff423..f6da58627 100644
--- a/android/a2dp-sink.h
+++ b/android/a2dp-sink.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: LGPL-2.1-or-later */
/*
*
* BlueZ - Bluetooth protocol stack for Linux
@@ -5,20 +6,6 @@
* Copyright (C) 2014 Intel Corporation. All rights reserved.
*
*
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
- *
*/

bool bt_a2dp_sink_register(struct ipc *ipc, const bdaddr_t *addr, uint8_t mode);
diff --git a/android/a2dp.c b/android/a2dp.c
index 8bcdfd20f..e24f79348 100644
--- a/android/a2dp.c
+++ b/android/a2dp.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: LGPL-2.1-or-later
/*
*
* BlueZ - Bluetooth protocol stack for Linux
@@ -5,20 +6,6 @@
* Copyright (C) 2013-2014 Intel Corporation. All rights reserved.
*
*
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
- *
*/

#ifdef HAVE_CONFIG_H
diff --git a/android/a2dp.h b/android/a2dp.h
index 8a7040736..f99779657 100644
--- a/android/a2dp.h
+++ b/android/a2dp.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: LGPL-2.1-or-later */
/*
*
* BlueZ - Bluetooth protocol stack for Linux
@@ -5,20 +6,6 @@
* Copyright (C) 2013-2014 Intel Corporation. All rights reserved.
*
*
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
- *
*/

bool bt_a2dp_register(struct ipc *ipc, const bdaddr_t *addr, uint8_t mode);
diff --git a/android/audio-msg.h b/android/audio-msg.h
index 7b9553ba3..9a7f78bac 100644
--- a/android/audio-msg.h
+++ b/android/audio-msg.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: LGPL-2.1-or-later */
/*
*
* BlueZ - Bluetooth protocol stack for Linux
@@ -5,20 +6,6 @@
* Copyright (C) 2014 Intel Corporation. All rights reserved.
*
*
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
- *
*/

#define BLUEZ_AUDIO_MTU 1024
diff --git a/android/audio_utils/resampler.c b/android/audio_utils/resampler.c
index ce303750c..c55e910fb 100644
--- a/android/audio_utils/resampler.c
+++ b/android/audio_utils/resampler.c
@@ -1,17 +1,7 @@
+// SPDX-License-Identifier: Apache-2.0
/*
** Copyright 2011, The Android Open-Source Project
**
-** Licensed under the Apache License, Version 2.0 (the "License");
-** you may not use this file except in compliance with the License.
-** You may obtain a copy of the License at
-**
-** http://www.apache.org/licenses/LICENSE-2.0
-**
-** Unless required by applicable law or agreed to in writing, software
-** distributed under the License is distributed on an "AS IS" BASIS,
-** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-** See the License for the specific language governing permissions and
-** limitations under the License.
*/

//#define LOG_NDEBUG 0
diff --git a/android/audio_utils/resampler.h b/android/audio_utils/resampler.h
index 0c7046f51..4ceb3485a 100644
--- a/android/audio_utils/resampler.h
+++ b/android/audio_utils/resampler.h
@@ -1,17 +1,7 @@
+/* SPDX-License-Identifier: Apache-2.0 */
/*
** Copyright 2008, The Android Open-Source Project
**
-** Licensed under the Apache License, Version 2.0 (the "License");
-** you may not use this file except in compliance with the License.
-** You may obtain a copy of the License at
-**
-** http://www.apache.org/licenses/LICENSE-2.0
-**
-** Unless required by applicable law or agreed to in writing, software
-** distributed under the License is distributed on an "AS IS" BASIS,
-** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-** See the License for the specific language governing permissions and
-** limitations under the License.
*/

#ifndef ANDROID_RESAMPLER_H
diff --git a/android/avctp.c b/android/avctp.c
index 6aa64cf02..c2ea5f4a2 100644
--- a/android/avctp.c
+++ b/android/avctp.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
/*
*
* BlueZ - Bluetooth protocol stack for Linux
@@ -7,20 +8,6 @@
* Copyright (C) 2011 Texas Instruments, Inc.
*
*
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
- *
*/

#ifdef HAVE_CONFIG_H
diff --git a/android/avctp.h b/android/avctp.h
index f0da2b33c..e82e024f1 100644
--- a/android/avctp.h
+++ b/android/avctp.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
/*
*
* BlueZ - Bluetooth protocol stack for Linux
@@ -6,20 +7,6 @@
* Copyright (C) 2004-2010 Marcel Holtmann <[email protected]>
*
*
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
- *
*/

#define AVCTP_CONTROL_PSM 23
diff --git a/android/avdtp.c b/android/avdtp.c
index 7fb8cb731..8c2930ec1 100644
--- a/android/avdtp.c
+++ b/android/avdtp.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
/*
*
* BlueZ - Bluetooth protocol stack for Linux
@@ -6,20 +7,6 @@
* Copyright (C) 2004-2010 Marcel Holtmann <[email protected]>
*
*
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
- *
*/

#ifdef HAVE_CONFIG_H
diff --git a/android/avdtp.h b/android/avdtp.h
index 07516a87c..f45edaead 100644
--- a/android/avdtp.h
+++ b/android/avdtp.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
/*
*
* BlueZ - Bluetooth protocol stack for Linux
@@ -6,20 +7,6 @@
* Copyright (C) 2004-2010 Marcel Holtmann <[email protected]>
*
*
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
- *
*/

struct avdtp;
diff --git a/android/avdtptest.c b/android/avdtptest.c
index 98b9ef0fa..e6668bc3c 100644
--- a/android/avdtptest.c
+++ b/android/avdtptest.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
/*
*
* BlueZ - Bluetooth protocol stack for Linux
@@ -5,20 +6,6 @@
* Copyright (C) 2014 Intel Corporation
*
*
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
- *
*/

#ifdef HAVE_CONFIG_H
diff --git a/android/avrcp-lib.c b/android/avrcp-lib.c
index 21d01955d..2007d09d2 100644
--- a/android/avrcp-lib.c
+++ b/android/avrcp-lib.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: LGPL-2.1-or-later
/*
*
* BlueZ - Bluetooth protocol stack for Linux
@@ -5,20 +6,6 @@
* Copyright (C) 2014 Intel Corporation. All rights reserved.
*
*
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
- *
*/

#ifdef HAVE_CONFIG_H
diff --git a/android/avrcp-lib.h b/android/avrcp-lib.h
index 6554b122d..5adb32188 100644
--- a/android/avrcp-lib.h
+++ b/android/avrcp-lib.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: LGPL-2.1-or-later */
/*
*
* BlueZ - Bluetooth protocol stack for Linux
@@ -5,20 +6,6 @@
* Copyright (C) 2014 Intel Corporation. All rights reserved.
*
*
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
- *
*/

/* Control PDU ids */
diff --git a/android/avrcp.c b/android/avrcp.c
index f4b138bab..fe092f02d 100644
--- a/android/avrcp.c
+++ b/android/avrcp.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: LGPL-2.1-or-later
/*
*
* BlueZ - Bluetooth protocol stack for Linux
@@ -5,20 +6,6 @@
* Copyright (C) 2013-2014 Intel Corporation. All rights reserved.
*
*
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
- *
*/

#ifdef HAVE_CONFIG_H
diff --git a/android/avrcp.h b/android/avrcp.h
index 11e79b7d7..474413b7c 100644
--- a/android/avrcp.h
+++ b/android/avrcp.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: LGPL-2.1-or-later */
/*
*
* BlueZ - Bluetooth protocol stack for Linux
@@ -5,20 +6,6 @@
* Copyright (C) 2013-2014 Intel Corporation. All rights reserved.
*
*
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
- *
*/

bool bt_avrcp_register(struct ipc *ipc, const bdaddr_t *addr, uint8_t mode);
diff --git a/android/bluetooth.c b/android/bluetooth.c
index fb027bf34..c3ad50349 100644
--- a/android/bluetooth.c
+++ b/android/bluetooth.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: LGPL-2.1-or-later
/*
*
* BlueZ - Bluetooth protocol stack for Linux
@@ -5,20 +6,6 @@
* Copyright (C) 2013-2014 Intel Corporation. All rights reserved.
*
*
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
- *
*/

#ifdef HAVE_CONFIG_H
diff --git a/android/bluetooth.h b/android/bluetooth.h
index b139cb15f..13a3f2936 100644
--- a/android/bluetooth.h
+++ b/android/bluetooth.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: LGPL-2.1-or-later */
/*
*
* BlueZ - Bluetooth protocol stack for Linux
@@ -5,20 +6,6 @@
* Copyright (C) 2013-2014 Intel Corporation. All rights reserved.
*
*
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
- *
*/

typedef void (*bt_bluetooth_ready)(int err, const bdaddr_t *addr);
diff --git a/android/bluetoothd-snoop.c b/android/bluetoothd-snoop.c
index 25cddee34..0321e69bc 100644
--- a/android/bluetoothd-snoop.c
+++ b/android/bluetoothd-snoop.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: LGPL-2.1-or-later
/*
*
* BlueZ - Bluetooth protocol stack for Linux
@@ -5,20 +6,6 @@
* Copyright (C) 2013-2014 Intel Corporation. All rights reserved.
*
*
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
- *
*/

#ifdef HAVE_CONFIG_H
diff --git a/android/bluetoothd-wrapper.c b/android/bluetoothd-wrapper.c
index 7f668daca..8929df075 100644
--- a/android/bluetoothd-wrapper.c
+++ b/android/bluetoothd-wrapper.c
@@ -1,18 +1,7 @@
+// SPDX-License-Identifier: Apache-2.0
/*
* Copyright (C) 2014 Intel Corporation
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
*/

#include <stdio.h>
diff --git a/android/client/haltest.c b/android/client/haltest.c
index e9a92a29a..cb5f68833 100644
--- a/android/client/haltest.c
+++ b/android/client/haltest.c
@@ -1,18 +1,7 @@
+// SPDX-License-Identifier: Apache-2.0
/*
* Copyright (C) 2013 Intel Corporation
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
*/

#ifdef HAVE_CONFIG_H
diff --git a/android/client/history.c b/android/client/history.c
index ca4664cfe..1bc26e3cd 100644
--- a/android/client/history.c
+++ b/android/client/history.c
@@ -1,18 +1,7 @@
+// SPDX-License-Identifier: Apache-2.0
/*
* Copyright (C) 2013 Intel Corporation
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
*/

#include <stdlib.h>
diff --git a/android/client/history.h b/android/client/history.h
index 26085b511..b95c69822 100644
--- a/android/client/history.h
+++ b/android/client/history.h
@@ -1,18 +1,7 @@
+/* SPDX-License-Identifier: Apache-2.0 */
/*
* Copyright (C) 2013 Intel Corporation
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
*/

void history_store(const char *filename);
diff --git a/android/client/if-audio.c b/android/client/if-audio.c
index 630b5e685..91008927e 100644
--- a/android/client/if-audio.c
+++ b/android/client/if-audio.c
@@ -1,18 +1,7 @@
+// SPDX-License-Identifier: Apache-2.0
/*
* Copyright (C) 2014 Intel Corporation
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
*/

#define _GNU_SOURCE
diff --git a/android/client/if-av-sink.c b/android/client/if-av-sink.c
index a6c867985..5b8c208fb 100644
--- a/android/client/if-av-sink.c
+++ b/android/client/if-av-sink.c
@@ -1,18 +1,7 @@
+// SPDX-License-Identifier: Apache-2.0
/*
* Copyright (C) 2014 Intel Corporation
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
*/

#define _GNU_SOURCE
diff --git a/android/client/if-av.c b/android/client/if-av.c
index 798a47aff..c3c91b94b 100644
--- a/android/client/if-av.c
+++ b/android/client/if-av.c
@@ -1,18 +1,7 @@
+// SPDX-License-Identifier: Apache-2.0
/*
* Copyright (C) 2013 Intel Corporation
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
*/

#define _GNU_SOURCE
diff --git a/android/client/if-bt.c b/android/client/if-bt.c
index 75403ec4a..68001a151 100644
--- a/android/client/if-bt.c
+++ b/android/client/if-bt.c
@@ -1,18 +1,7 @@
+// SPDX-License-Identifier: Apache-2.0
/*
* Copyright (C) 2013 Intel Corporation
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
*/

#define _GNU_SOURCE
diff --git a/android/client/if-gatt.c b/android/client/if-gatt.c
index fbd938166..d00afffcb 100644
--- a/android/client/if-gatt.c
+++ b/android/client/if-gatt.c
@@ -1,18 +1,7 @@
+// SPDX-License-Identifier: Apache-2.0
/*
* Copyright (C) 2013 Intel Corporation
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
*/

#define _GNU_SOURCE
diff --git a/android/client/if-hf-client.c b/android/client/if-hf-client.c
index f701a814c..e3793aaf0 100644
--- a/android/client/if-hf-client.c
+++ b/android/client/if-hf-client.c
@@ -1,18 +1,7 @@
+// SPDX-License-Identifier: Apache-2.0
/*
* Copyright (C) 2014 Intel Corporation
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
*/

#define _GNU_SOURCE
diff --git a/android/client/if-hf.c b/android/client/if-hf.c
index 68df00b46..581d54248 100644
--- a/android/client/if-hf.c
+++ b/android/client/if-hf.c
@@ -1,18 +1,7 @@
+// SPDX-License-Identifier: Apache-2.0
/*
* Copyright (C) 2013 Intel Corporation
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
*/

#define _GNU_SOURCE
diff --git a/android/client/if-hh.c b/android/client/if-hh.c
index 04a54dea2..fac314bd5 100644
--- a/android/client/if-hh.c
+++ b/android/client/if-hh.c
@@ -1,18 +1,7 @@
+// SPDX-License-Identifier: Apache-2.0
/*
* Copyright (C) 2013 Intel Corporation
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
*/

#define _GNU_SOURCE
diff --git a/android/client/if-hl.c b/android/client/if-hl.c
index 1498fd5b0..826c81750 100644
--- a/android/client/if-hl.c
+++ b/android/client/if-hl.c
@@ -1,18 +1,7 @@
+// SPDX-License-Identifier: Apache-2.0
/*
* Copyright (C) 2014 Intel Corporation
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
*/

#define _GNU_SOURCE
diff --git a/android/client/if-main.h b/android/client/if-main.h
index d239bb2bf..6463be0d6 100644
--- a/android/client/if-main.h
+++ b/android/client/if-main.h
@@ -1,18 +1,7 @@
+/* SPDX-License-Identifier: Apache-2.0 */
/*
* Copyright (C) 2013 Intel Corporation
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
*/

#include <stdio.h>
diff --git a/android/client/if-mce.c b/android/client/if-mce.c
index ef1968920..38d3770a3 100644
--- a/android/client/if-mce.c
+++ b/android/client/if-mce.c
@@ -1,18 +1,7 @@
+// SPDX-License-Identifier: Apache-2.0
/*
* Copyright (C) 2014 Intel Corporation
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
*/

#define _GNU_SOURCE
diff --git a/android/client/if-pan.c b/android/client/if-pan.c
index b3098ba45..4b47ce23d 100644
--- a/android/client/if-pan.c
+++ b/android/client/if-pan.c
@@ -1,18 +1,7 @@
+// SPDX-License-Identifier: Apache-2.0
/*
* Copyright (C) 2013 Intel Corporation
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
*/

#define _GNU_SOURCE
diff --git a/android/client/if-rc-ctrl.c b/android/client/if-rc-ctrl.c
index 39e4b9051..a155ea8d2 100644
--- a/android/client/if-rc-ctrl.c
+++ b/android/client/if-rc-ctrl.c
@@ -1,18 +1,7 @@
+// SPDX-License-Identifier: Apache-2.0
/*
* Copyright (C) 2014 Intel Corporation
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
*/

#define _GNU_SOURCE
diff --git a/android/client/if-rc.c b/android/client/if-rc.c
index 6a5bffb6c..9a65f948b 100644
--- a/android/client/if-rc.c
+++ b/android/client/if-rc.c
@@ -1,18 +1,7 @@
+// SPDX-License-Identifier: Apache-2.0
/*
* Copyright (C) 2014 Intel Corporation
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
*/

#define _GNU_SOURCE
diff --git a/android/client/if-sco.c b/android/client/if-sco.c
index 6b570d229..fa370c1e9 100644
--- a/android/client/if-sco.c
+++ b/android/client/if-sco.c
@@ -1,18 +1,7 @@
+// SPDX-License-Identifier: Apache-2.0
/*
* Copyright (C) 2014 Intel Corporation
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
*/

#define _GNU_SOURCE
diff --git a/android/client/if-sock.c b/android/client/if-sock.c
index a188cf680..ce0e981f8 100644
--- a/android/client/if-sock.c
+++ b/android/client/if-sock.c
@@ -1,18 +1,7 @@
+// SPDX-License-Identifier: Apache-2.0
/*
* Copyright (C) 2013 Intel Corporation
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
*/

#define _GNU_SOURCE
diff --git a/android/client/pollhandler.c b/android/client/pollhandler.c
index 6160921d9..ca21a02bf 100644
--- a/android/client/pollhandler.c
+++ b/android/client/pollhandler.c
@@ -1,18 +1,7 @@
+// SPDX-License-Identifier: Apache-2.0
/*
* Copyright (C) 2013 Intel Corporation
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
*/

#include <stdio.h>
diff --git a/android/client/pollhandler.h b/android/client/pollhandler.h
index e2f22dfb0..89736640e 100644
--- a/android/client/pollhandler.h
+++ b/android/client/pollhandler.h
@@ -1,18 +1,7 @@
+/* SPDX-License-Identifier: Apache-2.0 */
/*
* Copyright (C) 2013 Intel Corporation
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
*/

#include <poll.h>
diff --git a/android/client/tabcompletion.c b/android/client/tabcompletion.c
index dc6faa887..b79a9830b 100644
--- a/android/client/tabcompletion.c
+++ b/android/client/tabcompletion.c
@@ -1,18 +1,7 @@
+// SPDX-License-Identifier: Apache-2.0
/*
* Copyright (C) 2013 Intel Corporation
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
*/

#define _GNU_SOURCE
diff --git a/android/client/terminal.c b/android/client/terminal.c
index f7b56de4c..cc8a9c3a4 100644
--- a/android/client/terminal.c
+++ b/android/client/terminal.c
@@ -1,18 +1,7 @@
+// SPDX-License-Identifier: Apache-2.0
/*
* Copyright (C) 2013 Intel Corporation
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
*/

#include <stdio.h>
diff --git a/android/client/terminal.h b/android/client/terminal.h
index 0e63936d3..3ce4a7e03 100644
--- a/android/client/terminal.h
+++ b/android/client/terminal.h
@@ -1,18 +1,7 @@
+/* SPDX-License-Identifier: Apache-2.0 */
/*
* Copyright (C) 2013 Intel Corporation
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
*/

#include <stdarg.h>
diff --git a/android/compat/readline/history.h b/android/compat/readline/history.h
index decc2f443..555e37aa1 100644
--- a/android/compat/readline/history.h
+++ b/android/compat/readline/history.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
/*
*
* BlueZ - Bluetooth protocol stack for Linux
@@ -5,20 +6,6 @@
* Copyright (C) 1987-2011 Free Software Foundation, Inc.
*
*
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
- *
*/

#ifndef _HISTORY_H_
diff --git a/android/compat/readline/readline.h b/android/compat/readline/readline.h
index aaf6f31ec..2d2fa37c0 100644
--- a/android/compat/readline/readline.h
+++ b/android/compat/readline/readline.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
/*
*
* BlueZ - Bluetooth protocol stack for Linux
@@ -5,20 +6,6 @@
* Copyright (C) 1987-2011 Free Software Foundation, Inc.
*
*
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
- *
*/

#ifndef _READLINE_H_
diff --git a/android/compat/wordexp.h b/android/compat/wordexp.h
index ff1f21c7e..08c59ee02 100644
--- a/android/compat/wordexp.h
+++ b/android/compat/wordexp.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: LGPL-2.1-or-later */
/*
*
* BlueZ - Bluetooth protocol stack for Linux
@@ -5,20 +6,6 @@
* Copyright (C) 1991-2013 Free Software Foundation, Inc.
*
*
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
- *
*/

#ifndef _WORDEXP_H_
diff --git a/android/cutils/properties.h b/android/cutils/properties.h
index 0163eb5cb..3f6229cba 100644
--- a/android/cutils/properties.h
+++ b/android/cutils/properties.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: LGPL-2.1-or-later */
/*
*
* BlueZ - Bluetooth protocol stack for Linux
@@ -5,20 +6,6 @@
* Copyright (C) 2013 Intel Corporation. All rights reserved.
*
*
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
- *
*/

#include <unistd.h>
diff --git a/android/gatt.c b/android/gatt.c
index 9351a667d..a8a0c488b 100644
--- a/android/gatt.c
+++ b/android/gatt.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: LGPL-2.1-or-later
/*
*
* BlueZ - Bluetooth protocol stack for Linux
@@ -5,20 +6,6 @@
* Copyright (C) 2014 Intel Corporation. All rights reserved.
*
*
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
- *
*/

#ifdef HAVE_CONFIG_H
diff --git a/android/gatt.h b/android/gatt.h
index 3382df9b2..d16ea5f26 100644
--- a/android/gatt.h
+++ b/android/gatt.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: LGPL-2.1-or-later */
/*
*
* BlueZ - Bluetooth protocol stack for Linux
@@ -5,20 +6,6 @@
* Copyright (C) 2014 Intel Corporation. All rights reserved.
*
*
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
- *
*/

bool bt_gatt_register(struct ipc *ipc, const bdaddr_t *addr);
diff --git a/android/hal-a2dp-sink.c b/android/hal-a2dp-sink.c
index a0b7ed1c4..0eecd1ac8 100644
--- a/android/hal-a2dp-sink.c
+++ b/android/hal-a2dp-sink.c
@@ -1,18 +1,7 @@
+// SPDX-License-Identifier: Apache-2.0
/*
* Copyright (C) 2014 Intel Corporation
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
*/

#include <stdbool.h>
diff --git a/android/hal-a2dp.c b/android/hal-a2dp.c
index f572875e8..34ca52fc8 100644
--- a/android/hal-a2dp.c
+++ b/android/hal-a2dp.c
@@ -1,18 +1,7 @@
+// SPDX-License-Identifier: Apache-2.0
/*
* Copyright (C) 2013 Intel Corporation
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
*/

#include <stdbool.h>
diff --git a/android/hal-audio-aptx.c b/android/hal-audio-aptx.c
index 4e364fc65..254ddf61c 100644
--- a/android/hal-audio-aptx.c
+++ b/android/hal-audio-aptx.c
@@ -1,18 +1,7 @@
+// SPDX-License-Identifier: Apache-2.0
/*
* Copyright (C) 2014 Tieto Poland
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
*/

#define _GNU_SOURCE
diff --git a/android/hal-audio-sbc.c b/android/hal-audio-sbc.c
index b06cafb7b..9c64d339c 100644
--- a/android/hal-audio-sbc.c
+++ b/android/hal-audio-sbc.c
@@ -1,18 +1,7 @@
+// SPDX-License-Identifier: Apache-2.0
/*
* Copyright (C) 2013 Intel Corporation
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
*/

#define _GNU_SOURCE
diff --git a/android/hal-audio.c b/android/hal-audio.c
index 2b25b6e08..d37d6098c 100644
--- a/android/hal-audio.c
+++ b/android/hal-audio.c
@@ -1,18 +1,7 @@
+// SPDX-License-Identifier: Apache-2.0
/*
* Copyright (C) 2013 Intel Corporation
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
*/

#define _GNU_SOURCE
diff --git a/android/hal-audio.h b/android/hal-audio.h
index 2b47412fc..389d14fc1 100644
--- a/android/hal-audio.h
+++ b/android/hal-audio.h
@@ -1,18 +1,7 @@
+/* SPDX-License-Identifier: Apache-2.0 */
/*
* Copyright (C) 2013 Intel Corporation
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
*/

#include <time.h>
diff --git a/android/hal-avrcp-ctrl.c b/android/hal-avrcp-ctrl.c
index a6137a5ad..41bdf9e7d 100644
--- a/android/hal-avrcp-ctrl.c
+++ b/android/hal-avrcp-ctrl.c
@@ -1,18 +1,7 @@
+// SPDX-License-Identifier: Apache-2.0
/*
* Copyright (C) 2014 Intel Corporation
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
*/

#define _GNU_SOURCE
diff --git a/android/hal-avrcp.c b/android/hal-avrcp.c
index b2127ade9..709ebf835 100644
--- a/android/hal-avrcp.c
+++ b/android/hal-avrcp.c
@@ -1,18 +1,7 @@
+// SPDX-License-Identifier: Apache-2.0
/*
* Copyright (C) 2014 Intel Corporation
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
*/

#define _GNU_SOURCE
diff --git a/android/hal-bluetooth.c b/android/hal-bluetooth.c
index ee3a5e054..d4442e620 100644
--- a/android/hal-bluetooth.c
+++ b/android/hal-bluetooth.c
@@ -1,18 +1,7 @@
+// SPDX-License-Identifier: Apache-2.0
/*
* Copyright (C) 2013 Intel Corporation
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
*/

#define _GNU_SOURCE
diff --git a/android/hal-gatt.c b/android/hal-gatt.c
index 2e706cf24..c471f795c 100644
--- a/android/hal-gatt.c
+++ b/android/hal-gatt.c
@@ -1,18 +1,7 @@
+// SPDX-License-Identifier: Apache-2.0
/*
* Copyright (C) 2014 Intel Corporation
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
*/

#define _GNU_SOURCE
diff --git a/android/hal-handsfree-client.c b/android/hal-handsfree-client.c
index 93b5746b6..759164bde 100644
--- a/android/hal-handsfree-client.c
+++ b/android/hal-handsfree-client.c
@@ -1,18 +1,7 @@
+// SPDX-License-Identifier: Apache-2.0
/*
* Copyright (C) 2014 Intel Corporation
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
*/

#include <stdbool.h>
diff --git a/android/hal-handsfree.c b/android/hal-handsfree.c
index af21b675f..d602df988 100644
--- a/android/hal-handsfree.c
+++ b/android/hal-handsfree.c
@@ -1,18 +1,7 @@
+// SPDX-License-Identifier: Apache-2.0
/*
* Copyright (C) 2014 Intel Corporation
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
*/

#define _GNU_SOURCE
diff --git a/android/hal-health.c b/android/hal-health.c
index 5d5b11137..2da389187 100644
--- a/android/hal-health.c
+++ b/android/hal-health.c
@@ -1,18 +1,7 @@
+// SPDX-License-Identifier: Apache-2.0
/*
* Copyright (C) 2014 Intel Corporation
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
*/

#include <stdbool.h>
diff --git a/android/hal-hidhost.c b/android/hal-hidhost.c
index 1a603269c..2840ce559 100644
--- a/android/hal-hidhost.c
+++ b/android/hal-hidhost.c
@@ -1,18 +1,7 @@
+// SPDX-License-Identifier: Apache-2.0
/*
* Copyright (C) 2013 Intel Corporation
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
*/

#include <stdbool.h>
diff --git a/android/hal-ipc.c b/android/hal-ipc.c
index 363072cfc..8b37b7e0e 100644
--- a/android/hal-ipc.c
+++ b/android/hal-ipc.c
@@ -1,18 +1,7 @@
+// SPDX-License-Identifier: Apache-2.0
/*
* Copyright (C) 2013 Intel Corporation
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
*/

#include <pthread.h>
diff --git a/android/hal-ipc.h b/android/hal-ipc.h
index 08ed7cc85..a7a8dce51 100644
--- a/android/hal-ipc.h
+++ b/android/hal-ipc.h
@@ -1,18 +1,7 @@
+/* SPDX-License-Identifier: Apache-2.0 */
/*
* Copyright (C) 2013 Intel Corporation
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
*/

struct hal_ipc_handler {
diff --git a/android/hal-log.h b/android/hal-log.h
index 63ff61b13..2d5abd752 100644
--- a/android/hal-log.h
+++ b/android/hal-log.h
@@ -1,18 +1,7 @@
+/* SPDX-License-Identifier: Apache-2.0 */
/*
* Copyright (C) 2013 Intel Corporation
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
*/

#define LOG_TAG "BlueZ"
diff --git a/android/hal-map-client.c b/android/hal-map-client.c
index adf04fcef..0956e80aa 100644
--- a/android/hal-map-client.c
+++ b/android/hal-map-client.c
@@ -1,18 +1,7 @@
+// SPDX-License-Identifier: Apache-2.0
/*
* Copyright (C) 2014 Intel Corporation
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
*/

#include <stdlib.h>
diff --git a/android/hal-msg.h b/android/hal-msg.h
index ea79fa7df..c6c1e6118 100644
--- a/android/hal-msg.h
+++ b/android/hal-msg.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: LGPL-2.1-or-later */
/*
*
* BlueZ - Bluetooth protocol stack for Linux
@@ -5,20 +6,6 @@
* Copyright (C) 2013 Intel Corporation. All rights reserved.
*
*
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
- *
*/

static const char BLUEZ_HAL_SK_PATH[] = "\0bluez_hal_socket";
diff --git a/android/hal-pan.c b/android/hal-pan.c
index 5e1afc80a..ca30911db 100644
--- a/android/hal-pan.c
+++ b/android/hal-pan.c
@@ -1,18 +1,7 @@
+// SPDX-License-Identifier: Apache-2.0
/*
* Copyright (C) 2013 Intel Corporation
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
*/

#define _GNU_SOURCE
diff --git a/android/hal-sco.c b/android/hal-sco.c
index f4b4d3160..d7c08a68b 100644
--- a/android/hal-sco.c
+++ b/android/hal-sco.c
@@ -1,18 +1,7 @@
+// SPDX-License-Identifier: Apache-2.0
/*
* Copyright (C) 2013 Intel Corporation
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
*/

#define _GNU_SOURCE
diff --git a/android/hal-socket.c b/android/hal-socket.c
index b971074f9..8d47fdd45 100644
--- a/android/hal-socket.c
+++ b/android/hal-socket.c
@@ -1,18 +1,7 @@
+// SPDX-License-Identifier: Apache-2.0
/*
* Copyright (C) 2013 Intel Corporation
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
*/

#define _GNU_SOURCE
diff --git a/android/hal-utils.c b/android/hal-utils.c
index 74f292756..453922be7 100644
--- a/android/hal-utils.c
+++ b/android/hal-utils.c
@@ -1,18 +1,7 @@
+// SPDX-License-Identifier: Apache-2.0
/*
* Copyright (C) 2013 Intel Corporation
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
*/

#define _GNU_SOURCE
diff --git a/android/hal-utils.h b/android/hal-utils.h
index 9c5994855..4289d431c 100644
--- a/android/hal-utils.h
+++ b/android/hal-utils.h
@@ -1,18 +1,7 @@
+/* SPDX-License-Identifier: Apache-2.0 */
/*
* Copyright (C) 2013 Intel Corporation
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
*/

#include <endian.h>
diff --git a/android/hal.h b/android/hal.h
index 709c19758..df2f45db2 100644
--- a/android/hal.h
+++ b/android/hal.h
@@ -1,18 +1,7 @@
+/* SPDX-License-Identifier: Apache-2.0 */
/*
* Copyright (C) 2013 Intel Corporation
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
*/

#include <hardware/bluetooth.h>
diff --git a/android/handsfree-client.c b/android/handsfree-client.c
index 65659b899..4c682fbb8 100644
--- a/android/handsfree-client.c
+++ b/android/handsfree-client.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: LGPL-2.1-or-later
/*
*
* BlueZ - Bluetooth protocol stack for Linux
@@ -5,20 +6,6 @@
* Copyright (C) 2014 Intel Corporation. All rights reserved.
*
*
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
- *
*/

#ifdef HAVE_CONFIG_H
diff --git a/android/handsfree-client.h b/android/handsfree-client.h
index 1eb69ff36..344d68520 100644
--- a/android/handsfree-client.h
+++ b/android/handsfree-client.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: LGPL-2.1-or-later */
/*
*
* BlueZ - Bluetooth protocol stack for Linux
@@ -5,20 +6,6 @@
* Copyright (C) 2014 Intel Corporation. All rights reserved.
*
*
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
- *
*/

bool bt_hf_client_register(struct ipc *ipc, const bdaddr_t *addr);
diff --git a/android/handsfree.c b/android/handsfree.c
index ebe03728e..2365356c2 100644
--- a/android/handsfree.c
+++ b/android/handsfree.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: LGPL-2.1-or-later
/*
*
* BlueZ - Bluetooth protocol stack for Linux
@@ -5,20 +6,6 @@
* Copyright (C) 2013-2014 Intel Corporation. All rights reserved.
*
*
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
- *
*/

#ifdef HAVE_CONFIG_H
diff --git a/android/handsfree.h b/android/handsfree.h
index d4fd649b0..d45bdb69a 100644
--- a/android/handsfree.h
+++ b/android/handsfree.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: LGPL-2.1-or-later */
/*
*
* BlueZ - Bluetooth protocol stack for Linux
@@ -5,20 +6,6 @@
* Copyright (C) 2013-2014 Intel Corporation. All rights reserved.
*
*
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
- *
*/

bool bt_handsfree_register(struct ipc *ipc, const bdaddr_t *addr, uint8_t mode,
diff --git a/android/hardware/audio.h b/android/hardware/audio.h
index 3cc2be545..b612b9d11 100644
--- a/android/hardware/audio.h
+++ b/android/hardware/audio.h
@@ -1,17 +1,7 @@
+/* SPDX-License-Identifier: Apache-2.0 */
/*
* Copyright (C) 2011 The Android Open Source Project
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
*/


diff --git a/android/hardware/audio_effect.h b/android/hardware/audio_effect.h
index 69ea89617..2c63f1ccf 100644
--- a/android/hardware/audio_effect.h
+++ b/android/hardware/audio_effect.h
@@ -1,17 +1,7 @@
+/* SPDX-License-Identifier: Apache-2.0 */
/*
* Copyright (C) 2011 The Android Open Source Project
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
*/


diff --git a/android/hardware/bluetooth.h b/android/hardware/bluetooth.h
index 74cd1fce6..21253e00a 100644
--- a/android/hardware/bluetooth.h
+++ b/android/hardware/bluetooth.h
@@ -1,17 +1,7 @@
+/* SPDX-License-Identifier: Apache-2.0 */
/*
* Copyright (C) 2012 The Android Open Source Project
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
*/

#ifndef ANDROID_INCLUDE_BLUETOOTH_H
diff --git a/android/hardware/bt_av.h b/android/hardware/bt_av.h
index 5252a179b..427244d48 100644
--- a/android/hardware/bt_av.h
+++ b/android/hardware/bt_av.h
@@ -1,17 +1,7 @@
+/* SPDX-License-Identifier: Apache-2.0 */
/*
* Copyright (C) 2012 The Android Open Source Project
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
*/

#ifndef ANDROID_INCLUDE_BT_AV_H
diff --git a/android/hardware/bt_gatt.h b/android/hardware/bt_gatt.h
index 42e14c2f1..c48a446c2 100644
--- a/android/hardware/bt_gatt.h
+++ b/android/hardware/bt_gatt.h
@@ -1,17 +1,7 @@
+/* SPDX-License-Identifier: Apache-2.0 */
/*
* Copyright (C) 2013 The Android Open Source Project
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
*/


diff --git a/android/hardware/bt_gatt_client.h b/android/hardware/bt_gatt_client.h
index 8073dd1d6..414e7b075 100644
--- a/android/hardware/bt_gatt_client.h
+++ b/android/hardware/bt_gatt_client.h
@@ -1,17 +1,7 @@
+/* SPDX-License-Identifier: Apache-2.0 */
/*
* Copyright (C) 2013 The Android Open Source Project
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
*/


diff --git a/android/hardware/bt_gatt_server.h b/android/hardware/bt_gatt_server.h
index 0d6cc1e8d..fbb8fe6b8 100644
--- a/android/hardware/bt_gatt_server.h
+++ b/android/hardware/bt_gatt_server.h
@@ -1,17 +1,7 @@
+/* SPDX-License-Identifier: Apache-2.0 */
/*
* Copyright (C) 2013 The Android Open Source Project
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
*/


diff --git a/android/hardware/bt_gatt_types.h b/android/hardware/bt_gatt_types.h
index e037ddcdb..c7c000e8d 100644
--- a/android/hardware/bt_gatt_types.h
+++ b/android/hardware/bt_gatt_types.h
@@ -1,17 +1,7 @@
+/* SPDX-License-Identifier: Apache-2.0 */
/*
* Copyright (C) 2013 The Android Open Source Project
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
*/


diff --git a/android/hardware/bt_hf.h b/android/hardware/bt_hf.h
index 7dcb40a4b..c3f952415 100644
--- a/android/hardware/bt_hf.h
+++ b/android/hardware/bt_hf.h
@@ -1,17 +1,7 @@
+/* SPDX-License-Identifier: Apache-2.0 */
/*
* Copyright (C) 2012 The Android Open Source Project
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
*/

#ifndef ANDROID_INCLUDE_BT_HF_H
diff --git a/android/hardware/bt_hf_client.h b/android/hardware/bt_hf_client.h
index 8acf1b2c5..4a0ec364b 100644
--- a/android/hardware/bt_hf_client.h
+++ b/android/hardware/bt_hf_client.h
@@ -1,17 +1,7 @@
+/* SPDX-License-Identifier: Apache-2.0 */
/*
* Copyright (C) 2012-2014 The Android Open Source Project
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
*/

#ifndef ANDROID_INCLUDE_BT_HF_CLIENT_H
diff --git a/android/hardware/bt_hh.h b/android/hardware/bt_hh.h
index dad958680..2dd61beac 100644
--- a/android/hardware/bt_hh.h
+++ b/android/hardware/bt_hh.h
@@ -1,17 +1,7 @@
+/* SPDX-License-Identifier: Apache-2.0 */
/*
* Copyright (C) 2012 The Android Open Source Project
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
*/

#ifndef ANDROID_INCLUDE_BT_HH_H
diff --git a/android/hardware/bt_hl.h b/android/hardware/bt_hl.h
index bd29e3abf..d26c054a7 100644
--- a/android/hardware/bt_hl.h
+++ b/android/hardware/bt_hl.h
@@ -1,17 +1,7 @@
+/* SPDX-License-Identifier: Apache-2.0 */
/*
* Copyright (C) 2012 The Android Open Source Project
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
*/

#ifndef ANDROID_INCLUDE_BT_HL_H
diff --git a/android/hardware/bt_mce.h b/android/hardware/bt_mce.h
index 5d159b336..4d30ecd87 100644
--- a/android/hardware/bt_mce.h
+++ b/android/hardware/bt_mce.h
@@ -1,17 +1,7 @@
+/* SPDX-License-Identifier: Apache-2.0 */
/*
* Copyright (C) 2014 The Android Open Source Project
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
*/

#ifndef ANDROID_INCLUDE_BT_MCE_H
diff --git a/android/hardware/bt_pan.h b/android/hardware/bt_pan.h
index 83e7949b2..2f9f4fb77 100644
--- a/android/hardware/bt_pan.h
+++ b/android/hardware/bt_pan.h
@@ -1,17 +1,7 @@
+/* SPDX-License-Identifier: Apache-2.0 */
/*
* Copyright (C) 2012 The Android Open Source Project
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
*/

#ifndef ANDROID_INCLUDE_BT_PAN_H
diff --git a/android/hardware/bt_rc.h b/android/hardware/bt_rc.h
index c565c4875..c1290aeb1 100644
--- a/android/hardware/bt_rc.h
+++ b/android/hardware/bt_rc.h
@@ -1,17 +1,7 @@
+/* SPDX-License-Identifier: Apache-2.0 */
/*
* Copyright (C) 2012 The Android Open Source Project
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
*/

#ifndef ANDROID_INCLUDE_BT_RC_H
diff --git a/android/hardware/bt_sock.h b/android/hardware/bt_sock.h
index a4aa046f2..cb2ff072a 100644
--- a/android/hardware/bt_sock.h
+++ b/android/hardware/bt_sock.h
@@ -1,17 +1,7 @@
+/* SPDX-License-Identifier: Apache-2.0 */
/*
* Copyright (C) 2012 The Android Open Source Project
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
*/

#ifndef ANDROID_INCLUDE_BT_SOCK_H
diff --git a/android/hardware/hardware.c b/android/hardware/hardware.c
index 42d03ba52..db5696297 100644
--- a/android/hardware/hardware.c
+++ b/android/hardware/hardware.c
@@ -1,17 +1,7 @@
+// SPDX-License-Identifier: Apache-2.0
/*
* Copyright (C) 2008 The Android Open Source Project
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
*/

#define _GNU_SOURCE
diff --git a/android/hardware/hardware.h b/android/hardware/hardware.h
index c7e8cc7e9..74470a31a 100644
--- a/android/hardware/hardware.h
+++ b/android/hardware/hardware.h
@@ -1,17 +1,7 @@
+/* SPDX-License-Identifier: Apache-2.0 */
/*
* Copyright (C) 2008 The Android Open Source Project
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
*/

#ifndef ANDROID_INCLUDE_HARDWARE_HARDWARE_H
diff --git a/android/health.c b/android/health.c
index 90253ac00..9a29964b1 100644
--- a/android/health.c
+++ b/android/health.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: LGPL-2.1-or-later
/*
*
* BlueZ - Bluetooth protocol stack for Linux
@@ -6,20 +7,6 @@
* Copyright (C) 2010 GSyC/LibreSoft, Universidad Rey Juan Carlos.
*
*
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
- *
*/

#ifdef HAVE_CONFIG_H
diff --git a/android/health.h b/android/health.h
index 0b32fd318..b221677d3 100644
--- a/android/health.h
+++ b/android/health.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: LGPL-2.1-or-later */
/*
*
* BlueZ - Bluetooth protocol stack for Linux
@@ -5,20 +6,6 @@
* Copyright (C) 2014 Intel Corporation. All rights reserved.
*
*
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
- *
*/

bool bt_health_register(struct ipc *ipc, const bdaddr_t *addr, uint8_t mode);
diff --git a/android/hidhost.c b/android/hidhost.c
index 7bc484f11..016382e17 100644
--- a/android/hidhost.c
+++ b/android/hidhost.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: LGPL-2.1-or-later
/*
*
* BlueZ - Bluetooth protocol stack for Linux
@@ -5,20 +6,6 @@
* Copyright (C) 2013-2014 Intel Corporation. All rights reserved.
*
*
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
- *
*/

#ifdef HAVE_CONFIG_H
diff --git a/android/hidhost.h b/android/hidhost.h
index e6b87ed2b..ee5dc8024 100644
--- a/android/hidhost.h
+++ b/android/hidhost.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: LGPL-2.1-or-later */
/*
*
* BlueZ - Bluetooth protocol stack for Linux
@@ -5,20 +6,6 @@
* Copyright (C) 2013-2014 Intel Corporation. All rights reserved.
*
*
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
- *
*/

bool bt_hid_register(struct ipc *ipc, const bdaddr_t *addr, uint8_t mode);
diff --git a/android/ipc-common.h b/android/ipc-common.h
index 27736e4d6..599b63a94 100644
--- a/android/ipc-common.h
+++ b/android/ipc-common.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: LGPL-2.1-or-later */
/*
*
* BlueZ - Bluetooth protocol stack for Linux
@@ -5,20 +6,6 @@
* Copyright (C) 2014 Intel Corporation. All rights reserved.
*
*
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
- *
*/

#define IPC_MTU 1024
diff --git a/android/ipc-tester.c b/android/ipc-tester.c
index c1d0e8ad6..780e1dc4c 100644
--- a/android/ipc-tester.c
+++ b/android/ipc-tester.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: LGPL-2.1-or-later
/*
*
* BlueZ - Bluetooth protocol stack for Linux
@@ -5,20 +6,6 @@
* Copyright (C) 2013-2014 Intel Corporation. All rights reserved.
*
*
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
- *
*/

#ifdef HAVE_CONFIG_H
diff --git a/android/ipc.c b/android/ipc.c
index 2e674284e..3b3c95293 100644
--- a/android/ipc.c
+++ b/android/ipc.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: LGPL-2.1-or-later
/*
*
* BlueZ - Bluetooth protocol stack for Linux
@@ -5,20 +6,6 @@
* Copyright (C) 2013-2014 Intel Corporation. All rights reserved.
*
*
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
- *
*/

#ifdef HAVE_CONFIG_H
diff --git a/android/ipc.h b/android/ipc.h
index fd2b98521..02510e5f1 100644
--- a/android/ipc.h
+++ b/android/ipc.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: LGPL-2.1-or-later */
/*
*
* BlueZ - Bluetooth protocol stack for Linux
@@ -5,20 +6,6 @@
* Copyright (C) 2013-2014 Intel Corporation. All rights reserved.
*
*
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
- *
*/

struct ipc_handler {
diff --git a/android/log.c b/android/log.c
index 35917c601..ae172cf73 100644
--- a/android/log.c
+++ b/android/log.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
/*
*
* BlueZ - Bluetooth protocol stack for Linux
@@ -5,20 +6,6 @@
* Copyright (C) 2014 Intel Corporation. All rights reserved.
*
*
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
- *
*/
#ifdef HAVE_CONFIG_H
#include <config.h>
diff --git a/android/main.c b/android/main.c
index b505c2f77..b85709a1d 100644
--- a/android/main.c
+++ b/android/main.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: LGPL-2.1-or-later
/*
*
* BlueZ - Bluetooth protocol stack for Linux
@@ -5,20 +6,6 @@
* Copyright (C) 2013-2014 Intel Corporation. All rights reserved.
*
*
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
- *
*/

#ifdef HAVE_CONFIG_H
diff --git a/android/map-client.c b/android/map-client.c
index e3ad148a0..3360bcd38 100644
--- a/android/map-client.c
+++ b/android/map-client.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: LGPL-2.1-or-later
/*
*
* BlueZ - Bluetooth protocol stack for Linux
@@ -5,20 +6,6 @@
* Copyright (C) 2014 Intel Corporation. All rights reserved.
*
*
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
- *
*/

#ifdef HAVE_CONFIG_H
diff --git a/android/map-client.h b/android/map-client.h
index 0e63072f9..9dc237767 100644
--- a/android/map-client.h
+++ b/android/map-client.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: LGPL-2.1-or-later */
/*
*
* BlueZ - Bluetooth protocol stack for Linux
@@ -5,20 +6,6 @@
* Copyright (C) 2014 Intel Corporation. All rights reserved.
*
*
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
- *
*/

bool bt_map_client_register(struct ipc *ipc, const bdaddr_t *addr,
diff --git a/android/pan.c b/android/pan.c
index 1e6d87641..ab4434710 100644
--- a/android/pan.c
+++ b/android/pan.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: LGPL-2.1-or-later
/*
*
* BlueZ - Bluetooth protocol stack for Linux
@@ -5,20 +6,6 @@
* Copyright (C) 2013-2014 Intel Corporation. All rights reserved.
*
*
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
- *
*/

#ifdef HAVE_CONFIG_H
diff --git a/android/pan.h b/android/pan.h
index cfbea96a2..0dc0c1c6f 100644
--- a/android/pan.h
+++ b/android/pan.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: LGPL-2.1-or-later */
/*
*
* BlueZ - Bluetooth protocol stack for Linux
@@ -5,20 +6,6 @@
* Copyright (C) 2013-2014 Intel Corporation. All rights reserved.
*
*
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
- *
*/

bool bt_pan_register(struct ipc *ipc, const bdaddr_t *addr, uint8_t mode);
diff --git a/android/sco-msg.h b/android/sco-msg.h
index d1b13d70d..3eea210d9 100644
--- a/android/sco-msg.h
+++ b/android/sco-msg.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: LGPL-2.1-or-later */
/*
*
* BlueZ - Bluetooth protocol stack for Linux
@@ -5,20 +6,6 @@
* Copyright (C) 2014 Intel Corporation. All rights reserved.
*
*
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
- *
*/

static const char BLUEZ_SCO_SK_PATH[] = "\0bluez_sco_socket";
diff --git a/android/sco.c b/android/sco.c
index e8ac6854f..f3e03c605 100644
--- a/android/sco.c
+++ b/android/sco.c
@@ -1,23 +1,10 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
/*
*
* BlueZ - Bluetooth protocol stack for Linux
*
* Copyright (C) 2014 Intel Corporation. All rights reserved.
*
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
- *
*/

#ifdef HAVE_CONFIG_H
diff --git a/android/sco.h b/android/sco.h
index 4e1a2b3cf..4c7291fbe 100644
--- a/android/sco.h
+++ b/android/sco.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: LGPL-2.1-or-later */
/*
*
* BlueZ - Bluetooth protocol stack for Linux
@@ -5,20 +6,6 @@
* Copyright (C) 2014 Intel Corporation. All rights reserved.
*
*
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
- *
*/

enum sco_status {
diff --git a/android/socket.c b/android/socket.c
index 15e1bfcc9..74cbcf4ef 100644
--- a/android/socket.c
+++ b/android/socket.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: LGPL-2.1-or-later
/*
*
* BlueZ - Bluetooth protocol stack for Linux
@@ -5,20 +6,6 @@
* Copyright (C) 2013-2014 Intel Corporation. All rights reserved.
*
*
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
- *
*/

#ifdef HAVE_CONFIG_H
diff --git a/android/socket.h b/android/socket.h
index b0e78c6d7..347bc30e3 100644
--- a/android/socket.h
+++ b/android/socket.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: LGPL-2.1-or-later */
/*
*
* BlueZ - Bluetooth protocol stack for Linux
@@ -5,20 +6,6 @@
* Copyright (C) 2013-2014 Intel Corporation. All rights reserved.
*
*
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
- *
*/

struct hal_sock_connect_signal {
diff --git a/android/system-emulator.c b/android/system-emulator.c
index edf3e89e0..bf1499df0 100644
--- a/android/system-emulator.c
+++ b/android/system-emulator.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: LGPL-2.1-or-later
/*
*
* BlueZ - Bluetooth protocol stack for Linux
@@ -5,20 +6,6 @@
* Copyright (C) 2013-2014 Intel Corporation. All rights reserved.
*
*
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
- *
*/

#ifdef HAVE_CONFIG_H
diff --git a/android/system/audio.h b/android/system/audio.h
index d2da76db1..0c5af5e84 100644
--- a/android/system/audio.h
+++ b/android/system/audio.h
@@ -1,17 +1,7 @@
+/* SPDX-License-Identifier: Apache-2.0 */
/*
* Copyright (C) 2011 The Android Open Source Project
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
*/


diff --git a/android/test-ipc.c b/android/test-ipc.c
index bb7d15fe0..f11c8f650 100644
--- a/android/test-ipc.c
+++ b/android/test-ipc.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: LGPL-2.1-or-later
/*
*
* BlueZ - Bluetooth protocol stack for Linux
@@ -5,20 +6,6 @@
* Copyright (C) 2013-2014 Intel Corporation. All rights reserved.
*
*
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
- *
*/

#ifdef HAVE_CONFIG_H
diff --git a/android/tester-a2dp.c b/android/tester-a2dp.c
index 554a3941d..c25809245 100644
--- a/android/tester-a2dp.c
+++ b/android/tester-a2dp.c
@@ -1,18 +1,7 @@
+// SPDX-License-Identifier: Apache-2.0
/*
* Copyright (C) 2014 Intel Corporation
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
*/

#define _GNU_SOURCE
diff --git a/android/tester-avrcp.c b/android/tester-avrcp.c
index e0e7b7f6a..f2292d4e4 100644
--- a/android/tester-avrcp.c
+++ b/android/tester-avrcp.c
@@ -1,18 +1,7 @@
+// SPDX-License-Identifier: Apache-2.0
/*
* Copyright (C) 2014 Intel Corporation
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
*/

#define _GNU_SOURCE
diff --git a/android/tester-bluetooth.c b/android/tester-bluetooth.c
index 6db337a94..f7a6b40d7 100644
--- a/android/tester-bluetooth.c
+++ b/android/tester-bluetooth.c
@@ -1,18 +1,7 @@
+// SPDX-License-Identifier: Apache-2.0
/*
* Copyright (C) 2014 Intel Corporation
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
*/

#define _GNU_SOURCE
diff --git a/android/tester-gatt.c b/android/tester-gatt.c
index c10609732..30db7684d 100644
--- a/android/tester-gatt.c
+++ b/android/tester-gatt.c
@@ -1,18 +1,7 @@
+// SPDX-License-Identifier: Apache-2.0
/*
* Copyright (C) 2014 Intel Corporation
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
*/

#define _GNU_SOURCE
diff --git a/android/tester-hdp.c b/android/tester-hdp.c
index b4d14a339..0cc805eac 100644
--- a/android/tester-hdp.c
+++ b/android/tester-hdp.c
@@ -1,18 +1,7 @@
+// SPDX-License-Identifier: Apache-2.0
/*
* Copyright (C) 2014 Intel Corporation
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
*/

#define _GNU_SOURCE
diff --git a/android/tester-hidhost.c b/android/tester-hidhost.c
index 73092cda8..f9daf5590 100644
--- a/android/tester-hidhost.c
+++ b/android/tester-hidhost.c
@@ -1,18 +1,7 @@
+// SPDX-License-Identifier: Apache-2.0
/*
* Copyright (C) 2014 Intel Corporation
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
*/

#define _GNU_SOURCE
diff --git a/android/tester-main.c b/android/tester-main.c
index 9a14b2899..2bfa770bb 100644
--- a/android/tester-main.c
+++ b/android/tester-main.c
@@ -1,18 +1,7 @@
+// SPDX-License-Identifier: Apache-2.0
/*
* Copyright (C) 2014 Intel Corporation
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
*/

#define _GNU_SOURCE
diff --git a/android/tester-main.h b/android/tester-main.h
index 6bdfdbcdb..9b835d5eb 100644
--- a/android/tester-main.h
+++ b/android/tester-main.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: LGPL-2.1-or-later */
/*
*
* BlueZ - Bluetooth protocol stack for Linux
@@ -5,20 +6,6 @@
* Copyright (C) 2014 Intel Corporation. All rights reserved.
*
*
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
- *
*/

#include <glib.h>
diff --git a/android/tester-map-client.c b/android/tester-map-client.c
index ff3f272fc..63ec319b6 100644
--- a/android/tester-map-client.c
+++ b/android/tester-map-client.c
@@ -1,18 +1,7 @@
+// SPDX-License-Identifier: Apache-2.0
/*
* Copyright (C) 2014 Intel Corporation
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
*/

#define _GNU_SOURCE
diff --git a/android/tester-pan.c b/android/tester-pan.c
index 74ad107a8..f70ab95b8 100644
--- a/android/tester-pan.c
+++ b/android/tester-pan.c
@@ -1,18 +1,7 @@
+// SPDX-License-Identifier: Apache-2.0
/*
* Copyright (C) 2014 Intel Corporation
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
*/

#define _GNU_SOURCE
diff --git a/android/tester-socket.c b/android/tester-socket.c
index ac77e5aeb..540ee70d4 100644
--- a/android/tester-socket.c
+++ b/android/tester-socket.c
@@ -1,18 +1,7 @@
+// SPDX-License-Identifier: Apache-2.0
/*
* Copyright (C) 2014 Intel Corporation
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
*/

#define _GNU_SOURCE
diff --git a/android/utils.h b/android/utils.h
index 7adc2dabc..1902e15f8 100644
--- a/android/utils.h
+++ b/android/utils.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: LGPL-2.1-or-later */
/*
*
* BlueZ - Bluetooth protocol stack for Linux
@@ -5,20 +6,6 @@
* Copyright (C) 2013-2014 Intel Corporation. All rights reserved.
*
*
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
- *
*/

static inline void android2bdaddr(const void *buf, bdaddr_t *dst)
--
2.25.4

2020-09-21 19:42:14

by Tedd Ho-Jeong An

[permalink] [raw]
Subject: [BlueZ V4 RESEND 19/20] test: Add SPDX License Identifier

From: Tedd Ho-Jeong An <[email protected]>

This patch adds SPDX License Identifier and removes the license text.

-------------------------------------
License COUNT
-------------------------------------
LGPL-2.1-or-later : 35

License: LGPL-2.1-or-later
test/agent.py
test/bluezutils.py
test/dbusdef.py
test/example-advertisement
test/example-endpoint
test/example-gatt-client
test/example-gatt-server
test/example-player
test/exchange-business-cards
test/ftp-client
test/get-managed-objects
test/get-obex-capabilities
test/list-devices
test/list-folders
test/map-client
test/monitor-bluetooth
test/opp-client
test/pbap-client
test/sap_client.py
test/simple-endpoint
test/simple-obex-agent
test/simple-player
test/test-adapter
test/test-device
test/test-discovery
test/test-gatt-profile
test/test-health
test/test-health-sink
test/test-hfp
test/test-manager
test/test-mesh
test/test-nap
test/test-network
test/test-profile
test/test-sap-server
---
test/agent.py | 1 +
test/bluezutils.py | 2 ++
test/dbusdef.py | 2 ++
test/example-advertisement | 1 +
test/example-endpoint | 1 +
test/example-gatt-client | 1 +
test/example-gatt-server | 1 +
test/example-player | 1 +
test/exchange-business-cards | 1 +
test/ftp-client | 1 +
test/get-managed-objects | 1 +
test/get-obex-capabilities | 1 +
test/list-devices | 1 +
test/list-folders | 1 +
test/map-client | 1 +
test/monitor-bluetooth | 1 +
test/opp-client | 1 +
test/pbap-client | 1 +
test/sap_client.py | 15 +--------------
test/simple-agent | 1 +
test/simple-endpoint | 1 +
test/simple-obex-agent | 1 +
test/simple-player | 1 +
test/test-adapter | 1 +
test/test-device | 1 +
test/test-discovery | 1 +
test/test-gatt-profile | 1 +
test/test-health | 1 +
test/test-health-sink | 1 +
test/test-hfp | 1 +
test/test-join | 1 +
test/test-manager | 1 +
test/test-mesh | 1 +
test/test-nap | 1 +
test/test-network | 1 +
test/test-profile | 1 +
test/test-sap-server | 1 +
37 files changed, 39 insertions(+), 14 deletions(-)

diff --git a/test/agent.py b/test/agent.py
index d8e5534d8..b46cd95f4 100755
--- a/test/agent.py
+++ b/test/agent.py
@@ -1,4 +1,5 @@
#!/usr/bin/python3
+# SPDX-License-Identifier: LGPL-2.1-or-later

import sys
import dbus
diff --git a/test/bluezutils.py b/test/bluezutils.py
index cd8964082..85aa24277 100644
--- a/test/bluezutils.py
+++ b/test/bluezutils.py
@@ -1,3 +1,5 @@
+# SPDX-License-Identifier: LGPL-2.1-or-later
+
import dbus

SERVICE_NAME = "org.bluez"
diff --git a/test/dbusdef.py b/test/dbusdef.py
index f1cd35adb..d317c18de 100644
--- a/test/dbusdef.py
+++ b/test/dbusdef.py
@@ -1,3 +1,5 @@
+# SPDX-License-Identifier: LGPL-2.1-or-later
+
import dbus
import bluezutils

diff --git a/test/example-advertisement b/test/example-advertisement
index 96e410683..5f022ee67 100755
--- a/test/example-advertisement
+++ b/test/example-advertisement
@@ -1,4 +1,5 @@
#!/usr/bin/python
+# SPDX-License-Identifier: LGPL-2.1-or-later

from __future__ import print_function

diff --git a/test/example-endpoint b/test/example-endpoint
index a5f0348a0..16651c683 100644
--- a/test/example-endpoint
+++ b/test/example-endpoint
@@ -1,4 +1,5 @@
#!/usr/bin/python
+# SPDX-License-Identifier: LGPL-2.1-or-later

from __future__ import absolute_import, print_function, unicode_literals

diff --git a/test/example-gatt-client b/test/example-gatt-client
index b4bbaa9d9..5e6bef9d7 100755
--- a/test/example-gatt-client
+++ b/test/example-gatt-client
@@ -1,4 +1,5 @@
#!/usr/bin/env python3
+# SPDX-License-Identifier: LGPL-2.1-or-later

import dbus
try:
diff --git a/test/example-gatt-server b/test/example-gatt-server
index 689e86ff7..77231c3ad 100755
--- a/test/example-gatt-server
+++ b/test/example-gatt-server
@@ -1,4 +1,5 @@
#!/usr/bin/env python3
+# SPDX-License-Identifier: LGPL-2.1-or-later

import dbus
import dbus.exceptions
diff --git a/test/example-player b/test/example-player
index 2beb08e44..1497d1107 100644
--- a/test/example-player
+++ b/test/example-player
@@ -1,4 +1,5 @@
#!/usr/bin/python
+# SPDX-License-Identifier: LGPL-2.1-or-later

from __future__ import print_function

diff --git a/test/exchange-business-cards b/test/exchange-business-cards
index 6805cf71e..9a3aa29fb 100755
--- a/test/exchange-business-cards
+++ b/test/exchange-business-cards
@@ -1,4 +1,5 @@
#!/usr/bin/python
+# SPDX-License-Identifier: LGPL-2.1-or-later

import sys
import dbus
diff --git a/test/ftp-client b/test/ftp-client
index 4540602a0..ef756ab2b 100755
--- a/test/ftp-client
+++ b/test/ftp-client
@@ -1,4 +1,5 @@
#!/usr/bin/python
+# SPDX-License-Identifier: LGPL-2.1-or-later

from __future__ import absolute_import, print_function, unicode_literals

diff --git a/test/get-managed-objects b/test/get-managed-objects
index 3156f658f..5125ee524 100755
--- a/test/get-managed-objects
+++ b/test/get-managed-objects
@@ -1,4 +1,5 @@
#!/usr/bin/python
+# SPDX-License-Identifier: LGPL-2.1-or-later

from __future__ import absolute_import, print_function, unicode_literals

diff --git a/test/get-obex-capabilities b/test/get-obex-capabilities
index e8afbad21..a7980a442 100755
--- a/test/get-obex-capabilities
+++ b/test/get-obex-capabilities
@@ -1,4 +1,5 @@
#!/usr/bin/python
+# SPDX-License-Identifier: LGPL-2.1-or-later

import sys
import dbus
diff --git a/test/list-devices b/test/list-devices
index 0aac217d1..b112556c3 100755
--- a/test/list-devices
+++ b/test/list-devices
@@ -1,4 +1,5 @@
#!/usr/bin/python
+# SPDX-License-Identifier: LGPL-2.1-or-later

from __future__ import absolute_import, print_function, unicode_literals

diff --git a/test/list-folders b/test/list-folders
index 7321a1527..b4e3f100b 100755
--- a/test/list-folders
+++ b/test/list-folders
@@ -1,4 +1,5 @@
#!/usr/bin/python
+# SPDX-License-Identifier: LGPL-2.1-or-later

import sys
import dbus
diff --git a/test/map-client b/test/map-client
index b9695da66..a2d96ae5f 100755
--- a/test/map-client
+++ b/test/map-client
@@ -1,4 +1,5 @@
#!/usr/bin/python
+# SPDX-License-Identifier: LGPL-2.1-or-later

from __future__ import absolute_import, print_function, unicode_literals

diff --git a/test/monitor-bluetooth b/test/monitor-bluetooth
index d9b5472f5..a3977e206 100755
--- a/test/monitor-bluetooth
+++ b/test/monitor-bluetooth
@@ -1,4 +1,5 @@
#!/usr/bin/python
+# SPDX-License-Identifier: LGPL-2.1-or-later

from __future__ import absolute_import, print_function, unicode_literals

diff --git a/test/opp-client b/test/opp-client
index 62d5b8454..4f00a41c0 100755
--- a/test/opp-client
+++ b/test/opp-client
@@ -1,4 +1,5 @@
#!/usr/bin/python
+# SPDX-License-Identifier: LGPL-2.1-or-later

from __future__ import absolute_import, print_function, unicode_literals

diff --git a/test/pbap-client b/test/pbap-client
index 16a786bb1..e6cafdd30 100755
--- a/test/pbap-client
+++ b/test/pbap-client
@@ -1,4 +1,5 @@
#!/usr/bin/python
+# SPDX-License-Identifier: LGPL-2.1-or-later

from __future__ import absolute_import, print_function, unicode_literals

diff --git a/test/sap_client.py b/test/sap_client.py
index 413424c05..fed13aedc 100644
--- a/test/sap_client.py
+++ b/test/sap_client.py
@@ -1,21 +1,8 @@
+# SPDX-License-Identifier: LGPL-2.1-or-later
""" Copyright (C) 2010-2011 ST-Ericsson SA """

""" Author: Szymon Janc <[email protected]> for ST-Ericsson. """

-""" This program is free software; you can redistribute it and/or modify """
-""" it under the terms of the GNU General Public License as published by """
-""" the Free Software Foundation; either version 2 of the License, or """
-""" (at your option) any later version. """
-
-""" This program is distributed in the hope that it will be useful, """
-""" but WITHOUT ANY WARRANTY; without even the implied warranty of """
-""" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the """
-""" GNU General Public License for more details. """
-
-""" You should have received a copy of the GNU General Public License """
-""" along with this program; if not, write to the Free Software """
-""" Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA """
-
from array import array
from bluetooth import *
import time
diff --git a/test/simple-agent b/test/simple-agent
index a69299a3e..4fdaff1eb 100755
--- a/test/simple-agent
+++ b/test/simple-agent
@@ -1,4 +1,5 @@
#!/usr/bin/python
+# SPDX-License-Identifier: LGPL-2.1-or-later

from __future__ import absolute_import, print_function, unicode_literals

diff --git a/test/simple-endpoint b/test/simple-endpoint
index 78fb5fda5..59ca189ce 100755
--- a/test/simple-endpoint
+++ b/test/simple-endpoint
@@ -1,4 +1,5 @@
#!/usr/bin/python
+# SPDX-License-Identifier: LGPL-2.1-or-later

from __future__ import absolute_import, print_function, unicode_literals

diff --git a/test/simple-obex-agent b/test/simple-obex-agent
index 05ec4eda7..064f6d30b 100755
--- a/test/simple-obex-agent
+++ b/test/simple-obex-agent
@@ -1,4 +1,5 @@
#!/usr/bin/python
+# SPDX-License-Identifier: LGPL-2.1-or-later

from __future__ import absolute_import, print_function, unicode_literals

diff --git a/test/simple-player b/test/simple-player
index 02754c2f4..92682844d 100755
--- a/test/simple-player
+++ b/test/simple-player
@@ -1,4 +1,5 @@
#!/usr/bin/python
+# SPDX-License-Identifier: LGPL-2.1-or-later

from __future__ import print_function

diff --git a/test/test-adapter b/test/test-adapter
index 959a43703..a216140ba 100755
--- a/test/test-adapter
+++ b/test/test-adapter
@@ -1,4 +1,5 @@
#!/usr/bin/python
+# SPDX-License-Identifier: LGPL-2.1-or-later

from __future__ import absolute_import, print_function, unicode_literals

diff --git a/test/test-device b/test/test-device
index b490d53f4..a1e508166 100755
--- a/test/test-device
+++ b/test/test-device
@@ -1,4 +1,5 @@
#!/usr/bin/python
+# SPDX-License-Identifier: LGPL-2.1-or-later

from __future__ import absolute_import, print_function, unicode_literals

diff --git a/test/test-discovery b/test/test-discovery
index cea77683d..eccc7c7e3 100755
--- a/test/test-discovery
+++ b/test/test-discovery
@@ -1,4 +1,5 @@
#!/usr/bin/python
+# SPDX-License-Identifier: LGPL-2.1-or-later

from __future__ import absolute_import, print_function, unicode_literals

diff --git a/test/test-gatt-profile b/test/test-gatt-profile
index 995a65913..a973ae14e 100755
--- a/test/test-gatt-profile
+++ b/test/test-gatt-profile
@@ -1,4 +1,5 @@
#!/usr/bin/python
+# SPDX-License-Identifier: LGPL-2.1-or-later

from __future__ import absolute_import, print_function, unicode_literals

diff --git a/test/test-health b/test/test-health
index 24afa799e..d6b437ed8 100755
--- a/test/test-health
+++ b/test/test-health
@@ -1,4 +1,5 @@
#!/usr/bin/python
+# SPDX-License-Identifier: LGPL-2.1-or-later

from __future__ import absolute_import, print_function, unicode_literals
# -*- coding: utf-8 -*-
diff --git a/test/test-health-sink b/test/test-health-sink
index 37e630a21..57665d2ba 100755
--- a/test/test-health-sink
+++ b/test/test-health-sink
@@ -1,4 +1,5 @@
#!/usr/bin/python
+# SPDX-License-Identifier: LGPL-2.1-or-later

from __future__ import absolute_import, print_function, unicode_literals
# -*- coding: utf-8 -*-
diff --git a/test/test-hfp b/test/test-hfp
index a8060439e..11e328e54 100755
--- a/test/test-hfp
+++ b/test/test-hfp
@@ -1,4 +1,5 @@
#!/usr/bin/python
+# SPDX-License-Identifier: LGPL-2.1-or-later

from __future__ import absolute_import, print_function, unicode_literals

diff --git a/test/test-join b/test/test-join
index 6dfb2e8c3..969795094 100644
--- a/test/test-join
+++ b/test/test-join
@@ -1,4 +1,5 @@
#!/usr/bin/env python3
+# SPDX-License-Identifier: LGPL-2.1-or-later

import sys
import struct
diff --git a/test/test-manager b/test/test-manager
index 4f5994f67..3fa7205a0 100755
--- a/test/test-manager
+++ b/test/test-manager
@@ -1,4 +1,5 @@
#!/usr/bin/python
+# SPDX-License-Identifier: LGPL-2.1-or-later

from __future__ import absolute_import, print_function, unicode_literals

diff --git a/test/test-mesh b/test/test-mesh
index 1e1b8724d..9e4783734 100755
--- a/test/test-mesh
+++ b/test/test-mesh
@@ -1,4 +1,5 @@
#!/usr/bin/env python3
+# SPDX-License-Identifier: LGPL-2.1-or-later

###################################################################
#
diff --git a/test/test-nap b/test/test-nap
index ab67a7509..d5c757b79 100755
--- a/test/test-nap
+++ b/test/test-nap
@@ -1,4 +1,5 @@
#!/usr/bin/python
+# SPDX-License-Identifier: LGPL-2.1-or-later

from __future__ import absolute_import, print_function, unicode_literals

diff --git a/test/test-network b/test/test-network
index 6f0948649..acc7dff65 100755
--- a/test/test-network
+++ b/test/test-network
@@ -1,4 +1,5 @@
#!/usr/bin/python
+# SPDX-License-Identifier: LGPL-2.1-or-later

from __future__ import absolute_import, print_function, unicode_literals

diff --git a/test/test-profile b/test/test-profile
index 27915806f..af1e23f76 100755
--- a/test/test-profile
+++ b/test/test-profile
@@ -1,4 +1,5 @@
#!/usr/bin/python
+# SPDX-License-Identifier: LGPL-2.1-or-later

from __future__ import absolute_import, print_function, unicode_literals

diff --git a/test/test-sap-server b/test/test-sap-server
index ff178af22..ddb1efe9b 100755
--- a/test/test-sap-server
+++ b/test/test-sap-server
@@ -1,4 +1,5 @@
#!/usr/bin/python
+# SPDX-License-Identifier: LGPL-2.1-or-later

from __future__ import absolute_import, print_function, unicode_literals

--
2.25.4

2020-09-21 19:47:04

by Tedd Ho-Jeong An

[permalink] [raw]
Subject: [BlueZ V4 RESEND 20/20] LICENSES: Add License files

From: Tedd Ho-Jeong An <[email protected]>

This patch adds the full text of licenses used in the BlueZ.
---
LICENSES/dual/Apache-2.0 | 187 ++++++++++++
LICENSES/preferred/BSD-2-Clause | 32 ++
LICENSES/preferred/GPL-2.0 | 354 ++++++++++++++++++++++
LICENSES/preferred/LGPL-2.1 | 503 ++++++++++++++++++++++++++++++++
LICENSES/preferred/MIT | 30 ++
5 files changed, 1106 insertions(+)
create mode 100644 LICENSES/dual/Apache-2.0
create mode 100644 LICENSES/preferred/BSD-2-Clause
create mode 100644 LICENSES/preferred/GPL-2.0
create mode 100644 LICENSES/preferred/LGPL-2.1
create mode 100644 LICENSES/preferred/MIT

diff --git a/LICENSES/dual/Apache-2.0 b/LICENSES/dual/Apache-2.0
new file mode 100644
index 000000000..6e89ddeab
--- /dev/null
+++ b/LICENSES/dual/Apache-2.0
@@ -0,0 +1,187 @@
+Valid-License-Identifier: Apache-2.0
+SPDX-URL: https://spdx.org/licenses/Apache-2.0.html
+Usage-Guide:
+ Do NOT use. The Apache-2.0 is not GPL2 compatible. It may only be used
+ for dual-licensed files where the other license is GPL2 compatible.
+ If you end up using this it MUST be used together with a GPL2 compatible
+ license using "OR".
+ To use the Apache License version 2.0 put the following SPDX tag/value
+ pair into a comment according to the placement guidelines in the
+ licensing rules documentation:
+ SPDX-License-Identifier: Apache-2.0
+License-Text:
+
+Apache License
+
+Version 2.0, January 2004
+
+http://www.apache.org/licenses/
+
+TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+1. Definitions.
+
+"License" shall mean the terms and conditions for use, reproduction, and
+distribution as defined by Sections 1 through 9 of this document.
+
+"Licensor" shall mean the copyright owner or entity authorized by the
+copyright owner that is granting the License.
+
+"Legal Entity" shall mean the union of the acting entity and all other
+entities that control, are controlled by, or are under common control with
+that entity. For the purposes of this definition, "control" means (i) the
+power, direct or indirect, to cause the direction or management of such
+entity, whether by contract or otherwise, or (ii) ownership of fifty
+percent (50%) or more of the outstanding shares, or (iii) beneficial
+ownership of such entity.
+
+"You" (or "Your") shall mean an individual or Legal Entity exercising
+permissions granted by this License.
+
+"Source" form shall mean the preferred form for making modifications,
+including but not limited to software source code, documentation source,
+and configuration files.
+
+"Object" form shall mean any form resulting from mechanical transformation
+or translation of a Source form, including but not limited to compiled
+object code, generated documentation, and conversions to other media types.
+
+"Work" shall mean the work of authorship, whether in Source or Object form,
+made available under the License, as indicated by a copyright notice that
+is included in or attached to the work (an example is provided in the
+Appendix below).
+
+"Derivative Works" shall mean any work, whether in Source or Object form,
+that is based on (or derived from) the Work and for which the editorial
+revisions, annotations, elaborations, or other modifications represent, as
+a whole, an original work of authorship. For the purposes of this License,
+Derivative Works shall not include works that remain separable from, or
+merely link (or bind by name) to the interfaces of, the Work and Derivative
+Works thereof.
+
+"Contribution" shall mean any work of authorship, including the original
+version of the Work and any modifications or additions to that Work or
+Derivative Works thereof, that is intentionally submitted to Licensor for
+inclusion in the Work by the copyright owner or by an individual or Legal
+Entity authorized to submit on behalf of the copyright owner. For the
+purposes of this definition, "submitted" means any form of electronic,
+verbal, or written communication sent to the Licensor or its
+representatives, including but not limited to communication on electronic
+mailing lists, source code control systems, and issue tracking systems that
+are managed by, or on behalf of, the Licensor for the purpose of discussing
+and improving the Work, but excluding communication that is conspicuously
+marked or otherwise designated in writing by the copyright owner as "Not a
+Contribution."
+
+"Contributor" shall mean Licensor and any individual or Legal Entity on
+behalf of whom a Contribution has been received by Licensor and
+subsequently incorporated within the Work.
+
+2. Grant of Copyright License. Subject to the terms and conditions of this
+ License, each Contributor hereby grants to You a perpetual, worldwide,
+ non-exclusive, no-charge, royalty-free, irrevocable copyright license to
+ reproduce, prepare Derivative Works of, publicly display, publicly
+ perform, sublicense, and distribute the Work and such Derivative Works
+ in Source or Object form.
+
+3. Grant of Patent License. Subject to the terms and conditions of this
+ License, each Contributor hereby grants to You a perpetual, worldwide,
+ non-exclusive, no-charge, royalty-free, irrevocable (except as stated in
+ this section) patent license to make, have made, use, offer to sell,
+ sell, import, and otherwise transfer the Work, where such license
+ applies only to those patent claims licensable by such Contributor that
+ are necessarily infringed by their Contribution(s) alone or by
+ combination of their Contribution(s) with the Work to which such
+ Contribution(s) was submitted. If You institute patent litigation
+ against any entity (including a cross-claim or counterclaim in a
+ lawsuit) alleging that the Work or a Contribution incorporated within
+ the Work constitutes direct or contributory patent infringement, then
+ any patent licenses granted to You under this License for that Work
+ shall terminate as of the date such litigation is filed.
+
+4. Redistribution. You may reproduce and distribute copies of the Work or
+ Derivative Works thereof in any medium, with or without modifications,
+ and in Source or Object form, provided that You meet the following
+ conditions:
+
+ a. You must give any other recipients of the Work or Derivative Works a
+ copy of this License; and
+
+ b. You must cause any modified files to carry prominent notices stating
+ that You changed the files; and
+
+ c. You must retain, in the Source form of any Derivative Works that You
+ distribute, all copyright, patent, trademark, and attribution notices
+ from the Source form of the Work, excluding those notices that do not
+ pertain to any part of the Derivative Works; and
+
+ d. If the Work includes a "NOTICE" text file as part of its
+ distribution, then any Derivative Works that You distribute must
+ include a readable copy of the attribution notices contained within
+ such NOTICE file, excluding those notices that do not pertain to any
+ part of the Derivative Works, in at least one of the following
+ places: within a NOTICE text file distributed as part of the
+ Derivative Works; within the Source form or documentation, if
+ provided along with the Derivative Works; or, within a display
+ generated by the Derivative Works, if and wherever such third-party
+ notices normally appear. The contents of the NOTICE file are for
+ informational purposes only and do not modify the License. You may
+ add Your own attribution notices within Derivative Works that You
+ distribute, alongside or as an addendum to the NOTICE text from the
+ Work, provided that such additional attribution notices cannot be
+ construed as modifying the License.
+
+ You may add Your own copyright statement to Your modifications and may
+ provide additional or different license terms and conditions for use,
+ reproduction, or distribution of Your modifications, or for any such
+ Derivative Works as a whole, provided Your use, reproduction, and
+ distribution of the Work otherwise complies with the conditions stated
+ in this License.
+
+5. Submission of Contributions. Unless You explicitly state otherwise, any
+ Contribution intentionally submitted for inclusion in the Work by You to
+ the Licensor shall be under the terms and conditions of this License,
+ without any additional terms or conditions. Notwithstanding the above,
+ nothing herein shall supersede or modify the terms of any separate
+ license agreement you may have executed with Licensor regarding such
+ Contributions.
+
+6. Trademarks. This License does not grant permission to use the trade
+ names, trademarks, service marks, or product names of the Licensor,
+ except as required for reasonable and customary use in describing the
+ origin of the Work and reproducing the content of the NOTICE file.
+
+7. Disclaimer of Warranty. Unless required by applicable law or agreed to
+ in writing, Licensor provides the Work (and each Contributor provides
+ its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS
+ OF ANY KIND, either express or implied, including, without limitation,
+ any warranties or conditions of TITLE, NON-INFRINGEMENT,
+ MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely
+ responsible for determining the appropriateness of using or
+ redistributing the Work and assume any risks associated with Your
+ exercise of permissions under this License.
+
+8. Limitation of Liability. In no event and under no legal theory, whether
+ in tort (including negligence), contract, or otherwise, unless required
+ by applicable law (such as deliberate and grossly negligent acts) or
+ agreed to in writing, shall any Contributor be liable to You for
+ damages, including any direct, indirect, special, incidental, or
+ consequential damages of any character arising as a result of this
+ License or out of the use or inability to use the Work (including but
+ not limited to damages for loss of goodwill, work stoppage, computer
+ failure or malfunction, or any and all other commercial damages or
+ losses), even if such Contributor has been advised of the possibility of
+ such damages.
+
+9. Accepting Warranty or Additional Liability. While redistributing the
+ Work or Derivative Works thereof, You may choose to offer, and charge a
+ fee for, acceptance of support, warranty, indemnity, or other liability
+ obligations and/or rights consistent with this License. However, in
+ accepting such obligations, You may act only on Your own behalf and on
+ Your sole responsibility, not on behalf of any other Contributor, and
+ only if You agree to indemnify, defend, and hold each Contributor
+ harmless for any liability incurred by, or claims asserted against, such
+ Contributor by reason of your accepting any such warranty or additional
+ liability.
+
+END OF TERMS AND CONDITIONS
diff --git a/LICENSES/preferred/BSD-2-Clause b/LICENSES/preferred/BSD-2-Clause
new file mode 100644
index 000000000..da366e2ce
--- /dev/null
+++ b/LICENSES/preferred/BSD-2-Clause
@@ -0,0 +1,32 @@
+Valid-License-Identifier: BSD-2-Clause
+SPDX-URL: https://spdx.org/licenses/BSD-2-Clause.html
+Usage-Guide:
+ To use the BSD 2-clause "Simplified" License put the following SPDX
+ tag/value pair into a comment according to the placement guidelines in
+ the licensing rules documentation:
+ SPDX-License-Identifier: BSD-2-Clause
+License-Text:
+
+Copyright (c) <year> <owner> . All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions are met:
+
+1. Redistributions of source code must retain the above copyright notice,
+ this list of conditions and the following disclaimer.
+
+2. Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in the
+ documentation and/or other materials provided with the distribution.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
+LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+POSSIBILITY OF SUCH DAMAGE.
diff --git a/LICENSES/preferred/GPL-2.0 b/LICENSES/preferred/GPL-2.0
new file mode 100644
index 000000000..d1128f659
--- /dev/null
+++ b/LICENSES/preferred/GPL-2.0
@@ -0,0 +1,354 @@
+Valid-License-Identifier: GPL-2.0
+Valid-License-Identifier: GPL-2.0-only
+Valid-License-Identifier: GPL-2.0-or-later
+SPDX-URL: https://spdx.org/licenses/GPL-2.0.html
+Usage-Guide:
+ To use this license in source code, put one of the following SPDX
+ tag/value pairs into a comment according to the placement
+ guidelines in the licensing rules documentation.
+ For 'GNU General Public License (GPL) version 2 only' use:
+ SPDX-License-Identifier: GPL-2.0-only
+ For 'GNU General Public License (GPL) version 2 or any later version' use:
+ SPDX-License-Identifier: GPL-2.0-or-later
+License-Text:
+
+ GNU GENERAL PUBLIC LICENSE
+ Version 2, June 1991
+
+ Copyright (C) 1989, 1991 Free Software Foundation, Inc.
+ 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+ Preamble
+
+ The licenses for most software are designed to take away your
+freedom to share and change it. By contrast, the GNU General Public
+License is intended to guarantee your freedom to share and change free
+software--to make sure the software is free for all its users. This
+General Public License applies to most of the Free Software
+Foundation's software and to any other program whose authors commit to
+using it. (Some other Free Software Foundation software is covered by
+the GNU Library General Public License instead.) You can apply it to
+your programs, too.
+
+ When we speak of free software, we are referring to freedom, not
+price. Our General Public Licenses are designed to make sure that you
+have the freedom to distribute copies of free software (and charge for
+this service if you wish), that you receive source code or can get it
+if you want it, that you can change the software or use pieces of it
+in new free programs; and that you know you can do these things.
+
+ To protect your rights, we need to make restrictions that forbid
+anyone to deny you these rights or to ask you to surrender the rights.
+These restrictions translate to certain responsibilities for you if you
+distribute copies of the software, or if you modify it.
+
+ For example, if you distribute copies of such a program, whether
+gratis or for a fee, you must give the recipients all the rights that
+you have. You must make sure that they, too, receive or can get the
+source code. And you must show them these terms so they know their
+rights.
+
+ We protect your rights with two steps: (1) copyright the software, and
+(2) offer you this license which gives you legal permission to copy,
+distribute and/or modify the software.
+
+ Also, for each author's protection and ours, we want to make certain
+that everyone understands that there is no warranty for this free
+software. If the software is modified by someone else and passed on, we
+want its recipients to know that what they have is not the original, so
+that any problems introduced by others will not reflect on the original
+authors' reputations.
+
+ Finally, any free program is threatened constantly by software
+patents. We wish to avoid the danger that redistributors of a free
+program will individually obtain patent licenses, in effect making the
+program proprietary. To prevent this, we have made it clear that any
+patent must be licensed for everyone's free use or not licensed at all.
+
+ The precise terms and conditions for copying, distribution and
+modification follow.
+
+ GNU GENERAL PUBLIC LICENSE
+ TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
+
+ 0. This License applies to any program or other work which contains
+a notice placed by the copyright holder saying it may be distributed
+under the terms of this General Public License. The "Program", below,
+refers to any such program or work, and a "work based on the Program"
+means either the Program or any derivative work under copyright law:
+that is to say, a work containing the Program or a portion of it,
+either verbatim or with modifications and/or translated into another
+language. (Hereinafter, translation is included without limitation in
+the term "modification".) Each licensee is addressed as "you".
+
+Activities other than copying, distribution and modification are not
+covered by this License; they are outside its scope. The act of
+running the Program is not restricted, and the output from the Program
+is covered only if its contents constitute a work based on the
+Program (independent of having been made by running the Program).
+Whether that is true depends on what the Program does.
+
+ 1. You may copy and distribute verbatim copies of the Program's
+source code as you receive it, in any medium, provided that you
+conspicuously and appropriately publish on each copy an appropriate
+copyright notice and disclaimer of warranty; keep intact all the
+notices that refer to this License and to the absence of any warranty;
+and give any other recipients of the Program a copy of this License
+along with the Program.
+
+You may charge a fee for the physical act of transferring a copy, and
+you may at your option offer warranty protection in exchange for a fee.
+
+ 2. You may modify your copy or copies of the Program or any portion
+of it, thus forming a work based on the Program, and copy and
+distribute such modifications or work under the terms of Section 1
+above, provided that you also meet all of these conditions:
+
+ a) You must cause the modified files to carry prominent notices
+ stating that you changed the files and the date of any change.
+
+ b) You must cause any work that you distribute or publish, that in
+ whole or in part contains or is derived from the Program or any
+ part thereof, to be licensed as a whole at no charge to all third
+ parties under the terms of this License.
+
+ c) If the modified program normally reads commands interactively
+ when run, you must cause it, when started running for such
+ interactive use in the most ordinary way, to print or display an
+ announcement including an appropriate copyright notice and a
+ notice that there is no warranty (or else, saying that you provide
+ a warranty) and that users may redistribute the program under
+ these conditions, and telling the user how to view a copy of this
+ License. (Exception: if the Program itself is interactive but
+ does not normally print such an announcement, your work based on
+ the Program is not required to print an announcement.)
+
+These requirements apply to the modified work as a whole. If
+identifiable sections of that work are not derived from the Program,
+and can be reasonably considered independent and separate works in
+themselves, then this License, and its terms, do not apply to those
+sections when you distribute them as separate works. But when you
+distribute the same sections as part of a whole which is a work based
+on the Program, the distribution of the whole must be on the terms of
+this License, whose permissions for other licensees extend to the
+entire whole, and thus to each and every part regardless of who wrote it.
+
+Thus, it is not the intent of this section to claim rights or contest
+your rights to work written entirely by you; rather, the intent is to
+exercise the right to control the distribution of derivative or
+collective works based on the Program.
+
+In addition, mere aggregation of another work not based on the Program
+with the Program (or with a work based on the Program) on a volume of
+a storage or distribution medium does not bring the other work under
+the scope of this License.
+
+ 3. You may copy and distribute the Program (or a work based on it,
+under Section 2) in object code or executable form under the terms of
+Sections 1 and 2 above provided that you also do one of the following:
+
+ a) Accompany it with the complete corresponding machine-readable
+ source code, which must be distributed under the terms of Sections
+ 1 and 2 above on a medium customarily used for software interchange; or,
+
+ b) Accompany it with a written offer, valid for at least three
+ years, to give any third party, for a charge no more than your
+ cost of physically performing source distribution, a complete
+ machine-readable copy of the corresponding source code, to be
+ distributed under the terms of Sections 1 and 2 above on a medium
+ customarily used for software interchange; or,
+
+ c) Accompany it with the information you received as to the offer
+ to distribute corresponding source code. (This alternative is
+ allowed only for noncommercial distribution and only if you
+ received the program in object code or executable form with such
+ an offer, in accord with Subsection b above.)
+
+The source code for a work means the preferred form of the work for
+making modifications to it. For an executable work, complete source
+code means all the source code for all modules it contains, plus any
+associated interface definition files, plus the scripts used to
+control compilation and installation of the executable. However, as a
+special exception, the source code distributed need not include
+anything that is normally distributed (in either source or binary
+form) with the major components (compiler, kernel, and so on) of the
+operating system on which the executable runs, unless that component
+itself accompanies the executable.
+
+If distribution of executable or object code is made by offering
+access to copy from a designated place, then offering equivalent
+access to copy the source code from the same place counts as
+distribution of the source code, even though third parties are not
+compelled to copy the source along with the object code.
+
+ 4. You may not copy, modify, sublicense, or distribute the Program
+except as expressly provided under this License. Any attempt
+otherwise to copy, modify, sublicense or distribute the Program is
+void, and will automatically terminate your rights under this License.
+However, parties who have received copies, or rights, from you under
+this License will not have their licenses terminated so long as such
+parties remain in full compliance.
+
+ 5. You are not required to accept this License, since you have not
+signed it. However, nothing else grants you permission to modify or
+distribute the Program or its derivative works. These actions are
+prohibited by law if you do not accept this License. Therefore, by
+modifying or distributing the Program (or any work based on the
+Program), you indicate your acceptance of this License to do so, and
+all its terms and conditions for copying, distributing or modifying
+the Program or works based on it.
+
+ 6. Each time you redistribute the Program (or any work based on the
+Program), the recipient automatically receives a license from the
+original licensor to copy, distribute or modify the Program subject to
+these terms and conditions. You may not impose any further
+restrictions on the recipients' exercise of the rights granted herein.
+You are not responsible for enforcing compliance by third parties to
+this License.
+
+ 7. If, as a consequence of a court judgment or allegation of patent
+infringement or for any other reason (not limited to patent issues),
+conditions are imposed on you (whether by court order, agreement or
+otherwise) that contradict the conditions of this License, they do not
+excuse you from the conditions of this License. If you cannot
+distribute so as to satisfy simultaneously your obligations under this
+License and any other pertinent obligations, then as a consequence you
+may not distribute the Program at all. For example, if a patent
+license would not permit royalty-free redistribution of the Program by
+all those who receive copies directly or indirectly through you, then
+the only way you could satisfy both it and this License would be to
+refrain entirely from distribution of the Program.
+
+If any portion of this section is held invalid or unenforceable under
+any particular circumstance, the balance of the section is intended to
+apply and the section as a whole is intended to apply in other
+circumstances.
+
+It is not the purpose of this section to induce you to infringe any
+patents or other property right claims or to contest validity of any
+such claims; this section has the sole purpose of protecting the
+integrity of the free software distribution system, which is
+implemented by public license practices. Many people have made
+generous contributions to the wide range of software distributed
+through that system in reliance on consistent application of that
+system; it is up to the author/donor to decide if he or she is willing
+to distribute software through any other system and a licensee cannot
+impose that choice.
+
+This section is intended to make thoroughly clear what is believed to
+be a consequence of the rest of this License.
+
+ 8. If the distribution and/or use of the Program is restricted in
+certain countries either by patents or by copyrighted interfaces, the
+original copyright holder who places the Program under this License
+may add an explicit geographical distribution limitation excluding
+those countries, so that distribution is permitted only in or among
+countries not thus excluded. In such case, this License incorporates
+the limitation as if written in the body of this License.
+
+ 9. The Free Software Foundation may publish revised and/or new versions
+of the General Public License from time to time. Such new versions will
+be similar in spirit to the present version, but may differ in detail to
+address new problems or concerns.
+
+Each version is given a distinguishing version number. If the Program
+specifies a version number of this License which applies to it and "any
+later version", you have the option of following the terms and conditions
+either of that version or of any later version published by the Free
+Software Foundation. If the Program does not specify a version number of
+this License, you may choose any version ever published by the Free Software
+Foundation.
+
+ 10. If you wish to incorporate parts of the Program into other free
+programs whose distribution conditions are different, write to the author
+to ask for permission. For software which is copyrighted by the Free
+Software Foundation, write to the Free Software Foundation; we sometimes
+make exceptions for this. Our decision will be guided by the two goals
+of preserving the free status of all derivatives of our free software and
+of promoting the sharing and reuse of software generally.
+
+ NO WARRANTY
+
+ 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
+FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
+OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
+PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
+OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
+TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
+PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
+REPAIR OR CORRECTION.
+
+ 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
+WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
+REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
+INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
+OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
+TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
+YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
+PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
+POSSIBILITY OF SUCH DAMAGES.
+
+ END OF TERMS AND CONDITIONS
+
+ How to Apply These Terms to Your New Programs
+
+ If you develop a new program, and you want it to be of the greatest
+possible use to the public, the best way to achieve this is to make it
+free software which everyone can redistribute and change under these terms.
+
+ To do so, attach the following notices to the program. It is safest
+to attach them to the start of each source file to most effectively
+convey the exclusion of warranty; and each file should have at least
+the "copyright" line and a pointer to where the full notice is found.
+
+ <one line to give the program's name and a brief idea of what it does.>
+ Copyright (C) <year> <name of author>
+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program; if not, write to the Free Software
+ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+
+
+Also add information on how to contact you by electronic and paper mail.
+
+If the program is interactive, make it output a short notice like this
+when it starts in an interactive mode:
+
+ Gnomovision version 69, Copyright (C) year name of author
+ Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
+ This is free software, and you are welcome to redistribute it
+ under certain conditions; type `show c' for details.
+
+The hypothetical commands `show w' and `show c' should show the appropriate
+parts of the General Public License. Of course, the commands you use may
+be called something other than `show w' and `show c'; they could even be
+mouse-clicks or menu items--whatever suits your program.
+
+You should also get your employer (if you work as a programmer) or your
+school, if any, to sign a "copyright disclaimer" for the program, if
+necessary. Here is a sample; alter the names:
+
+ Yoyodyne, Inc., hereby disclaims all copyright interest in the program
+ `Gnomovision' (which makes passes at compilers) written by James Hacker.
+
+ <signature of Ty Coon>, 1 April 1989
+ Ty Coon, President of Vice
+
+This General Public License does not permit incorporating your program into
+proprietary programs. If your program is a subroutine library, you may
+consider it more useful to permit linking proprietary applications with the
+library. If this is what you want to do, use the GNU Library General
+Public License instead of this License.
diff --git a/LICENSES/preferred/LGPL-2.1 b/LICENSES/preferred/LGPL-2.1
new file mode 100644
index 000000000..8e08d6ea5
--- /dev/null
+++ b/LICENSES/preferred/LGPL-2.1
@@ -0,0 +1,503 @@
+Valid-License-Identifier: LGPL-2.1
+Valid-License-Identifier: LGPL-2.1-or-later
+SPDX-URL: https://spdx.org/licenses/LGPL-2.1.html
+Usage-Guide:
+ To use this license in source code, put one of the following SPDX
+ tag/value pairs into a comment according to the placement
+ guidelines in the licensing rules documentation.
+ For 'GNU Lesser General Public License (LGPL) version 2.1 only' use:
+ SPDX-License-Identifier: LGPL-2.1
+ For 'GNU Lesser General Public License (LGPL) version 2.1 or any later
+ version' use:
+ SPDX-License-Identifier: LGPL-2.1-or-later
+License-Text:
+
+GNU LESSER GENERAL PUBLIC LICENSE
+Version 2.1, February 1999
+
+Copyright (C) 1991, 1999 Free Software Foundation, Inc.
+51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+
+Everyone is permitted to copy and distribute verbatim copies of this
+license document, but changing it is not allowed.
+
+[This is the first released version of the Lesser GPL. It also counts as
+the successor of the GNU Library Public License, version 2, hence the
+version number 2.1.]
+
+Preamble
+
+The licenses for most software are designed to take away your freedom to
+share and change it. By contrast, the GNU General Public Licenses are
+intended to guarantee your freedom to share and change free software--to
+make sure the software is free for all its users.
+
+This license, the Lesser General Public License, applies to some specially
+designated software packages--typically libraries--of the Free Software
+Foundation and other authors who decide to use it. You can use it too, but
+we suggest you first think carefully about whether this license or the
+ordinary General Public License is the better strategy to use in any
+particular case, based on the explanations below.
+
+When we speak of free software, we are referring to freedom of use, not
+price. Our General Public Licenses are designed to make sure that you have
+the freedom to distribute copies of free software (and charge for this
+service if you wish); that you receive source code or can get it if you
+want it; that you can change the software and use pieces of it in new free
+programs; and that you are informed that you can do these things.
+
+To protect your rights, we need to make restrictions that forbid
+distributors to deny you these rights or to ask you to surrender these
+rights. These restrictions translate to certain responsibilities for you if
+you distribute copies of the library or if you modify it.
+
+For example, if you distribute copies of the library, whether gratis or for
+a fee, you must give the recipients all the rights that we gave you. You
+must make sure that they, too, receive or can get the source code. If you
+link other code with the library, you must provide complete object files to
+the recipients, so that they can relink them with the library after making
+changes to the library and recompiling it. And you must show them these
+terms so they know their rights.
+
+We protect your rights with a two-step method: (1) we copyright the
+library, and (2) we offer you this license, which gives you legal
+permission to copy, distribute and/or modify the library.
+
+To protect each distributor, we want to make it very clear that there is no
+warranty for the free library. Also, if the library is modified by someone
+else and passed on, the recipients should know that what they have is not
+the original version, so that the original author's reputation will not be
+affected by problems that might be introduced by others.
+
+Finally, software patents pose a constant threat to the existence of any
+free program. We wish to make sure that a company cannot effectively
+restrict the users of a free program by obtaining a restrictive license
+from a patent holder. Therefore, we insist that any patent license obtained
+for a version of the library must be consistent with the full freedom of
+use specified in this license.
+
+Most GNU software, including some libraries, is covered by the ordinary GNU
+General Public License. This license, the GNU Lesser General Public
+License, applies to certain designated libraries, and is quite different
+from the ordinary General Public License. We use this license for certain
+libraries in order to permit linking those libraries into non-free
+programs.
+
+When a program is linked with a library, whether statically or using a
+shared library, the combination of the two is legally speaking a combined
+work, a derivative of the original library. The ordinary General Public
+License therefore permits such linking only if the entire combination fits
+its criteria of freedom. The Lesser General Public License permits more lax
+criteria for linking other code with the library.
+
+We call this license the "Lesser" General Public License because it does
+Less to protect the user's freedom than the ordinary General Public
+License. It also provides other free software developers Less of an
+advantage over competing non-free programs. These disadvantages are the
+reason we use the ordinary General Public License for many
+libraries. However, the Lesser license provides advantages in certain
+special circumstances.
+
+For example, on rare occasions, there may be a special need to encourage
+the widest possible use of a certain library, so that it becomes a de-facto
+standard. To achieve this, non-free programs must be allowed to use the
+library. A more frequent case is that a free library does the same job as
+widely used non-free libraries. In this case, there is little to gain by
+limiting the free library to free software only, so we use the Lesser
+General Public License.
+
+In other cases, permission to use a particular library in non-free programs
+enables a greater number of people to use a large body of free
+software. For example, permission to use the GNU C Library in non-free
+programs enables many more people to use the whole GNU operating system, as
+well as its variant, the GNU/Linux operating system.
+
+Although the Lesser General Public License is Less protective of the users'
+freedom, it does ensure that the user of a program that is linked with the
+Library has the freedom and the wherewithal to run that program using a
+modified version of the Library.
+
+The precise terms and conditions for copying, distribution and modification
+follow. Pay close attention to the difference between a "work based on the
+library" and a "work that uses the library". The former contains code
+derived from the library, whereas the latter must be combined with the
+library in order to run.
+
+TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
+
+0. This License Agreement applies to any software library or other program
+ which contains a notice placed by the copyright holder or other
+ authorized party saying it may be distributed under the terms of this
+ Lesser General Public License (also called "this License"). Each
+ licensee is addressed as "you".
+
+ A "library" means a collection of software functions and/or data
+ prepared so as to be conveniently linked with application programs
+ (which use some of those functions and data) to form executables.
+
+ The "Library", below, refers to any such software library or work which
+ has been distributed under these terms. A "work based on the Library"
+ means either the Library or any derivative work under copyright law:
+ that is to say, a work containing the Library or a portion of it, either
+ verbatim or with modifications and/or translated straightforwardly into
+ another language. (Hereinafter, translation is included without
+ limitation in the term "modification".)
+
+ "Source code" for a work means the preferred form of the work for making
+ modifications to it. For a library, complete source code means all the
+ source code for all modules it contains, plus any associated interface
+ definition files, plus the scripts used to control compilation and
+ installation of the library.
+
+ Activities other than copying, distribution and modification are not
+ covered by this License; they are outside its scope. The act of running
+ a program using the Library is not restricted, and output from such a
+ program is covered only if its contents constitute a work based on the
+ Library (independent of the use of the Library in a tool for writing
+ it). Whether that is true depends on what the Library does and what the
+ program that uses the Library does.
+
+1. You may copy and distribute verbatim copies of the Library's complete
+ source code as you receive it, in any medium, provided that you
+ conspicuously and appropriately publish on each copy an appropriate
+ copyright notice and disclaimer of warranty; keep intact all the notices
+ that refer to this License and to the absence of any warranty; and
+ distribute a copy of this License along with the Library.
+
+ You may charge a fee for the physical act of transferring a copy, and
+ you may at your option offer warranty protection in exchange for a fee.
+
+2. You may modify your copy or copies of the Library or any portion of it,
+ thus forming a work based on the Library, and copy and distribute such
+ modifications or work under the terms of Section 1 above, provided that
+ you also meet all of these conditions:
+
+ a) The modified work must itself be a software library.
+
+ b) You must cause the files modified to carry prominent notices stating
+ that you changed the files and the date of any change.
+
+ c) You must cause the whole of the work to be licensed at no charge to
+ all third parties under the terms of this License.
+
+ d) If a facility in the modified Library refers to a function or a table
+ of data to be supplied by an application program that uses the
+ facility, other than as an argument passed when the facility is
+ invoked, then you must make a good faith effort to ensure that, in
+ the event an application does not supply such function or table, the
+ facility still operates, and performs whatever part of its purpose
+ remains meaningful.
+
+ (For example, a function in a library to compute square roots has a
+ purpose that is entirely well-defined independent of the
+ application. Therefore, Subsection 2d requires that any
+ application-supplied function or table used by this function must be
+ optional: if the application does not supply it, the square root
+ function must still compute square roots.)
+
+ These requirements apply to the modified work as a whole. If
+ identifiable sections of that work are not derived from the Library, and
+ can be reasonably considered independent and separate works in
+ themselves, then this License, and its terms, do not apply to those
+ sections when you distribute them as separate works. But when you
+ distribute the same sections as part of a whole which is a work based on
+ the Library, the distribution of the whole must be on the terms of this
+ License, whose permissions for other licensees extend to the entire
+ whole, and thus to each and every part regardless of who wrote it.
+
+ Thus, it is not the intent of this section to claim rights or contest
+ your rights to work written entirely by you; rather, the intent is to
+ exercise the right to control the distribution of derivative or
+ collective works based on the Library.
+
+ In addition, mere aggregation of another work not based on the Library
+ with the Library (or with a work based on the Library) on a volume of a
+ storage or distribution medium does not bring the other work under the
+ scope of this License.
+
+3. You may opt to apply the terms of the ordinary GNU General Public
+ License instead of this License to a given copy of the Library. To do
+ this, you must alter all the notices that refer to this License, so that
+ they refer to the ordinary GNU General Public License, version 2,
+ instead of to this License. (If a newer version than version 2 of the
+ ordinary GNU General Public License has appeared, then you can specify
+ that version instead if you wish.) Do not make any other change in these
+ notices.
+
+ Once this change is made in a given copy, it is irreversible for that
+ copy, so the ordinary GNU General Public License applies to all
+ subsequent copies and derivative works made from that copy.
+
+ This option is useful when you wish to copy part of the code of the
+ Library into a program that is not a library.
+
+4. You may copy and distribute the Library (or a portion or derivative of
+ it, under Section 2) in object code or executable form under the terms
+ of Sections 1 and 2 above provided that you accompany it with the
+ complete corresponding machine-readable source code, which must be
+ distributed under the terms of Sections 1 and 2 above on a medium
+ customarily used for software interchange.
+
+ If distribution of object code is made by offering access to copy from a
+ designated place, then offering equivalent access to copy the source
+ code from the same place satisfies the requirement to distribute the
+ source code, even though third parties are not compelled to copy the
+ source along with the object code.
+
+5. A program that contains no derivative of any portion of the Library, but
+ is designed to work with the Library by being compiled or linked with
+ it, is called a "work that uses the Library". Such a work, in isolation,
+ is not a derivative work of the Library, and therefore falls outside the
+ scope of this License.
+
+ However, linking a "work that uses the Library" with the Library creates
+ an executable that is a derivative of the Library (because it contains
+ portions of the Library), rather than a "work that uses the
+ library". The executable is therefore covered by this License. Section 6
+ states terms for distribution of such executables.
+
+ When a "work that uses the Library" uses material from a header file
+ that is part of the Library, the object code for the work may be a
+ derivative work of the Library even though the source code is
+ not. Whether this is true is especially significant if the work can be
+ linked without the Library, or if the work is itself a library. The
+ threshold for this to be true is not precisely defined by law.
+
+ If such an object file uses only numerical parameters, data structure
+ layouts and accessors, and small macros and small inline functions (ten
+ lines or less in length), then the use of the object file is
+ unrestricted, regardless of whether it is legally a derivative
+ work. (Executables containing this object code plus portions of the
+ Library will still fall under Section 6.)
+
+ Otherwise, if the work is a derivative of the Library, you may
+ distribute the object code for the work under the terms of Section
+ 6. Any executables containing that work also fall under Section 6,
+ whether or not they are linked directly with the Library itself.
+
+6. As an exception to the Sections above, you may also combine or link a
+ "work that uses the Library" with the Library to produce a work
+ containing portions of the Library, and distribute that work under terms
+ of your choice, provided that the terms permit modification of the work
+ for the customer's own use and reverse engineering for debugging such
+ modifications.
+
+ You must give prominent notice with each copy of the work that the
+ Library is used in it and that the Library and its use are covered by
+ this License. You must supply a copy of this License. If the work during
+ execution displays copyright notices, you must include the copyright
+ notice for the Library among them, as well as a reference directing the
+ user to the copy of this License. Also, you must do one of these things:
+
+ a) Accompany the work with the complete corresponding machine-readable
+ source code for the Library including whatever changes were used in
+ the work (which must be distributed under Sections 1 and 2 above);
+ and, if the work is an executable linked with the Library, with the
+ complete machine-readable "work that uses the Library", as object
+ code and/or source code, so that the user can modify the Library and
+ then relink to produce a modified executable containing the modified
+ Library. (It is understood that the user who changes the contents of
+ definitions files in the Library will not necessarily be able to
+ recompile the application to use the modified definitions.)
+
+ b) Use a suitable shared library mechanism for linking with the
+ Library. A suitable mechanism is one that (1) uses at run time a copy
+ of the library already present on the user's computer system, rather
+ than copying library functions into the executable, and (2) will
+ operate properly with a modified version of the library, if the user
+ installs one, as long as the modified version is interface-compatible
+ with the version that the work was made with.
+
+ c) Accompany the work with a written offer, valid for at least three
+ years, to give the same user the materials specified in Subsection
+ 6a, above, for a charge no more than the cost of performing this
+ distribution.
+
+ d) If distribution of the work is made by offering access to copy from a
+ designated place, offer equivalent access to copy the above specified
+ materials from the same place.
+
+ e) Verify that the user has already received a copy of these materials
+ or that you have already sent this user a copy.
+
+ For an executable, the required form of the "work that uses the Library"
+ must include any data and utility programs needed for reproducing the
+ executable from it. However, as a special exception, the materials to be
+ distributed need not include anything that is normally distributed (in
+ either source or binary form) with the major components (compiler,
+ kernel, and so on) of the operating system on which the executable runs,
+ unless that component itself accompanies the executable.
+
+ It may happen that this requirement contradicts the license restrictions
+ of other proprietary libraries that do not normally accompany the
+ operating system. Such a contradiction means you cannot use both them
+ and the Library together in an executable that you distribute.
+
+7. You may place library facilities that are a work based on the Library
+ side-by-side in a single library together with other library facilities
+ not covered by this License, and distribute such a combined library,
+ provided that the separate distribution of the work based on the Library
+ and of the other library facilities is otherwise permitted, and provided
+ that you do these two things:
+
+ a) Accompany the combined library with a copy of the same work based on
+ the Library, uncombined with any other library facilities. This must
+ be distributed under the terms of the Sections above.
+
+ b) Give prominent notice with the combined library of the fact that part
+ of it is a work based on the Library, and explaining where to find
+ the accompanying uncombined form of the same work.
+
+8. You may not copy, modify, sublicense, link with, or distribute the
+ Library except as expressly provided under this License. Any attempt
+ otherwise to copy, modify, sublicense, link with, or distribute the
+ Library is void, and will automatically terminate your rights under this
+ License. However, parties who have received copies, or rights, from you
+ under this License will not have their licenses terminated so long as
+ such parties remain in full compliance.
+
+9. You are not required to accept this License, since you have not signed
+ it. However, nothing else grants you permission to modify or distribute
+ the Library or its derivative works. These actions are prohibited by law
+ if you do not accept this License. Therefore, by modifying or
+ distributing the Library (or any work based on the Library), you
+ indicate your acceptance of this License to do so, and all its terms and
+ conditions for copying, distributing or modifying the Library or works
+ based on it.
+
+10. Each time you redistribute the Library (or any work based on the
+ Library), the recipient automatically receives a license from the
+ original licensor to copy, distribute, link with or modify the Library
+ subject to these terms and conditions. You may not impose any further
+ restrictions on the recipients' exercise of the rights granted
+ herein. You are not responsible for enforcing compliance by third
+ parties with this License.
+
+11. If, as a consequence of a court judgment or allegation of patent
+ infringement or for any other reason (not limited to patent issues),
+ conditions are imposed on you (whether by court order, agreement or
+ otherwise) that contradict the conditions of this License, they do not
+ excuse you from the conditions of this License. If you cannot
+ distribute so as to satisfy simultaneously your obligations under this
+ License and any other pertinent obligations, then as a consequence you
+ may not distribute the Library at all. For example, if a patent license
+ would not permit royalty-free redistribution of the Library by all
+ those who receive copies directly or indirectly through you, then the
+ only way you could satisfy both it and this License would be to refrain
+ entirely from distribution of the Library.
+
+ If any portion of this section is held invalid or unenforceable under
+ any particular circumstance, the balance of the section is intended to
+ apply, and the section as a whole is intended to apply in other
+ circumstances.
+
+ It is not the purpose of this section to induce you to infringe any
+ patents or other property right claims or to contest validity of any
+ such claims; this section has the sole purpose of protecting the
+ integrity of the free software distribution system which is implemented
+ by public license practices. Many people have made generous
+ contributions to the wide range of software distributed through that
+ system in reliance on consistent application of that system; it is up
+ to the author/donor to decide if he or she is willing to distribute
+ software through any other system and a licensee cannot impose that
+ choice.
+
+ This section is intended to make thoroughly clear what is believed to
+ be a consequence of the rest of this License.
+
+12. If the distribution and/or use of the Library is restricted in certain
+ countries either by patents or by copyrighted interfaces, the original
+ copyright holder who places the Library under this License may add an
+ explicit geographical distribution limitation excluding those
+ countries, so that distribution is permitted only in or among countries
+ not thus excluded. In such case, this License incorporates the
+ limitation as if written in the body of this License.
+
+13. The Free Software Foundation may publish revised and/or new versions of
+ the Lesser General Public License from time to time. Such new versions
+ will be similar in spirit to the present version, but may differ in
+ detail to address new problems or concerns.
+
+ Each version is given a distinguishing version number. If the Library
+ specifies a version number of this License which applies to it and "any
+ later version", you have the option of following the terms and
+ conditions either of that version or of any later version published by
+ the Free Software Foundation. If the Library does not specify a license
+ version number, you may choose any version ever published by the Free
+ Software Foundation.
+
+14. If you wish to incorporate parts of the Library into other free
+ programs whose distribution conditions are incompatible with these,
+ write to the author to ask for permission. For software which is
+ copyrighted by the Free Software Foundation, write to the Free Software
+ Foundation; we sometimes make exceptions for this. Our decision will be
+ guided by the two goals of preserving the free status of all
+ derivatives of our free software and of promoting the sharing and reuse
+ of software generally.
+
+NO WARRANTY
+
+15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
+ FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
+ OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
+ PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER
+ EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+ WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE
+ ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE LIBRARY IS WITH
+ YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL
+ NECESSARY SERVICING, REPAIR OR CORRECTION.
+
+16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
+ WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
+ REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU FOR
+ DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL
+ DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE LIBRARY
+ (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED
+ INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF
+ THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF SUCH HOLDER OR
+ OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
+
+END OF TERMS AND CONDITIONS
+
+How to Apply These Terms to Your New Libraries
+
+If you develop a new library, and you want it to be of the greatest
+possible use to the public, we recommend making it free software that
+everyone can redistribute and change. You can do so by permitting
+redistribution under these terms (or, alternatively, under the terms of the
+ordinary General Public License).
+
+To apply these terms, attach the following notices to the library. It is
+safest to attach them to the start of each source file to most effectively
+convey the exclusion of warranty; and each file should have at least the
+"copyright" line and a pointer to where the full notice is found.
+
+one line to give the library's name and an idea of what it does.
+Copyright (C) year name of author
+
+This library is free software; you can redistribute it and/or modify it
+under the terms of the GNU Lesser General Public License as published by
+the Free Software Foundation; either version 2.1 of the License, or (at
+your option) any later version.
+
+This library is distributed in the hope that it will be useful, but WITHOUT
+ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
+for more details.
+
+You should have received a copy of the GNU Lesser General Public License
+along with this library; if not, write to the Free Software Foundation,
+Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA Also add
+information on how to contact you by electronic and paper mail.
+
+You should also get your employer (if you work as a programmer) or your
+school, if any, to sign a "copyright disclaimer" for the library, if
+necessary. Here is a sample; alter the names:
+
+Yoyodyne, Inc., hereby disclaims all copyright interest in
+the library `Frob' (a library for tweaking knobs) written
+by James Random Hacker.
+
+signature of Ty Coon, 1 April 1990
+Ty Coon, President of Vice
+That's all there is to it!
diff --git a/LICENSES/preferred/MIT b/LICENSES/preferred/MIT
new file mode 100644
index 000000000..f33a68ceb
--- /dev/null
+++ b/LICENSES/preferred/MIT
@@ -0,0 +1,30 @@
+Valid-License-Identifier: MIT
+SPDX-URL: https://spdx.org/licenses/MIT.html
+Usage-Guide:
+ To use the MIT License put the following SPDX tag/value pair into a
+ comment according to the placement guidelines in the licensing rules
+ documentation:
+ SPDX-License-Identifier: MIT
+License-Text:
+
+MIT License
+
+Copyright (c) <year> <copyright holders>
+
+Permission is hereby granted, free of charge, to any person obtaining a
+copy of this software and associated documentation files (the "Software"),
+to deal in the Software without restriction, including without limitation
+the rights to use, copy, modify, merge, publish, distribute, sublicense,
+and/or sell copies of the Software, and to permit persons to whom the
+Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+DEALINGS IN THE SOFTWARE.
--
2.25.4

2020-09-21 23:36:41

by Luiz Augusto von Dentz

[permalink] [raw]
Subject: Re: [BlueZ V4 RESEND 00/20] Add SPDX License Identifier

HI Tedd,

On Mon, Sep 21, 2020 at 12:28 PM <[email protected]> wrote:
>
> From: Tedd Ho-Jeong An <[email protected]>
>
> This series adds SPDX License Identifer to the relavant files and
> creates LICENSES folder with full text of licenses used by the BlueZ
> tree. The following files were updated with SPDX License Identifier:
> - Source and header files (.c/.h)
> - Build files (Makefile.*)
> - Test scripts (python, bash, and etc)
>
> The SDPX License Identifier is added in form of a comment based on file
> type with the same rule from the Linxu kernel source, and added to the
> first line of the file or the second line after '#!PATH_TO_INTERPRETER'.
>
> C source: // SPDX-License-Identifer: <License id>
> C header: /* SPDX-License-Identifer: <License id> */
> scripts: # SPDX-License-Identifier: <License id>
>
> For SPDX-License Identifier, it used the identifer from the SPDX License
> list page(https://spdx.org/licenses).
>
> For the summary, currently BlueZ sources have following licenses:
>
> -------------------------------------------
> License File Count
> -------------------------------------------
> GPL-2.0-or-later : 403
> LGPL-2.1-or-later : 308
> BSD-2-Clause : 3
> GPL-2.0-only : 5
> MIT : 2
> Apache-2.0 : 80
>
> Note that these folder/files were ignored:
> - .git/
> - document files
> - configuration files
>
> Tedd Ho-Jeong An (20):
> android: Add SPDX License Identifier
> attrib: Add SPDX License Identifier
> btio: Add SPDX License Identifier
> client: Add SPDX License Identifier
> emulator: Add SPDX License Identifier
> gdbus: Add SPDX License Identifier
> gobex: Add SPDX License Identifier
> lib: Add SPDX License Identifier
> mesh: Add SPDX License Identifier
> monitor: Add SPDX License Identifier
> obexd: Add SPDX License Identifier
> peripheral: Add SPDX License Identifier
> plugins: Add SPDX License Identifier
> profiles: Add SPDX License Identifier
> unit: Add SPDX License Identifier
> src: Add SPDX License Identifier
> tools: Add SPDX License Identifier
> build: Add SPDX License Identifier
> test: Add SPDX License Identifier
> LICENSES: Add License files
>
> LICENSES/dual/Apache-2.0 | 187 +++++++++++
> LICENSES/preferred/BSD-2-Clause | 32 ++
> LICENSES/preferred/GPL-2.0 | 354 ++++++++++++++++++++
> LICENSES/preferred/LGPL-2.1 | 503 +++++++++++++++++++++++++++++
> LICENSES/preferred/MIT | 30 ++
> Makefile.am | 2 +-
> Makefile.mesh | 1 +
> Makefile.obexd | 1 +
> Makefile.plugins | 2 +-
> Makefile.tools | 2 +-
> android/a2dp-sink.c | 15 +-
> android/a2dp-sink.h | 15 +-
> android/a2dp.c | 15 +-
> android/a2dp.h | 15 +-
> android/audio-msg.h | 15 +-
> android/audio_utils/resampler.c | 12 +-
> android/audio_utils/resampler.h | 12 +-
> android/avctp.c | 15 +-
> android/avctp.h | 15 +-
> android/avdtp.c | 15 +-
> android/avdtp.h | 15 +-
> android/avdtptest.c | 15 +-
> android/avrcp-lib.c | 15 +-
> android/avrcp-lib.h | 15 +-
> android/avrcp.c | 15 +-
> android/avrcp.h | 15 +-
> android/bluetooth.c | 15 +-
> android/bluetooth.h | 15 +-
> android/bluetoothd-snoop.c | 15 +-
> android/bluetoothd-wrapper.c | 13 +-
> android/client/haltest.c | 13 +-
> android/client/history.c | 13 +-
> android/client/history.h | 13 +-
> android/client/if-audio.c | 13 +-
> android/client/if-av-sink.c | 13 +-
> android/client/if-av.c | 13 +-
> android/client/if-bt.c | 13 +-
> android/client/if-gatt.c | 13 +-
> android/client/if-hf-client.c | 13 +-
> android/client/if-hf.c | 13 +-
> android/client/if-hh.c | 13 +-
> android/client/if-hl.c | 13 +-
> android/client/if-main.h | 13 +-
> android/client/if-mce.c | 13 +-
> android/client/if-pan.c | 13 +-
> android/client/if-rc-ctrl.c | 13 +-
> android/client/if-rc.c | 13 +-
> android/client/if-sco.c | 13 +-
> android/client/if-sock.c | 13 +-
> android/client/pollhandler.c | 13 +-
> android/client/pollhandler.h | 13 +-
> android/client/tabcompletion.c | 13 +-
> android/client/terminal.c | 13 +-
> android/client/terminal.h | 13 +-
> android/compat/readline/history.h | 15 +-
> android/compat/readline/readline.h | 15 +-
> android/compat/wordexp.h | 15 +-
> android/cutils/properties.h | 15 +-
> android/gatt.c | 15 +-
> android/gatt.h | 15 +-
> android/hal-a2dp-sink.c | 13 +-
> android/hal-a2dp.c | 13 +-
> android/hal-audio-aptx.c | 13 +-
> android/hal-audio-sbc.c | 13 +-
> android/hal-audio.c | 13 +-
> android/hal-audio.h | 13 +-
> android/hal-avrcp-ctrl.c | 13 +-
> android/hal-avrcp.c | 13 +-
> android/hal-bluetooth.c | 13 +-
> android/hal-gatt.c | 13 +-
> android/hal-handsfree-client.c | 13 +-
> android/hal-handsfree.c | 13 +-
> android/hal-health.c | 13 +-
> android/hal-hidhost.c | 13 +-
> android/hal-ipc.c | 13 +-
> android/hal-ipc.h | 13 +-
> android/hal-log.h | 13 +-
> android/hal-map-client.c | 13 +-
> android/hal-msg.h | 15 +-
> android/hal-pan.c | 13 +-
> android/hal-sco.c | 13 +-
> android/hal-socket.c | 13 +-
> android/hal-utils.c | 13 +-
> android/hal-utils.h | 13 +-
> android/hal.h | 13 +-
> android/handsfree-client.c | 15 +-
> android/handsfree-client.h | 15 +-
> android/handsfree.c | 15 +-
> android/handsfree.h | 15 +-
> android/hardware/audio.h | 12 +-
> android/hardware/audio_effect.h | 12 +-
> android/hardware/bluetooth.h | 12 +-
> android/hardware/bt_av.h | 12 +-
> android/hardware/bt_gatt.h | 12 +-
> android/hardware/bt_gatt_client.h | 12 +-
> android/hardware/bt_gatt_server.h | 12 +-
> android/hardware/bt_gatt_types.h | 12 +-
> android/hardware/bt_hf.h | 12 +-
> android/hardware/bt_hf_client.h | 12 +-
> android/hardware/bt_hh.h | 12 +-
> android/hardware/bt_hl.h | 12 +-
> android/hardware/bt_mce.h | 12 +-
> android/hardware/bt_pan.h | 12 +-
> android/hardware/bt_rc.h | 12 +-
> android/hardware/bt_sock.h | 12 +-
> android/hardware/hardware.c | 12 +-
> android/hardware/hardware.h | 12 +-
> android/health.c | 15 +-
> android/health.h | 15 +-
> android/hidhost.c | 15 +-
> android/hidhost.h | 15 +-
> android/ipc-common.h | 15 +-
> android/ipc-tester.c | 15 +-
> android/ipc.c | 15 +-
> android/ipc.h | 15 +-
> android/log.c | 15 +-
> android/main.c | 15 +-
> android/map-client.c | 15 +-
> android/map-client.h | 15 +-
> android/pan.c | 15 +-
> android/pan.h | 15 +-
> android/sco-msg.h | 15 +-
> android/sco.c | 15 +-
> android/sco.h | 15 +-
> android/socket.c | 15 +-
> android/socket.h | 15 +-
> android/system-emulator.c | 15 +-
> android/system/audio.h | 12 +-
> android/test-ipc.c | 15 +-
> android/tester-a2dp.c | 13 +-
> android/tester-avrcp.c | 13 +-
> android/tester-bluetooth.c | 13 +-
> android/tester-gatt.c | 13 +-
> android/tester-hdp.c | 13 +-
> android/tester-hidhost.c | 13 +-
> android/tester-main.c | 13 +-
> android/tester-main.h | 15 +-
> android/tester-map-client.c | 13 +-
> android/tester-pan.c | 13 +-
> android/tester-socket.c | 13 +-
> android/utils.h | 15 +-
> attrib/att-database.h | 15 +-
> attrib/att.c | 15 +-
> attrib/att.h | 15 +-
> attrib/gatt-service.c | 15 +-
> attrib/gatt-service.h | 15 +-
> attrib/gatt.c | 15 +-
> attrib/gatt.h | 15 +-
> attrib/gattrib.c | 15 +-
> attrib/gattrib.h | 15 +-
> attrib/gatttool.c | 15 +-
> attrib/gatttool.h | 15 +-
> attrib/interactive.c | 15 +-
> attrib/utils.c | 15 +-
> btio/btio.c | 15 +-
> btio/btio.h | 15 +-
> client/adv_monitor.c | 11 +-
> client/adv_monitor.h | 11 +-
> client/advertising.c | 15 +-
> client/advertising.h | 15 +-
> client/agent.c | 15 +-
> client/agent.h | 15 +-
> client/display.c | 15 +-
> client/display.h | 15 +-
> client/gatt.c | 15 +-
> client/gatt.h | 15 +-
> client/main.c | 15 +-
> configure.ac | 1 +
> emulator/amp.c | 15 +-
> emulator/amp.h | 15 +-
> emulator/b1ee.c | 15 +-
> emulator/btdev.c | 15 +-
> emulator/btdev.h | 15 +-
> emulator/bthost.c | 15 +-
> emulator/bthost.h | 15 +-
> emulator/hciemu.c | 15 +-
> emulator/hciemu.h | 15 +-
> emulator/hfp.c | 15 +-
> emulator/le.c | 15 +-
> emulator/le.h | 15 +-
> emulator/main.c | 15 +-
> emulator/phy.c | 15 +-
> emulator/phy.h | 15 +-
> emulator/serial.c | 15 +-
> emulator/serial.h | 15 +-
> emulator/server.c | 15 +-
> emulator/server.h | 15 +-
> emulator/smp.c | 15 +-
> emulator/vhci.c | 15 +-
> emulator/vhci.h | 15 +-
> gdbus/client.c | 15 +-
> gdbus/gdbus.h | 15 +-
> gdbus/mainloop.c | 15 +-
> gdbus/object.c | 15 +-
> gdbus/polkit.c | 15 +-
> gdbus/watch.c | 15 +-
> gobex/gobex-apparam.c | 15 +-
> gobex/gobex-apparam.h | 15 +-
> gobex/gobex-debug.h | 15 +-
> gobex/gobex-defs.c | 15 +-
> gobex/gobex-defs.h | 15 +-
> gobex/gobex-header.c | 15 +-
> gobex/gobex-header.h | 15 +-
> gobex/gobex-packet.c | 15 +-
> gobex/gobex-packet.h | 15 +-
> gobex/gobex-transfer.c | 15 +-
> gobex/gobex.c | 15 +-
> gobex/gobex.h | 15 +-
> lib/a2mp.h | 15 +-
> lib/amp.h | 10 +-
> lib/bluetooth.c | 15 +-
> lib/bluetooth.h | 15 +-
> lib/bnep.h | 15 +-
> lib/cmtp.h | 15 +-
> lib/hci.c | 15 +-
> lib/hci.h | 15 +-
> lib/hci_lib.h | 15 +-
> lib/hidp.h | 15 +-
> lib/l2cap.h | 15 +-
> lib/mgmt.h | 15 +-
> lib/rfcomm.h | 15 +-
> lib/sco.h | 15 +-
> lib/sdp.c | 15 +-
> lib/sdp.h | 15 +-
> lib/sdp_lib.h | 15 +-
> lib/uuid.c | 15 +-
> lib/uuid.h | 15 +-
> mesh/agent.c | 11 +-
> mesh/agent.h | 11 +-
> mesh/appkey.c | 11 +-
> mesh/appkey.h | 11 +-
> mesh/cfgmod-server.c | 11 +-
> mesh/cfgmod.h | 11 +-
> mesh/crypto.c | 11 +-
> mesh/crypto.h | 11 +-
> mesh/dbus.c | 11 +-
> mesh/dbus.h | 11 +-
> mesh/error.h | 11 +-
> mesh/friend.c | 11 +-
> mesh/friend.h | 11 +-
> mesh/keyring.c | 11 +-
> mesh/keyring.h | 11 +-
> mesh/main.c | 11 +-
> mesh/manager.c | 11 +-
> mesh/manager.h | 11 +-
> mesh/mesh-config-json.c | 11 +-
> mesh/mesh-config.h | 11 +-
> mesh/mesh-defs.h | 12 +-
> mesh/mesh-io-api.h | 11 +-
> mesh/mesh-io-generic.c | 11 +-
> mesh/mesh-io-generic.h | 11 +-
> mesh/mesh-io.c | 11 +-
> mesh/mesh-io.h | 11 +-
> mesh/mesh-mgmt.c | 11 +-
> mesh/mesh-mgmt.h | 11 +-
> mesh/mesh.c | 11 +-
> mesh/mesh.h | 11 +-
> mesh/model.c | 11 +-
> mesh/model.h | 11 +-
> mesh/net-keys.c | 11 +-
> mesh/net-keys.h | 11 +-
> mesh/net.c | 11 +-
> mesh/net.h | 11 +-
> mesh/node.c | 11 +-
> mesh/node.h | 11 +-
> mesh/pb-adv.c | 11 +-
> mesh/pb-adv.h | 11 +-
> mesh/prov-acceptor.c | 11 +-
> mesh/prov-initiator.c | 11 +-
> mesh/prov.h | 11 +-
> mesh/provision.h | 11 +-
> mesh/rpl.c | 11 +-
> mesh/rpl.h | 11 +-
> mesh/util.c | 11 +-
> mesh/util.h | 11 +-
> monitor/a2dp.c | 15 +-
> monitor/a2dp.h | 15 +-
> monitor/analyze.c | 15 +-
> monitor/analyze.h | 15 +-
> monitor/avctp.c | 15 +-
> monitor/avctp.h | 15 +-
> monitor/avdtp.c | 15 +-
> monitor/avdtp.h | 15 +-
> monitor/bnep.c | 15 +-
> monitor/bnep.h | 15 +-
> monitor/broadcom.c | 15 +-
> monitor/broadcom.h | 15 +-
> monitor/bt.h | 15 +-
> monitor/control.c | 15 +-
> monitor/control.h | 15 +-
> monitor/crc.c | 15 +-
> monitor/crc.h | 15 +-
> monitor/display.c | 15 +-
> monitor/display.h | 15 +-
> monitor/ellisys.c | 15 +-
> monitor/ellisys.h | 15 +-
> monitor/hcidump.c | 15 +-
> monitor/hcidump.h | 15 +-
> monitor/hwdb.c | 15 +-
> monitor/hwdb.h | 15 +-
> monitor/intel.c | 15 +-
> monitor/intel.h | 15 +-
> monitor/jlink.c | 15 +-
> monitor/jlink.h | 15 +-
> monitor/keys.c | 15 +-
> monitor/keys.h | 15 +-
> monitor/l2cap.c | 15 +-
> monitor/l2cap.h | 15 +-
> monitor/ll.c | 15 +-
> monitor/ll.h | 15 +-
> monitor/lmp.c | 15 +-
> monitor/lmp.h | 15 +-
> monitor/main.c | 15 +-
> monitor/packet.c | 15 +-
> monitor/packet.h | 15 +-
> monitor/rfcomm.c | 15 +-
> monitor/rfcomm.h | 15 +-
> monitor/sdp.c | 15 +-
> monitor/sdp.h | 15 +-
> monitor/tty.h | 15 +-
> monitor/vendor.c | 15 +-
> monitor/vendor.h | 15 +-
> obexd/client/bluetooth.c | 15 +-
> obexd/client/bluetooth.h | 15 +-
> obexd/client/driver.c | 15 +-
> obexd/client/driver.h | 15 +-
> obexd/client/ftp.c | 15 +-
> obexd/client/ftp.h | 15 +-
> obexd/client/manager.c | 15 +-
> obexd/client/manager.h | 15 +-
> obexd/client/map-event.c | 15 +-
> obexd/client/map-event.h | 15 +-
> obexd/client/map.c | 15 +-
> obexd/client/map.h | 15 +-
> obexd/client/mns.c | 15 +-
> obexd/client/opp.c | 15 +-
> obexd/client/opp.h | 15 +-
> obexd/client/pbap.c | 15 +-
> obexd/client/pbap.h | 15 +-
> obexd/client/session.c | 15 +-
> obexd/client/session.h | 15 +-
> obexd/client/sync.c | 15 +-
> obexd/client/sync.h | 15 +-
> obexd/client/transfer.c | 15 +-
> obexd/client/transfer.h | 15 +-
> obexd/client/transport.c | 15 +-
> obexd/client/transport.h | 15 +-
> obexd/plugins/bluetooth.c | 15 +-
> obexd/plugins/filesystem.c | 15 +-
> obexd/plugins/filesystem.h | 15 +-
> obexd/plugins/ftp.c | 15 +-
> obexd/plugins/ftp.h | 15 +-
> obexd/plugins/irmc.c | 15 +-
> obexd/plugins/mas.c | 15 +-
> obexd/plugins/messages-dummy.c | 15 +-
> obexd/plugins/messages-tracker.c | 15 +-
> obexd/plugins/messages.h | 15 +-
> obexd/plugins/opp.c | 15 +-
> obexd/plugins/pbap.c | 15 +-
> obexd/plugins/pcsuite.c | 15 +-
> obexd/plugins/phonebook-dummy.c | 15 +-
> obexd/plugins/phonebook-ebook.c | 15 +-
> obexd/plugins/phonebook-tracker.c | 15 +-
> obexd/plugins/phonebook.h | 15 +-
> obexd/plugins/syncevolution.c | 15 +-
> obexd/plugins/vcard.c | 15 +-
> obexd/plugins/vcard.h | 15 +-
> obexd/src/log.c | 15 +-
> obexd/src/log.h | 15 +-
> obexd/src/main.c | 15 +-
> obexd/src/manager.c | 15 +-
> obexd/src/manager.h | 15 +-
> obexd/src/map_ap.h | 15 +-
> obexd/src/mimetype.c | 15 +-
> obexd/src/mimetype.h | 15 +-
> obexd/src/obex-priv.h | 15 +-
> obexd/src/obex.c | 15 +-
> obexd/src/obex.h | 15 +-
> obexd/src/obexd.h | 15 +-
> obexd/src/plugin.c | 15 +-
> obexd/src/plugin.h | 15 +-
> obexd/src/server.c | 15 +-
> obexd/src/server.h | 15 +-
> obexd/src/service.c | 15 +-
> obexd/src/service.h | 15 +-
> obexd/src/transport.c | 15 +-
> obexd/src/transport.h | 15 +-
> peripheral/attach.c | 15 +-
> peripheral/attach.h | 15 +-
> peripheral/efivars.c | 15 +-
> peripheral/efivars.h | 15 +-
> peripheral/gap.c | 15 +-
> peripheral/gap.h | 15 +-
> peripheral/gatt.c | 15 +-
> peripheral/gatt.h | 15 +-
> peripheral/log.c | 15 +-
> peripheral/log.h | 15 +-
> peripheral/main.c | 15 +-
> plugins/autopair.c | 15 +-
> plugins/external-dummy.c | 15 +-
> plugins/hostname.c | 15 +-
> plugins/neard.c | 15 +-
> plugins/policy.c | 15 +-
> plugins/sixaxis.c | 15 +-
> plugins/wiimote.c | 15 +-
> profiles/audio/a2dp-codecs.h | 15 +-
> profiles/audio/a2dp.c | 15 +-
> profiles/audio/a2dp.h | 15 +-
> profiles/audio/avctp.c | 15 +-
> profiles/audio/avctp.h | 15 +-
> profiles/audio/avdtp.c | 15 +-
> profiles/audio/avdtp.h | 15 +-
> profiles/audio/avrcp.c | 15 +-
> profiles/audio/avrcp.h | 15 +-
> profiles/audio/control.c | 15 +-
> profiles/audio/control.h | 15 +-
> profiles/audio/media.c | 15 +-
> profiles/audio/media.h | 15 +-
> profiles/audio/player.c | 15 +-
> profiles/audio/player.h | 15 +-
> profiles/audio/sink.c | 15 +-
> profiles/audio/sink.h | 15 +-
> profiles/audio/source.c | 15 +-
> profiles/audio/source.h | 15 +-
> profiles/audio/transport.c | 15 +-
> profiles/audio/transport.h | 15 +-
> profiles/battery/bas.c | 15 +-
> profiles/battery/bas.h | 15 +-
> profiles/battery/battery.c | 10 +-
> profiles/cups/cups.h | 15 +-
> profiles/cups/hcrp.c | 15 +-
> profiles/cups/main.c | 15 +-
> profiles/cups/sdp.c | 15 +-
> profiles/cups/spp.c | 15 +-
> profiles/deviceinfo/deviceinfo.c | 15 +-
> profiles/deviceinfo/dis.c | 15 +-
> profiles/deviceinfo/dis.h | 15 +-
> profiles/gap/gas.c | 10 +-
> profiles/health/hdp.c | 15 +-
> profiles/health/hdp.h | 15 +-
> profiles/health/hdp_main.c | 15 +-
> profiles/health/hdp_manager.c | 15 +-
> profiles/health/hdp_manager.h | 15 +-
> profiles/health/hdp_types.h | 15 +-
> profiles/health/hdp_util.c | 15 +-
> profiles/health/hdp_util.h | 15 +-
> profiles/health/mcap.c | 15 +-
> profiles/health/mcap.h | 15 +-
> profiles/iap/main.c | 15 +-
> profiles/input/device.c | 15 +-
> profiles/input/device.h | 15 +-
> profiles/input/hidp_defs.h | 15 +-
> profiles/input/hog-lib.c | 15 +-
> profiles/input/hog-lib.h | 15 +-
> profiles/input/hog.c | 15 +-
> profiles/input/manager.c | 15 +-
> profiles/input/server.c | 15 +-
> profiles/input/server.h | 15 +-
> profiles/input/sixaxis.h | 15 +-
> profiles/input/suspend-dummy.c | 15 +-
> profiles/input/suspend-none.c | 15 +-
> profiles/input/suspend.h | 15 +-
> profiles/midi/libmidi.c | 16 +-
> profiles/midi/libmidi.h | 16 +-
> profiles/midi/midi.c | 20 +-
> profiles/network/bnep.c | 15 +-
> profiles/network/bnep.h | 15 +-
> profiles/network/connection.c | 15 +-
> profiles/network/connection.h | 15 +-
> profiles/network/manager.c | 15 +-
> profiles/network/server.c | 15 +-
> profiles/network/server.h | 15 +-
> profiles/sap/main.c | 14 +-
> profiles/sap/manager.c | 14 +-
> profiles/sap/manager.h | 14 +-
> profiles/sap/sap-dummy.c | 14 +-
> profiles/sap/sap.h | 14 +-
> profiles/sap/server.c | 14 +-
> profiles/sap/server.h | 14 +-
> profiles/scanparam/scan.c | 15 +-
> profiles/scanparam/scpp.c | 15 +-
> profiles/scanparam/scpp.h | 15 +-
> src/adapter.c | 15 +-
> src/adapter.h | 15 +-
> src/adv_monitor.c | 11 +-
> src/adv_monitor.h | 11 +-
> src/advertising.c | 11 +-
> src/advertising.h | 11 +-
> src/agent.c | 15 +-
> src/agent.h | 15 +-
> src/attrib-server.c | 15 +-
> src/attrib-server.h | 15 +-
> src/backtrace.c | 15 +-
> src/backtrace.h | 15 +-
> src/dbus-common.c | 15 +-
> src/dbus-common.h | 15 +-
> src/device.c | 15 +-
> src/device.h | 15 +-
> src/eir.c | 15 +-
> src/eir.h | 15 +-
> src/error.c | 15 +-
> src/error.h | 15 +-
> src/gatt-client.c | 11 +-
> src/gatt-client.h | 11 +-
> src/gatt-database.c | 11 +-
> src/gatt-database.h | 11 +-
> src/hcid.h | 15 +-
> src/log.c | 15 +-
> src/log.h | 15 +-
> src/main.c | 15 +-
> src/oui.c | 15 +-
> src/oui.h | 15 +-
> src/plugin.c | 15 +-
> src/plugin.h | 15 +-
> src/profile.c | 15 +-
> src/profile.h | 15 +-
> src/rfkill.c | 15 +-
> src/sdp-client.c | 15 +-
> src/sdp-client.h | 15 +-
> src/sdp-xml.c | 15 +-
> src/sdp-xml.h | 15 +-
> src/sdpd-database.c | 15 +-
> src/sdpd-request.c | 15 +-
> src/sdpd-server.c | 15 +-
> src/sdpd-service.c | 15 +-
> src/sdpd.h | 15 +-
> src/service.c | 15 +-
> src/service.h | 15 +-
> src/shared/ad.c | 15 +-
> src/shared/ad.h | 15 +-
> src/shared/att-types.h | 15 +-
> src/shared/att.c | 15 +-
> src/shared/att.h | 15 +-
> src/shared/btp.c | 15 +-
> src/shared/btp.h | 15 +-
> src/shared/btsnoop.c | 15 +-
> src/shared/btsnoop.h | 15 +-
> src/shared/crypto.c | 15 +-
> src/shared/crypto.h | 15 +-
> src/shared/ecc.c | 21 +-
> src/shared/ecc.h | 21 +-
> src/shared/gap.c | 15 +-
> src/shared/gap.h | 15 +-
> src/shared/gatt-client.c | 15 +-
> src/shared/gatt-client.h | 15 +-
> src/shared/gatt-db.c | 15 +-
> src/shared/gatt-db.h | 15 +-
> src/shared/gatt-helpers.c | 15 +-
> src/shared/gatt-helpers.h | 15 +-
> src/shared/gatt-server.c | 15 +-
> src/shared/gatt-server.h | 15 +-
> src/shared/hci-crypto.c | 15 +-
> src/shared/hci-crypto.h | 15 +-
> src/shared/hci.c | 15 +-
> src/shared/hci.h | 15 +-
> src/shared/hfp.c | 15 +-
> src/shared/hfp.h | 15 +-
> src/shared/io-ell.c | 15 +-
> src/shared/io-glib.c | 15 +-
> src/shared/io-mainloop.c | 15 +-
> src/shared/io.h | 15 +-
> src/shared/log.c | 15 +-
> src/shared/log.h | 15 +-
> src/shared/mainloop-ell.c | 12 +-
> src/shared/mainloop-glib.c | 15 +-
> src/shared/mainloop-notify.c | 15 +-
> src/shared/mainloop-notify.h | 15 +-
> src/shared/mainloop.c | 15 +-
> src/shared/mainloop.h | 15 +-
> src/shared/mgmt.c | 15 +-
> src/shared/mgmt.h | 15 +-
> src/shared/pcap.c | 15 +-
> src/shared/pcap.h | 15 +-
> src/shared/queue.c | 15 +-
> src/shared/queue.h | 15 +-
> src/shared/ringbuf.c | 15 +-
> src/shared/ringbuf.h | 15 +-
> src/shared/shell.c | 15 +-
> src/shared/shell.h | 15 +-
> src/shared/tester.c | 15 +-
> src/shared/tester.h | 15 +-
> src/shared/timeout-ell.c | 11 +-
> src/shared/timeout-glib.c | 11 +-
> src/shared/timeout-mainloop.c | 11 +-
> src/shared/timeout.h | 11 +-
> src/shared/tty.h | 15 +-
> src/shared/uhid.c | 15 +-
> src/shared/uhid.h | 15 +-
> src/shared/util.c | 15 +-
> src/shared/util.h | 15 +-
> src/storage.c | 15 +-
> src/storage.h | 15 +-
> src/textfile.c | 15 +-
> src/textfile.h | 15 +-
> src/uinput.h | 15 +-
> src/uuid-helper.c | 15 +-
> src/uuid-helper.h | 15 +-
> test/agent.py | 1 +
> test/bluezutils.py | 2 +
> test/dbusdef.py | 2 +
> test/example-advertisement | 1 +
> test/example-endpoint | 1 +
> test/example-gatt-client | 1 +
> test/example-gatt-server | 1 +
> test/example-player | 1 +
> test/exchange-business-cards | 1 +
> test/ftp-client | 1 +
> test/get-managed-objects | 1 +
> test/get-obex-capabilities | 1 +
> test/list-devices | 1 +
> test/list-folders | 1 +
> test/map-client | 1 +
> test/monitor-bluetooth | 1 +
> test/opp-client | 1 +
> test/pbap-client | 1 +
> test/sap_client.py | 15 +-
> test/simple-agent | 1 +
> test/simple-endpoint | 1 +
> test/simple-obex-agent | 1 +
> test/simple-player | 1 +
> test/test-adapter | 1 +
> test/test-device | 1 +
> test/test-discovery | 1 +
> test/test-gatt-profile | 1 +
> test/test-health | 1 +
> test/test-health-sink | 1 +
> test/test-hfp | 1 +
> test/test-join | 1 +
> test/test-manager | 1 +
> test/test-mesh | 1 +
> test/test-nap | 1 +
> test/test-network | 1 +
> test/test-profile | 1 +
> test/test-sap-server | 1 +
> tools/3dsp.c | 15 +-
> tools/advtest.c | 15 +-
> tools/amptest.c | 15 +-
> tools/avinfo.c | 15 +-
> tools/avtest.c | 15 +-
> tools/bccmd.c | 15 +-
> tools/bcmfw.c | 15 +-
> tools/bdaddr.c | 15 +-
> tools/bluemoon.c | 15 +-
> tools/bluetooth-player.c | 15 +-
> tools/bnep-tester.c | 15 +-
> tools/bneptest.c | 15 +-
> tools/btattach.c | 15 +-
> tools/btconfig.c | 15 +-
> tools/btgatt-client.c | 15 +-
> tools/btgatt-server.c | 11 +-
> tools/btinfo.c | 15 +-
> tools/btiotest.c | 15 +-
> tools/btmgmt.c | 15 +-
> tools/btmon-logger.c | 15 +-
> tools/btpclient.c | 15 +-
> tools/btpclientctl.c | 15 +-
> tools/btproxy.c | 15 +-
> tools/btsnoop.c | 15 +-
> tools/check-selftest.c | 15 +-
> tools/ciptool.c | 15 +-
> tools/cltest.c | 15 +-
> tools/create-image.c | 15 +-
> tools/csr.c | 15 +-
> tools/csr.h | 15 +-
> tools/csr_3wire.c | 15 +-
> tools/csr_bcsp.c | 15 +-
> tools/csr_h4.c | 15 +-
> tools/csr_hci.c | 15 +-
> tools/csr_usb.c | 15 +-
> tools/eddystone.c | 15 +-
> tools/gap-tester.c | 15 +-
> tools/gatt-service.c | 15 +-
> tools/hci-tester.c | 15 +-
> tools/hciattach.c | 15 +-
> tools/hciattach.h | 15 +-
> tools/hciattach_ath3k.c | 15 +-
> tools/hciattach_bcm43xx.c | 15 +-
> tools/hciattach_intel.c | 15 +-
> tools/hciattach_qualcomm.c | 15 +-
> tools/hciattach_st.c | 15 +-
> tools/hciattach_ti.c | 15 +-
> tools/hciattach_tialt.c | 15 +-
> tools/hciconfig.c | 15 +-
> tools/hcidump.c | 15 +-
> tools/hcieventmask.c | 15 +-
> tools/hcisecfilter.c | 15 +-
> tools/hcitool.c | 15 +-
> tools/hex2hcd.c | 15 +-
> tools/hid2hci.c | 15 +-
> tools/hwdb.c | 15 +-
> tools/ibeacon.c | 15 +-
> tools/l2cap-tester.c | 15 +-
> tools/l2ping.c | 15 +-
> tools/l2test.c | 15 +-
> tools/mcaptest.c | 15 +-
> tools/mesh-cfgclient.c | 11 +-
> tools/mesh-gatt/config-client.c | 15 +-
> tools/mesh-gatt/config-server.c | 15 +-
> tools/mesh-gatt/crypto.c | 15 +-
> tools/mesh-gatt/crypto.h | 15 +-
> tools/mesh-gatt/gatt.c | 15 +-
> tools/mesh-gatt/gatt.h | 15 +-
> tools/mesh-gatt/keys.h | 15 +-
> tools/mesh-gatt/mesh-net.h | 15 +-
> tools/mesh-gatt/net.c | 15 +-
> tools/mesh-gatt/net.h | 15 +-
> tools/mesh-gatt/node.c | 15 +-
> tools/mesh-gatt/node.h | 15 +-
> tools/mesh-gatt/onoff-model.c | 15 +-
> tools/mesh-gatt/onoff-model.h | 15 +-
> tools/mesh-gatt/prov-db.c | 15 +-
> tools/mesh-gatt/prov-db.h | 15 +-
> tools/mesh-gatt/prov.c | 15 +-
> tools/mesh-gatt/prov.h | 15 +-
> tools/mesh-gatt/util.c | 15 +-
> tools/mesh-gatt/util.h | 15 +-
> tools/mesh/agent.c | 15 +-
> tools/mesh/agent.h | 15 +-
> tools/mesh/cfgcli.c | 12 +-
> tools/mesh/cfgcli.h | 12 +-
> tools/mesh/config-model.h | 15 +-
> tools/mesh/keys.c | 12 +-
> tools/mesh/keys.h | 12 +-
> tools/mesh/mesh-db.c | 11 +-
> tools/mesh/mesh-db.h | 11 +-
> tools/mesh/model.h | 12 +-
> tools/mesh/remote.c | 11 +-
> tools/mesh/remote.h | 11 +-
> tools/mesh/util.c | 11 +-
> tools/mesh/util.h | 11 +-
> tools/meshctl.c | 15 +-
> tools/mgmt-tester.c | 15 +-
> tools/mpris-proxy.c | 15 +-
> tools/nokfw.c | 15 +-
> tools/obex-client-tool.c | 14 +-
> tools/obex-server-tool.c | 14 +-
> tools/obexctl.c | 15 +-
> tools/oobtest.c | 15 +-
> tools/parse_companies.pl | 2 +-
> tools/parser/amp.c | 15 +-
> tools/parser/att.c | 15 +-
> tools/parser/avctp.c | 15 +-
> tools/parser/avdtp.c | 15 +-
> tools/parser/avrcp.c | 15 +-
> tools/parser/bnep.c | 15 +-
> tools/parser/bpa.c | 15 +-
> tools/parser/capi.c | 15 +-
> tools/parser/cmtp.c | 15 +-
> tools/parser/csr.c | 15 +-
> tools/parser/ericsson.c | 15 +-
> tools/parser/hci.c | 15 +-
> tools/parser/hcrp.c | 15 +-
> tools/parser/hidp.c | 15 +-
> tools/parser/l2cap.c | 15 +-
> tools/parser/l2cap.h | 15 +-
> tools/parser/lmp.c | 15 +-
> tools/parser/obex.c | 15 +-
> tools/parser/parser.c | 15 +-
> tools/parser/parser.h | 15 +-
> tools/parser/ppp.c | 15 +-
> tools/parser/rfcomm.c | 15 +-
> tools/parser/rfcomm.h | 15 +-
> tools/parser/sap.c | 15 +-
> tools/parser/sdp.c | 15 +-
> tools/parser/sdp.h | 15 +-
> tools/parser/smp.c | 15 +-
> tools/parser/tcpip.c | 15 +-
> tools/rctest.c | 15 +-
> tools/rfcomm-tester.c | 15 +-
> tools/rfcomm.c | 15 +-
> tools/rtlfw.c | 15 +-
> tools/sco-tester.c | 15 +-
> tools/scotest.c | 15 +-
> tools/sdptool.c | 15 +-
> tools/seq2bseq.c | 15 +-
> tools/smp-tester.c | 15 +-
> tools/test-runner.c | 15 +-
> tools/ubcsp.c | 20 +-
> tools/ubcsp.h | 20 +-
> tools/update_compids.sh | 1 +
> tools/userchan-tester.c | 15 +-
> unit/test-avctp.c | 15 +-
> unit/test-avdtp.c | 15 +-
> unit/test-avrcp.c | 15 +-
> unit/test-crc.c | 15 +-
> unit/test-crypto.c | 15 +-
> unit/test-ecc.c | 21 +-
> unit/test-eir.c | 15 +-
> unit/test-gatt.c | 15 +-
> unit/test-gattrib.c | 15 +-
> unit/test-gdbus-client.c | 15 +-
> unit/test-gobex-apparam.c | 15 +-
> unit/test-gobex-header.c | 15 +-
> unit/test-gobex-packet.c | 15 +-
> unit/test-gobex-transfer.c | 15 +-
> unit/test-gobex.c | 15 +-
> unit/test-hfp.c | 15 +-
> unit/test-hog.c | 15 +-
> unit/test-lib.c | 15 +-
> unit/test-mesh-crypto.c | 11 +-
> unit/test-mgmt.c | 15 +-
> unit/test-midi.c | 16 +-
> unit/test-queue.c | 15 +-
> unit/test-ringbuf.c | 15 +-
> unit/test-sdp.c | 15 +-
> unit/test-textfile.c | 15 +-
> unit/test-uhid.c | 15 +-
> unit/test-uuid.c | 15 +-
> unit/util.c | 14 +-
> unit/util.h | 14 +-
> 810 files changed, 1913 insertions(+), 10186 deletions(-)
> create mode 100644 LICENSES/dual/Apache-2.0
> create mode 100644 LICENSES/preferred/BSD-2-Clause
> create mode 100644 LICENSES/preferred/GPL-2.0
> create mode 100644 LICENSES/preferred/LGPL-2.1
> create mode 100644 LICENSES/preferred/MIT
>
> --
> 2.25.4

Applied, thanks.

--
Luiz Augusto von Dentz