X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=include%2Fbabeltrace%2Fplugin%2Fsource-internal.h;h=5c411fc1c83f04a68793559e1d4cba3407079566;hb=fb2dcc52d2d351c4fb46878414f51d2cdecdfc6f;hp=1234339ac5da93c51d9256eaee9b41d670316a39;hpb=732995546409a6d6c279acbcd44d3dbc4a1a3195;p=babeltrace.git diff --git a/include/babeltrace/plugin/source-internal.h b/include/babeltrace/plugin/source-internal.h index 1234339a..5c411fc1 100644 --- a/include/babeltrace/plugin/source-internal.h +++ b/include/babeltrace/plugin/source-internal.h @@ -29,8 +29,14 @@ #include #include +#include #include +struct bt_component_source_class { + struct bt_component_class parent; + bt_component_source_init_cb init; +}; + struct bt_component_source { struct bt_component parent; @@ -41,10 +47,12 @@ struct bt_component_source { /** * Allocate a source component. * + * @param class Component class * @param name Component instance name (will be copied) * @returns A source component instance */ BT_HIDDEN -extern struct bt_component *bt_component_source_create(const char *name); +extern struct bt_component *bt_component_source_create( + struct bt_component_class *class, const char *name); #endif /* BABELTRACE_PLUGIN_SOURCE_INTERNAL_H */