X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=include%2Fbabeltrace%2Fplugin%2Fsink-internal.h;h=ec6f9c2f1a42620f4d115f8c266f6e1d4ad2d1f8;hb=7c7c0433f4507935fbe2adab29d942df22ee8168;hp=f609e93eca25b7360fff9beb91322935314c3b72;hpb=5f1f05fb16867a6bf55e94c2ed8ad77d2172c667;p=babeltrace.git diff --git a/include/babeltrace/plugin/sink-internal.h b/include/babeltrace/plugin/sink-internal.h index f609e93e..ec6f9c2f 100644 --- a/include/babeltrace/plugin/sink-internal.h +++ b/include/babeltrace/plugin/sink-internal.h @@ -32,6 +32,8 @@ #include #include +struct bt_value; + struct bt_component_sink_class { struct bt_component_class parent; }; @@ -47,22 +49,21 @@ struct bt_component_sink { * Allocate a sink component. * * @param class Component class - * @param name Component instance name (will be copied) + * @param params A dictionary of component parameters * @returns A sink component instance */ BT_HIDDEN -extern struct bt_component *bt_component_sink_create( - struct bt_component_class *class, const char *name); +struct bt_component *bt_component_sink_create( + struct bt_component_class *class, struct bt_value *params); /** - * Allocate a sink component class. + * Validate a sink component. * - * @param name Component instance name (will be copied) - * @returns A sink component class instance + * @param component Sink component instance to validate + * @returns One of #bt_component_status */ -/* FIXME */ BT_HIDDEN -extern struct bt_component *bt_component_class_sink_create( - struct bt_component_class *class, const char *name); +enum bt_component_status bt_component_sink_validate( + struct bt_component *component); #endif /* BABELTRACE_PLUGIN_SINK_INTERNAL_H */