plugin-system.h documentation
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 15 May 2015 15:14:06 +0000 (11:14 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Sat, 27 May 2017 16:54:30 +0000 (12:54 -0400)
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
include/babeltrace/plugin/plugin-system.h

index 92d81d5a13ebcda6fb5fe9c5985aec897f5bef8f..02c1f6f384410908fd7d22bfb2d1f32033852f7e 100644 (file)
@@ -37,15 +37,21 @@ extern "C" {
 #endif
 
 /**
+ * Plug-in private data deallocation function type.
  *
+ * @param plugin       Plug-in instance
  */
-typedef void (*bt_plugin_destroy_cb)(struct bt_plugin *);
+typedef void (*bt_plugin_destroy_cb)(struct bt_plugin *plugin);
 
 /**
+ * Plug-in error stream registration function type.
  *
+ * @param plugin       Plug-in instance
+ * @param error_stream Error stream, ownership is not transferred
+ * @returns            One of #bt_plugin_status values
  */
-typedef void (*bt_plugin_set_error_stream_cb)(struct bt_plugin *,
-               FILE *error_stream);
+typedef enum bt_plugin_status (*bt_plugin_set_error_stream_cb)(
+               struct bt_plugin *plugin, FILE *error_stream);
 
 /**
  * Get a plug-in's private (implementation) data.
This page took 0.026484 seconds and 4 git commands to generate.