projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: lib: usage of output port message iterator
[babeltrace.git]
/
lib
/
graph
/
component-class-sink-colander.c
diff --git
a/lib/graph/component-class-sink-colander.c
b/lib/graph/component-class-sink-colander.c
index 9a70f105218172060aa6f39d2ae3ce149abb53bb..7f3cfeca6329f94604cc4f9127d4bd6f782c7fe6 100644
(file)
--- a/
lib/graph/component-class-sink-colander.c
+++ b/
lib/graph/component-class-sink-colander.c
@@
-94,16
+94,18
@@
void colander_finalize(struct bt_self_component_sink *self_comp)
}
static
}
static
-enum bt_self_component_status colander_input_port_connected(
- struct bt_self_component_sink *self_comp,
- struct bt_self_component_port_input *self_port,
- const struct bt_port_output *other_port)
+enum bt_self_component_status colander_graph_is_configured(
+ bt_self_component_sink *self_comp)
{
enum bt_self_component_status status = BT_SELF_COMPONENT_STATUS_OK;
struct bt_component_class_sink_colander_priv_data *colander_data =
bt_self_component_get_data(
bt_self_component_sink_as_self_component(self_comp));
{
enum bt_self_component_status status = BT_SELF_COMPONENT_STATUS_OK;
struct bt_component_class_sink_colander_priv_data *colander_data =
bt_self_component_get_data(
bt_self_component_sink_as_self_component(self_comp));
+ struct bt_self_component_port_input *self_port =
+ bt_self_component_sink_borrow_input_port_by_name(self_comp, "in");
+ BT_ASSERT(self_port);
+
BT_ASSERT(colander_data);
BT_OBJECT_PUT_REF_AND_RESET(colander_data->msg_iter);
colander_data->msg_iter =
BT_ASSERT(colander_data);
BT_OBJECT_PUT_REF_AND_RESET(colander_data->msg_iter);
colander_data->msg_iter =
@@
-183,8
+185,8
@@
struct bt_component_class_sink *bt_component_class_sink_colander_get(void)
colander_comp_cls, colander_init);
(void) bt_component_class_sink_set_finalize_method(
colander_comp_cls, colander_finalize);
colander_comp_cls, colander_init);
(void) bt_component_class_sink_set_finalize_method(
colander_comp_cls, colander_finalize);
- (void) bt_component_class_sink_set_
input_port_connect
ed_method(
- colander_comp_cls, colander_
input_port_connect
ed);
+ (void) bt_component_class_sink_set_
graph_is_configur
ed_method(
+ colander_comp_cls, colander_
graph_is_configur
ed);
end:
bt_object_get_ref(colander_comp_cls);
end:
bt_object_get_ref(colander_comp_cls);
This page took
0.02317 seconds
and
4
git commands to generate.