build: Add SPDX License Identifier
authorTedd Ho-Jeong An <tedd.an@intel.com>
Mon, 21 Sep 2020 19:00:38 +0000 (12:00 -0700)
committerAyush Garg <ayush.garg@samsung.com>
Fri, 11 Mar 2022 13:38:33 +0000 (19:08 +0530)
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
   Makefile.am
   Makefile.mesh
   Makefile.obexd
   Makefile.plugins
   Makefile.tools
   configure.ac

Change-Id: I454a1299e5cb820af9812df678f552234cf02bfd
Signed-off-by: Anuj Jain <anuj01.jain@samsung.com>
Signed-off-by: Ayush Garg <ayush.garg@samsung.com>
Makefile.am
Makefile.mesh
Makefile.obexd
Makefile.plugins
Makefile.tools
client/adv_monitor.c
configure.ac
src/adapter.h
src/adv_monitor.c
src/device.c

index c7c0b81..d975439 100755 (executable)
@@ -1,4 +1,4 @@
-
+# SPDX-License-Identifier: GPL-2.0
 AM_MAKEFLAGS = --no-print-directory
 AM_CPPFLAGS =
 
index af0fd03..68bf2de 100644 (file)
@@ -1,3 +1,4 @@
+# SPDX-License-Identifier: GPL-2.0
 if MESH
 
 if DATAFILES
index 06bf59c..19184a4 100755 (executable)
@@ -1,3 +1,4 @@
+# SPDX-License-Identifier: GPL-2.0
 if SYSTEMD
 #systemduserunitdir = @SYSTEMD_USERUNITDIR@
 systemduserunitdir = $(SYSTEMD_SYSTEMUNITDIR)
index 022603c..a95f9e3 100755 (executable)
@@ -1,4 +1,4 @@
-
+# SPDX-License-Identifier: GPL-2.0
 builtin_modules += hostname
 builtin_sources += plugins/hostname.c
 
index c5db037..73a0eb2 100755 (executable)
@@ -1,4 +1,4 @@
-
+# SPDX-License-Identifier: GPL-2.0
 if CLIENT
 bin_PROGRAMS += client/bluetoothctl
 
index 90ab0be..579d9e7 100644 (file)
@@ -12,7 +12,6 @@
 #include <config.h>
 #endif
 
-#define _GNU_SOURCE
 #include <stdio.h>
 #include <stdlib.h>
 #include <stdint.h>
index 11b3e6b..7a09b7f 100755 (executable)
@@ -1,3 +1,4 @@
+# SPDX-License-Identifier: GPL-2.0
 AC_PREREQ(2.60)
 AC_INIT(bluez, 5.55)
 
index 2123ff8..3b5573c 100644 (file)
@@ -328,7 +328,7 @@ enum kernel_features {
        KERNEL_HAS_RESUME_EVT           = 1 << 4,
 };
 
-bool bts_has_kernel_features(uint32_t feature);
+bool btd_has_kernel_features(uint32_t feature);
 
 #ifdef TIZEN_FEATURE_BLUEZ_MODIFY
 void adapter_send_event(const char *event);
index e441a55..fe3d469 100644 (file)
@@ -12,7 +12,6 @@
 #include <config.h>
 #endif
 
-#define _GNU_SOURCE
 #include <errno.h>
 #include <stdint.h>
 #include <string.h>
index 13026c7..0c85002 100644 (file)
@@ -5425,7 +5425,9 @@ void device_remove_connection(struct btd_device *device, uint8_t bdaddr_type)
 {
        struct bearer_state *state = get_state(device, bdaddr_type);
        DBusMessage *reply;
+#ifndef TIZEN_FEATURE_BLUEZ_MODIFY
        bool remove_device = false;
+#endif
 #ifdef TIZEN_FEATURE_BLUEZ_MODIFY
        char *dev_name = device->name;
 #endif
@@ -5470,10 +5472,11 @@ void device_remove_connection(struct btd_device *device, uint8_t bdaddr_type)
        while (device->disconnects) {
                DBusMessage *msg = device->disconnects->data;
 
+#ifndef TIZEN_FEATURE_BLUEZ_MODIFY
                if (dbus_message_is_method_call(msg, ADAPTER_INTERFACE,
                                                                "RemoveDevice"))
                        remove_device = true;
-
+#endif
                g_dbus_send_reply(dbus_conn, msg, DBUS_TYPE_INVALID);
                device->disconnects = g_slist_remove(device->disconnects, msg);
                dbus_message_unref(msg);