g_signal_new("handle-disconnection",
G_OBJECT_CLASS_TYPE(klass),
G_SIGNAL_RUN_LAST,
- 0,
+ G_STRUCT_OFFSET(ALSACtlCardClass, handle_disconnection),
NULL, NULL,
g_cclosure_marshal_VOID__VOID,
G_TYPE_NONE, 0, G_TYPE_NONE, 0);
*/
void (*handle_elem_event)(ALSACtlCard *self, const ALSACtlElemId *elem_id,
ALSACtlEventMaskFlag events);
+
+ /**
+ * ALSACtlCardClass::handle_disconnection:
+ * @self: A #ALSACtlCard.
+ *
+ * When the sound card 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 control
+ * character device.
+ */
+ void (*handle_disconnection)(ALSACtlCard *self);
};
GType alsactl_card_get_type() G_GNUC_CONST;