X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=include%2Fbabeltrace%2Fgraph%2Fself-component-filter.h;fp=include%2Fbabeltrace%2Fgraph%2Fself-component-filter.h;h=13a976f4b3e2e68aa3917eeeff5a7c86b49f3753;hb=b19ff26f04df428047676dd736bd7cc9473906fe;hp=c47fc1262d23f024b4634915b38b0d297032c480;hpb=c5b9b4417bedfbec9b5dd23b8395ccdd4eeffc44;p=babeltrace.git diff --git a/include/babeltrace/graph/self-component-filter.h b/include/babeltrace/graph/self-component-filter.h index c47fc126..13a976f4 100644 --- a/include/babeltrace/graph/self-component-filter.h +++ b/include/babeltrace/graph/self-component-filter.h @@ -29,65 +29,65 @@ /* For enum bt_self_component_status */ #include +/* + * For bt_component_filter, bt_self_component, bt_self_component_filter, + * bt_self_component_port_input, bt_self_component_port_output + */ +#include + #ifdef __cplusplus extern "C" { #endif -struct bt_component_filter; -struct bt_self_component; -struct bt_self_component_filter; -struct bt_self_component_port_input; -struct bt_self_component_port_output; - static inline -struct bt_self_component *bt_self_component_filter_as_self_component( - struct bt_self_component_filter *self_comp_filter) +bt_self_component *bt_self_component_filter_as_self_component( + bt_self_component_filter *self_comp_filter) { return (void *) self_comp_filter; } static inline -const struct bt_component_filter * +const bt_component_filter * bt_self_component_filter_as_component_filter( - struct bt_self_component_filter *self_comp_filter) + bt_self_component_filter *self_comp_filter) { return (const void *) self_comp_filter; } -extern struct bt_component_filter *bt_component_filter_borrow_from_self( - struct bt_self_component_filter *self_component); +extern bt_component_filter *bt_component_filter_borrow_from_self( + bt_self_component_filter *self_component); -extern struct bt_self_component_port_output * +extern bt_self_component_port_output * bt_self_component_filter_borrow_output_port_by_name( - struct bt_self_component_filter *self_component, + bt_self_component_filter *self_component, const char *name); -extern struct bt_self_component_port_output * +extern bt_self_component_port_output * bt_self_component_filter_borrow_output_port_by_index( - struct bt_self_component_filter *self_component, + bt_self_component_filter *self_component, uint64_t index); extern enum bt_self_component_status bt_self_component_filter_add_output_port( - struct bt_self_component_filter *self_component, + bt_self_component_filter *self_component, const char *name, void *data, - struct bt_self_component_port_output **self_component_port); + bt_self_component_port_output **self_component_port); -extern struct bt_self_component_port_input * +extern bt_self_component_port_input * bt_self_component_filter_borrow_input_port_by_name( - struct bt_self_component_filter *self_component, + bt_self_component_filter *self_component, const char *name); -extern struct bt_self_component_port_input * +extern bt_self_component_port_input * bt_self_component_filter_borrow_input_port_by_index( - struct bt_self_component_filter *self_component, + bt_self_component_filter *self_component, uint64_t index); extern enum bt_self_component_status bt_self_component_filter_add_input_port( - struct bt_self_component_filter *self_component, + bt_self_component_filter *self_component, const char *name, void *data, - struct bt_self_component_port_input **self_component_port); + bt_self_component_port_input **self_component_port); #ifdef __cplusplus }