Error stream is now an attribute of the base plugin class
[babeltrace.git] / include / babeltrace / plugin / plugin-internal.h
index 93c9c525e98544ffa0bf84ad6ba43568f834bd78..91f3621915c8b8033fd61fdfaffc5a331661260f 100644 (file)
@@ -28,6 +28,7 @@
  */
 
 #include <babeltrace/babeltrace-internal.h>
+#include <babeltrace/ctf-writer/ref-internal.h>
 #include <glib.h>
 
 #ifdef __cplusplus
@@ -37,12 +38,14 @@ extern "C" {
 struct bt_notification;
 
 struct bt_plugin {
+       struct bt_ctf_ref ref_count;
        GString *name;
        enum bt_plugin_type type;
+       /** No ownership taken */
+       FILE *error_stream;
 
-       /* Plug-in specific callbacks */
+       /* Plug-in implementation callbacks */
        bt_plugin_destroy_cb destroy;
-       bt_plugin_set_error_stream_cb set_error_stream;
 };
 
 #ifdef __cplusplus
This page took 0.024012 seconds and 4 git commands to generate.