Adapt plugin system to use unified reference counting
[babeltrace.git] / include / babeltrace / plugin / component-internal.h
index 7a9361feb2545f63ec38f2e83b7249fa8372ed86..c6443e54e96e9f7ed1bb5374fee30135c8e8714d 100644 (file)
 #include <babeltrace/plugin/plugin-system.h>
 #include <babeltrace/plugin/component.h>
 #include <babeltrace/plugin/component-class-internal.h>
-#include <babeltrace/ref-internal.h>
+#include <babeltrace/object-internal.h>
 #include <glib.h>
 #include <stdio.h>
 
 struct bt_component {
-       struct bt_ref ref;
+       struct bt_object base;
        struct bt_component_class *class;
        GString *name;
-       /** No ownership taken */
+       /** No ownership of stream taken */
        FILE *error_stream;
-       /** source, sink or filter destroy */
+       /** Source, Sink or Filter destroy */
        bt_component_destroy_cb destroy;
 
+       /** User-defined data and its destruction callback */
        void *user_data;
        bt_component_destroy_cb user_destroy;
 };
This page took 0.023236 seconds and 4 git commands to generate.