*
* The object wraps 'struct snd_timer_gstatus' in UAPI of Linux sound subsystem.
*/
-struct _ALSATimerDeviceStatusPrivate {
+typedef struct {
struct snd_timer_gstatus status;
-};
+} ALSATimerDeviceStatusPrivate;
G_DEFINE_TYPE_WITH_PRIVATE(ALSATimerDeviceStatus, alsatimer_device_status, G_TYPE_OBJECT)
enum timer_device_status_prop_type {
#define ALSATIMER_TYPE_DEVICE_STATUS (alsatimer_device_status_get_type())
-#define ALSATIMER_DEVICE_STATUS(obj) \
- (G_TYPE_CHECK_INSTANCE_CAST((obj), \
- ALSATIMER_TYPE_DEVICE_STATUS, \
- ALSATimerDeviceStatus))
-#define ALSATIMER_IS_DEVICE_STATUS(obj) \
- (G_TYPE_CHECK_INSTANCE_TYPE((obj), \
- ALSATIMER_TYPE_DEVICE_STATUS))
-
-#define ALSATIMER_DEVICE_STATUS_CLASS(klass) \
- (G_TYPE_CHECK_CLASS_CAST((klass), \
- ALSATIMER_TYPE_DEVICE_STATUS, \
- ALSATimerDeviceStatusClass))
-#define ALSATIMER_IS_DEVICE_STATUS_CLASS(klass) \
- (G_TYPE_CHECK_CLASS_TYPE((klass), \
- ALSATIMER_TYPE_DEVICE_STATUS))
-#define ALSATIMER_DEVICE_STATUS_GET_CLASS(obj) \
- (G_TYPE_INSTANCE_GET_CLASS((obj), \
- ALSATIMER_TYPE_DEVICE_STATUS, \
- ALSATimerDeviceStatusClass))
-
-typedef struct _ALSATimerDeviceStatus ALSATimerDeviceStatus;
-typedef struct _ALSATimerDeviceStatusClass ALSATimerDeviceStatusClass;
-typedef struct _ALSATimerDeviceStatusPrivate ALSATimerDeviceStatusPrivate;
-
-struct _ALSATimerDeviceStatus {
- GObject parent_instance;
-
- ALSATimerDeviceStatusPrivate *priv;
-};
+G_DECLARE_DERIVABLE_TYPE(ALSATimerDeviceStatus, alsatimer_device_status, ALSATIMER, DEVICE_STATUS,
+ GObject);
struct _ALSATimerDeviceStatusClass {
GObjectClass parent_class;
};
-GType alsatimer_device_status_get_type() G_GNUC_CONST;
-
ALSATimerDeviceStatus *alsatimer_device_status_new();
G_END_DECLS