[gnome-bluetooth/wip/hadess/bluetooth-le-audio: 3/3] lib: Move constants inside the C source
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-bluetooth/wip/hadess/bluetooth-le-audio: 3/3] lib: Move constants inside the C source
- Date: Thu, 2 Dec 2021 13:01:55 +0000 (UTC)
commit 2beabc38856c885a67eb3935e2f2b32be1542f25
Author: Bastien Nocera <hadess hadess net>
Date: Thu Dec 2 14:01:18 2021 +0100
lib: Move constants inside the C source
They're not used outside it.
lib/bluetooth-utils.c | 30 ++++++++++++++++++++++++++++++
lib/bluetooth-utils.h | 30 ------------------------------
2 files changed, 30 insertions(+), 30 deletions(-)
---
diff --git a/lib/bluetooth-utils.c b/lib/bluetooth-utils.c
index ead8b5c2..87d550e8 100644
--- a/lib/bluetooth-utils.c
+++ b/lib/bluetooth-utils.c
@@ -275,6 +275,36 @@ bluetooth_appearance_to_type (guint16 appearance)
}
+/*
+ * The profile UUID list is provided by the Bluetooth SIG:
+ * https://www.bluetooth.com/specifications/assigned-numbers/service-discovery
+ */
+#define BLUETOOTH_UUID_SPP 0x1101
+#define BLUETOOTH_UUID_DUN 0x1103
+#define BLUETOOTH_UUID_IRMC 0x1104
+#define BLUETOOTH_UUID_OPP 0x1105
+#define BLUETOOTH_UUID_FTP 0x1106
+#define BLUETOOTH_UUID_HSP 0x1108
+#define BLUETOOTH_UUID_A2DP_SOURCE 0x110A
+#define BLUETOOTH_UUID_A2DP_SINK 0x110B
+#define BLUETOOTH_UUID_AVRCP_TARGET 0x110C
+#define BLUETOOTH_UUID_A2DP 0x110D
+#define BLUETOOTH_UUID_AVRCP_CONTROL 0x110E
+#define BLUETOOTH_UUID_HSP_AG 0x1112
+#define BLUETOOTH_UUID_PAN_PANU 0x1115
+#define BLUETOOTH_UUID_PAN_NAP 0x1116
+#define BLUETOOTH_UUID_PAN_GN 0x1117
+#define BLUETOOTH_UUID_HFP_HF 0x111E
+#define BLUETOOTH_UUID_HFP_AG 0x111F
+#define BLUETOOTH_UUID_HID 0x1124
+#define BLUETOOTH_UUID_SAP 0x112d
+#define BLUETOOTH_UUID_PBAP 0x112F
+#define BLUETOOTH_UUID_GENERIC_AUDIO 0x1203
+#define BLUETOOTH_UUID_SDP 0x1000
+#define BLUETOOTH_UUID_PNP 0x1200
+#define BLUETOOTH_UUID_GENERIC_NET 0x1201
+#define BLUETOOTH_UUID_VDP_SOURCE 0x1303
+
static const char *
uuid16_custom_to_string (guint uuid16, const char *uuid)
{
diff --git a/lib/bluetooth-utils.h b/lib/bluetooth-utils.h
index 5e69504c..b4a4932f 100644
--- a/lib/bluetooth-utils.h
+++ b/lib/bluetooth-utils.h
@@ -27,36 +27,6 @@
#include <gio/gio.h>
#include <bluetooth-enums.h>
-/*
- * The profile UUID list is provided by the Bluetooth SIG:
- * https://www.bluetooth.com/specifications/assigned-numbers/service-discovery
- */
-#define BLUETOOTH_UUID_SPP 0x1101
-#define BLUETOOTH_UUID_DUN 0x1103
-#define BLUETOOTH_UUID_IRMC 0x1104
-#define BLUETOOTH_UUID_OPP 0x1105
-#define BLUETOOTH_UUID_FTP 0x1106
-#define BLUETOOTH_UUID_HSP 0x1108
-#define BLUETOOTH_UUID_A2DP_SOURCE 0x110A
-#define BLUETOOTH_UUID_A2DP_SINK 0x110B
-#define BLUETOOTH_UUID_AVRCP_TARGET 0x110C
-#define BLUETOOTH_UUID_A2DP 0x110D
-#define BLUETOOTH_UUID_AVRCP_CONTROL 0x110E
-#define BLUETOOTH_UUID_HSP_AG 0x1112
-#define BLUETOOTH_UUID_PAN_PANU 0x1115
-#define BLUETOOTH_UUID_PAN_NAP 0x1116
-#define BLUETOOTH_UUID_PAN_GN 0x1117
-#define BLUETOOTH_UUID_HFP_HF 0x111E
-#define BLUETOOTH_UUID_HFP_AG 0x111F
-#define BLUETOOTH_UUID_HID 0x1124
-#define BLUETOOTH_UUID_SAP 0x112d
-#define BLUETOOTH_UUID_PBAP 0x112F
-#define BLUETOOTH_UUID_GENERIC_AUDIO 0x1203
-#define BLUETOOTH_UUID_SDP 0x1000
-#define BLUETOOTH_UUID_PNP 0x1200
-#define BLUETOOTH_UUID_GENERIC_NET 0x1201
-#define BLUETOOTH_UUID_VDP_SOURCE 0x1303
-
BluetoothType bluetooth_class_to_type (guint32 class);
BluetoothType bluetooth_appearance_to_type (guint16 appearance);
const gchar *bluetooth_type_to_string (guint type);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]