summaryrefslogtreecommitdiff
path: root/libgupnp/gupnp-device.h
diff options
context:
space:
mode:
authorJens Georg <mail@jensge.org>2018-11-02 17:35:39 +0100
committerJens Georg <mail@jensge.org>2018-11-02 17:35:39 +0100
commit84d6605ed7075dc65de5936532dcef951b2f74bf (patch)
tree1c8e5b3dcec87723231b160bda815f1068edf096 /libgupnp/gupnp-device.h
parent1d80a13e4e67b7245aeaf59034a9afe9881ff16f (diff)
downloadgupnp-84d6605ed7075dc65de5936532dcef951b2f74bf.tar.gz
all: Port to new GLib type macros
Diffstat (limited to 'libgupnp/gupnp-device.h')
-rw-r--r--libgupnp/gupnp-device.h44
1 files changed, 6 insertions, 38 deletions
diff --git a/libgupnp/gupnp-device.h b/libgupnp/gupnp-device.h
index 5900cfb..c0432bb 100644
--- a/libgupnp/gupnp-device.h
+++ b/libgupnp/gupnp-device.h
@@ -26,45 +26,13 @@
G_BEGIN_DECLS
-GType
-gupnp_device_get_type (void) G_GNUC_CONST;
+#define GUPNP_TYPE_DEVICE (gupnp_device_get_type ())
-#define GUPNP_TYPE_DEVICE \
- (gupnp_device_get_type ())
-#define GUPNP_DEVICE(obj) \
- (G_TYPE_CHECK_INSTANCE_CAST ((obj), \
- GUPNP_TYPE_DEVICE, \
- GUPnPDevice))
-#define GUPNP_DEVICE_CLASS(obj) \
- (G_TYPE_CHECK_CLASS_CAST ((obj), \
- GUPNP_TYPE_DEVICE, \
- GUPnPDeviceClass))
-#define GUPNP_IS_DEVICE(obj) \
- (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
- GUPNP_TYPE_DEVICE))
-#define GUPNP_IS_DEVICE_CLASS(obj) \
- (G_TYPE_CHECK_CLASS_TYPE ((obj), \
- GUPNP_TYPE_DEVICE))
-#define GUPNP_DEVICE_GET_CLASS(obj) \
- (G_TYPE_INSTANCE_GET_CLASS ((obj), \
- GUPNP_TYPE_DEVICE, \
- GUPnPDeviceClass))
-
-typedef struct _GUPnPDevicePrivate GUPnPDevicePrivate;
-typedef struct _GUPnPDevice GUPnPDevice;
-typedef struct _GUPnPDeviceClass GUPnPDeviceClass;
-
-/**
- * GUPnPDevice:
- *
- * This struct contains private data only, and should be accessed using the
- * functions below.
- */
-struct _GUPnPDevice {
- GUPnPDeviceInfo parent;
-
- GUPnPDevicePrivate *priv;
-};
+G_DECLARE_DERIVABLE_TYPE (GUPnPDevice,
+ gupnp_device,
+ GUPNP,
+ DEVICE,
+ GUPnPDeviceInfo)
struct _GUPnPDeviceClass {
GUPnPDeviceInfoClass parent_class;