X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=include%2Fbabeltrace%2Fplugin%2Fsink-internal.h;h=f7b7bc4cbdfc0be76b4ae852e7f7a38d1fa85595;hb=fb2dcc52d2d351c4fb46878414f51d2cdecdfc6f;hp=b33333871ed5344c3b69597bd3528ed0b64c5341;hpb=732995546409a6d6c279acbcd44d3dbc4a1a3195;p=babeltrace.git diff --git a/include/babeltrace/plugin/sink-internal.h b/include/babeltrace/plugin/sink-internal.h index b3333387..f7b7bc4c 100644 --- a/include/babeltrace/plugin/sink-internal.h +++ b/include/babeltrace/plugin/sink-internal.h @@ -29,8 +29,14 @@ #include #include +#include #include +struct bt_component_sink_class { + struct bt_component_class parent; + bt_component_sink_init_cb init; +}; + struct bt_component_sink { struct bt_component parent; @@ -41,10 +47,12 @@ struct bt_component_sink { /** * Allocate a sink component. * + * @param class Component class * @param name Component instance name (will be copied) * @returns A sink component instance */ BT_HIDDEN -extern struct bt_component *bt_component_sink_create(const char *name); +extern struct bt_component *bt_component_sink_create( + struct bt_component_class *class, const char *name); #endif /* BABELTRACE_PLUGIN_SINK_INTERNAL_H */