X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=include%2Fbabeltrace%2Fgraph%2Fprivate-component-source.h;h=29ed0b967f3396a3847bf8db28bd8a80807ceebd;hb=312c056ae3d374b253fa0cfe5ed576c0b0e5e569;hp=da65320392bc946c40986f079b13caa246f1f26e;hpb=3e9b00233085bfafb21da3746f41d7d1876920dd;p=babeltrace.git diff --git a/include/babeltrace/graph/private-component-source.h b/include/babeltrace/graph/private-component-source.h index da653203..29ed0b96 100644 --- a/include/babeltrace/graph/private-component-source.h +++ b/include/babeltrace/graph/private-component-source.h @@ -1,5 +1,5 @@ -#ifndef BABELTRACE_COMPONENT_PRIVATE_COMPONENT_SOURCE_H -#define BABELTRACE_COMPONENT_PRIVATE_COMPONENT_SOURCE_H +#ifndef BABELTRACE_GRAPH_PRIVATE_COMPONENT_SOURCE_H +#define BABELTRACE_GRAPH_PRIVATE_COMPONENT_SOURCE_H /* * Copyright 2017 Philippe Proulx @@ -24,12 +24,15 @@ */ #include -#include + +/* For enum bt_component_status */ +#include #ifdef __cplusplus extern "C" { #endif +struct bt_component; struct bt_private_component; struct bt_private_port; @@ -43,17 +46,14 @@ bt_private_component_source_get_output_private_port_by_index( struct bt_private_component *private_component, uint64_t index); -extern struct bt_private_port * -bt_private_component_source_get_default_output_private_port( - struct bt_private_component *private_component); - -extern struct bt_private_port * +extern enum bt_component_status bt_private_component_source_add_output_private_port( struct bt_private_component *private_component, - const char *name, void *user_data); + const char *name, void *user_data, + struct bt_private_port **private_port); #ifdef __cplusplus } #endif -#endif /* BABELTRACE_COMPONENT_PRIVATE_COMPONENT_SOURCE_H */ +#endif /* BABELTRACE_GRAPH_PRIVATE_COMPONENT_SOURCE_H */