X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=include%2Fbabeltrace%2Fplugin%2Fcomponent-internal.h;h=7a9361feb2545f63ec38f2e83b7249fa8372ed86;hb=fb2dcc52d2d351c4fb46878414f51d2cdecdfc6f;hp=7f35eaf55af99a5f918aca8e8c72a255bfd7a07b;hpb=732995546409a6d6c279acbcd44d3dbc4a1a3195;p=babeltrace.git diff --git a/include/babeltrace/plugin/component-internal.h b/include/babeltrace/plugin/component-internal.h index 7f35eaf5..7a9361fe 100644 --- a/include/babeltrace/plugin/component-internal.h +++ b/include/babeltrace/plugin/component-internal.h @@ -30,14 +30,15 @@ #include #include #include -#include +#include +#include #include #include struct bt_component { - struct bt_ctf_ref ref_count; + struct bt_ref ref; + struct bt_component_class *class; GString *name; - enum bt_component_type type; /** No ownership taken */ FILE *error_stream; /** source, sink or filter destroy */ @@ -49,7 +50,7 @@ struct bt_component { BT_HIDDEN enum bt_component_status bt_component_init(struct bt_component *component, - const char *name, enum bt_component_type component_type, + struct bt_component_class *class, const char *name, bt_component_destroy_cb destroy); #endif /* BABELTRACE_PLUGIN_COMPONENT_INTERNAL_H */