[gnome-bluetooth/wip/hadess/cleanups: 3/4] lib: Remove BluetoothStatus enum type
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-bluetooth/wip/hadess/cleanups: 3/4] lib: Remove BluetoothStatus enum type
- Date: Thu, 2 Dec 2021 12:04:39 +0000 (UTC)
commit e6f5b95a9c86837c1fa9c149e701f50036f00af4
Author: Bastien Nocera <hadess hadess net>
Date: Thu Dec 2 12:47:59 2021 +0100
lib: Remove BluetoothStatus enum type
.ci/gbt.suppr | 4 ++++
.../libgnome-bluetooth/gnome-bluetooth-sections.txt | 1 -
.../reference/libgnome-bluetooth/gnome-bluetooth.types | 1 -
lib/bluetooth-enums.h | 18 ------------------
lib/gnome-bluetooth.map | 1 -
5 files changed, 4 insertions(+), 21 deletions(-)
---
diff --git a/.ci/gbt.suppr b/.ci/gbt.suppr
index c00598ea..925ff5d5 100644
--- a/.ci/gbt.suppr
+++ b/.ci/gbt.suppr
@@ -10,6 +10,10 @@ drop = yes
symbol_name = bluetooth_column_get_type
drop = yes
+[suppress_function]
+symbol_name = bluetooth_status_get_type
+drop = yes
+
[suppress_function]
symbol_name = bluetooth_type_to_filter_string
drop = yes
diff --git a/docs/reference/libgnome-bluetooth/gnome-bluetooth-sections.txt
b/docs/reference/libgnome-bluetooth/gnome-bluetooth-sections.txt
index f60d50a7..c56ab9ac 100644
--- a/docs/reference/libgnome-bluetooth/gnome-bluetooth-sections.txt
+++ b/docs/reference/libgnome-bluetooth/gnome-bluetooth-sections.txt
@@ -23,7 +23,6 @@ bluetooth_client_get_type
BLUETOOTH_TYPE_AUDIO
BLUETOOTH_TYPE_INPUT
BluetoothCategory
-BluetoothStatus
BluetoothType
</SECTION>
diff --git a/docs/reference/libgnome-bluetooth/gnome-bluetooth.types
b/docs/reference/libgnome-bluetooth/gnome-bluetooth.types
index a3fd485c..d05459d8 100644
--- a/docs/reference/libgnome-bluetooth/gnome-bluetooth.types
+++ b/docs/reference/libgnome-bluetooth/gnome-bluetooth.types
@@ -1,3 +1,2 @@
bluetooth_client_get_type
-bluetooth_status_get_type
bluetooth_type_get_type
diff --git a/lib/bluetooth-enums.h b/lib/bluetooth-enums.h
index 863791f4..2105786f 100644
--- a/lib/bluetooth-enums.h
+++ b/lib/bluetooth-enums.h
@@ -98,21 +98,3 @@ typedef enum {
* Use this value to select any Bluetooth audio device where a #BluetoothType enum is required.
*/
#define BLUETOOTH_TYPE_AUDIO (BLUETOOTH_TYPE_HEADSET | BLUETOOTH_TYPE_HEADPHONES |
BLUETOOTH_TYPE_OTHER_AUDIO | BLUETOOTH_TYPE_SPEAKERS)
-
-/**
- * BluetoothStatus:
- * @BLUETOOTH_STATUS_INVALID: whether the status has been set yet
- * @BLUETOOTH_STATUS_DISCONNECTED: whether the service is disconnected
- * @BLUETOOTH_STATUS_CONNECTED: whether the service is connected
- * @BLUETOOTH_STATUS_CONNECTING: whether the service is connecting
- * @BLUETOOTH_STATUS_PLAYING: whether the service is playing (only used by the audio service)
- *
- * The connection status of a service on a particular device. Note that @BLUETOOTH_STATUS_CONNECTING and
@BLUETOOTH_STATUS_PLAYING might not be available for all services.
- **/
-typedef enum {
- BLUETOOTH_STATUS_INVALID = 0,
- BLUETOOTH_STATUS_DISCONNECTED,
- BLUETOOTH_STATUS_CONNECTED,
- BLUETOOTH_STATUS_CONNECTING,
- BLUETOOTH_STATUS_PLAYING
-} BluetoothStatus;
diff --git a/lib/gnome-bluetooth.map b/lib/gnome-bluetooth.map
index 3a117f28..77918352 100644
--- a/lib/gnome-bluetooth.map
+++ b/lib/gnome-bluetooth.map
@@ -16,7 +16,6 @@ global:
bluetooth_uuid_to_string;
bluetooth_send_to_address;
bluetooth_type_get_type;
- bluetooth_status_get_type;
bluetooth_device_get_type;
bluetooth_device_dump;
bluetooth_device_get_object_path;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]