g_signal_new("handle-disconnection",
G_OBJECT_CLASS_TYPE(klass),
G_SIGNAL_RUN_LAST,
- 0,
+ G_STRUCT_OFFSET(ALSATimerUserInstanceClass, handle_disconnection),
NULL, NULL,
g_cclosure_marshal_VOID__VOID,
G_TYPE_NONE, 0, G_TYPE_NONE, 0);
*/
void (*handle_event)(ALSATimerUserInstance *self,
const ALSATimerEventData *event_data);
+
+ /**
+ * ALSATimerUserInstanceClass::handle_disconnection:
+ * @self: A #ALSATimerUserInstance.
+ *
+ * When the attached timer device is not available anymore due to unbinding
+ * driver or hot unplugging, this signal is emit. The owner of this object
+ * should call g_object_free() as quickly as possible to release ALSA timer
+ * character device.
+ */
+ void (*handle_disconnection)(ALSATimerUserInstance *self);
};
GType alsatimer_user_instance_get_type() G_GNUC_CONST;