X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=include%2Fbabeltrace%2Fgraph%2Fself-component-source.h;h=3b96af1e2592b085aaf51b42f5bbbd8db642a808;hb=efd923e5742993cedafc1eeeb04cfad4ddf5cc8d;hp=b9f148b5de97794356fd6566a6f4f995cae37648;hpb=f2b0325d1bd4bc213b08fa42828d6cc86adc6a01;p=babeltrace.git diff --git a/include/babeltrace/graph/self-component-source.h b/include/babeltrace/graph/self-component-source.h index b9f148b5..3b96af1e 100644 --- a/include/babeltrace/graph/self-component-source.h +++ b/include/babeltrace/graph/self-component-source.h @@ -25,48 +25,49 @@ #include -/* For enum bt_self_component_status */ +/* For bt_self_component_status */ #include +/* + * For bt_component_source, bt_self_component, bt_self_component_source, + * bt_self_component_port_output + */ +#include + #ifdef __cplusplus extern "C" { #endif -struct bt_component_source; -struct bt_self_component; -struct bt_self_component_source; -struct bt_self_component_port_output; - static inline -struct bt_self_component *bt_self_component_source_as_self_component( - struct bt_self_component_source *self_comp_source) +bt_self_component *bt_self_component_source_as_self_component( + bt_self_component_source *self_comp_source) { return (void *) self_comp_source; } static inline -const struct bt_component_source * +const bt_component_source * bt_self_component_source_as_component_source( - struct bt_self_component_source *self_comp_source) + bt_self_component_source *self_comp_source) { return (const void *) self_comp_source; } -extern struct bt_self_component_port_output * +extern bt_self_component_port_output * bt_self_component_source_borrow_output_port_by_name( - struct bt_self_component_source *self_component, + bt_self_component_source *self_component, const char *name); -extern struct bt_self_component_port_output * +extern bt_self_component_port_output * bt_self_component_source_borrow_output_port_by_index( - struct bt_self_component_source *self_component, + bt_self_component_source *self_component, uint64_t index); -extern enum bt_self_component_status +extern bt_self_component_status bt_self_component_source_add_output_port( - struct bt_self_component_source *self_component, + bt_self_component_source *self_component, const char *name, void *user_data, - struct bt_self_component_port_output **self_component_port); + bt_self_component_port_output **self_component_port); #ifdef __cplusplus }