diff options
author | Bastien Nocera <hadess@hadess.net> | 2021-11-18 15:30:51 +0100 |
---|---|---|
committer | Bastien Nocera <hadess@hadess.net> | 2021-11-18 15:30:51 +0100 |
commit | 2044a1eee055cba48613a584e973c816ea854071 (patch) | |
tree | 7dd80e0ade5caf2e443c2d0875558699ec2562ac /lib/bluetooth-client.h | |
parent | cf8da110a9c26ba35bd6e912df0a1380b3d0a037 (diff) | |
download | gnome-bluetooth-2044a1eee055cba48613a584e973c816ea854071.tar.gz |
lib: use G_DECLARE_FINAL_TYPE() for BluetoothClient
Diffstat (limited to 'lib/bluetooth-client.h')
-rw-r--r-- | lib/bluetooth-client.h | 30 |
1 files changed, 1 insertions, 29 deletions
diff --git a/lib/bluetooth-client.h b/lib/bluetooth-client.h index dcd72c01..15fddce1 100644 --- a/lib/bluetooth-client.h +++ b/lib/bluetooth-client.h @@ -28,35 +28,7 @@ #include <bluetooth-enums.h> #define BLUETOOTH_TYPE_CLIENT (bluetooth_client_get_type()) -#define BLUETOOTH_CLIENT(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), \ - BLUETOOTH_TYPE_CLIENT, BluetoothClient)) -#define BLUETOOTH_CLIENT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), \ - BLUETOOTH_TYPE_CLIENT, BluetoothClientClass)) -#define BLUETOOTH_IS_CLIENT(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), \ - BLUETOOTH_TYPE_CLIENT)) -#define BLUETOOTH_IS_CLIENT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), \ - BLUETOOTH_TYPE_CLIENT)) -#define BLUETOOTH_GET_CLIENT_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), \ - BLUETOOTH_TYPE_CLIENT, BluetoothClientClass)) - -/** - * BluetoothClient: - * - * The <structname>BluetoothClient</structname> struct contains - * only private fields and should not be directly accessed. - */ -typedef struct _BluetoothClient BluetoothClient; -typedef struct _BluetoothClientClass BluetoothClientClass; - -struct _BluetoothClient { - GObject parent; -}; - -struct _BluetoothClientClass { - GObjectClass parent_class; -}; - -GType bluetooth_client_get_type(void); +G_DECLARE_FINAL_TYPE (BluetoothClient, bluetooth_client, BLUETOOTH, CLIENT, GObject) BluetoothClient *bluetooth_client_new(void); |