X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=src%2Flib%2Fgraph%2Fcomponent-sink.c;h=4f087ddaa727956d40419c3babe8c20adfe5f931;hb=ecd7492f21a492b70569d5ecc1d3a808241b63f0;hp=d45532b455c8e89c1740d0b1711e5ab8cd8bb43a;hpb=1778c2a4134647150b199b2b57130817144446b0;p=babeltrace.git diff --git a/src/lib/graph/component-sink.c b/src/lib/graph/component-sink.c index d45532b4..4f087dda 100644 --- a/src/lib/graph/component-sink.c +++ b/src/lib/graph/component-sink.c @@ -21,14 +21,13 @@ #include "graph.h" #include "lib/func-status.h" -BT_HIDDEN -void bt_component_sink_destroy(struct bt_component *component) +void bt_component_sink_destroy( + struct bt_component *component __attribute__((unused))) { } -BT_HIDDEN struct bt_component *bt_component_sink_create( - const struct bt_component_class *class) + const struct bt_component_class *class __attribute__((unused))) { struct bt_component_sink *sink = NULL; @@ -43,6 +42,7 @@ end: return (void *) sink; } +BT_EXPORT const bt_component_class_sink * bt_component_sink_borrow_class_const( const bt_component_sink *component) @@ -59,6 +59,7 @@ bt_component_sink_borrow_class_const( return (bt_component_class_sink *) cls; } +BT_EXPORT uint64_t bt_component_sink_get_input_port_count( const struct bt_component_sink *component) { @@ -66,6 +67,7 @@ uint64_t bt_component_sink_get_input_port_count( return bt_component_get_input_port_count((void *) component, __func__); } +BT_EXPORT const struct bt_port_input * bt_component_sink_borrow_input_port_by_name_const( const struct bt_component_sink *component, const char *name) @@ -78,6 +80,7 @@ bt_component_sink_borrow_input_port_by_name_const( __func__); } +BT_EXPORT struct bt_self_component_port_input * bt_self_component_sink_borrow_input_port_by_name( struct bt_self_component_sink *component, const char *name) @@ -90,6 +93,7 @@ bt_self_component_sink_borrow_input_port_by_name( (void *) component, name, __func__); } +BT_EXPORT const struct bt_port_input *bt_component_sink_borrow_input_port_by_index_const( const struct bt_component_sink *component, uint64_t index) { @@ -101,6 +105,7 @@ const struct bt_port_input *bt_component_sink_borrow_input_port_by_index_const( (void *) component, index, __func__); } +BT_EXPORT struct bt_self_component_port_input * bt_self_component_sink_borrow_input_port_by_index( struct bt_self_component_sink *component, uint64_t index) @@ -113,6 +118,7 @@ bt_self_component_sink_borrow_input_port_by_index( (void *) component, index, __func__); } +BT_EXPORT enum bt_self_component_add_port_status bt_self_component_sink_add_input_port( struct bt_self_component_sink *self_comp, const char *name, void *user_data, @@ -122,8 +128,6 @@ enum bt_self_component_add_port_status bt_self_component_sink_add_input_port( struct bt_port *port = NULL; struct bt_component *comp = (void *) self_comp; - BT_ASSERT_PRE_NO_ERROR(); - /* * bt_component_add_input_port() logs details/errors and checks * preconditions. @@ -144,6 +148,7 @@ end: return status; } +BT_EXPORT bt_bool bt_self_component_sink_is_interrupted( const struct bt_self_component_sink *self_comp) { @@ -154,12 +159,14 @@ bt_bool bt_self_component_sink_is_interrupted( bt_component_borrow_graph(comp)); } +BT_EXPORT void bt_component_sink_get_ref( const struct bt_component_sink *component_sink) { bt_object_get_ref(component_sink); } +BT_EXPORT void bt_component_sink_put_ref( const struct bt_component_sink *component_sink) {