Add ctf fs iterator initialization
[babeltrace.git] / include / babeltrace / plugin / plugin-system.h
index 618e3eca3f8a678477913f9e026c883caffe3b5c..0c3618c219b46b79dc1957ad750400cede5db1cd 100644 (file)
@@ -49,9 +49,9 @@ typedef void (*bt_plugin_exit_func)(void);
 /**
  * Component private data deallocation function type.
  *
- * @param data         Component private data
+ * @param component    Component instance
  */
-typedef void (*bt_component_destroy_cb)(void *data);
+typedef void (*bt_component_destroy_cb)(struct bt_component *component);
 
 /**
  * Component initialization function type.
@@ -123,8 +123,11 @@ bt_component_source_set_iterator_init_cb(struct bt_component *source,
 /**
  * Notification handling function type.
  *
+ * A reference must be taken on the notification if the component has to
+ * keep ownership of the notification beyond the invocation of the callback.
+ *
  * @param sink         Sink component instance
- * @param notificattion        Notification to handle
+ * @param notification Notification to handle
  * @returns            One of #bt_component_status values
  */
 typedef enum bt_component_status (*bt_component_sink_handle_notification_cb)(
This page took 0.023529 seconds and 4 git commands to generate.