projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
lib: add sink component class's "graph is configured" method
[babeltrace.git]
/
plugins
/
utils
/
counter
/
counter.c
diff --git
a/plugins/utils/counter/counter.c
b/plugins/utils/counter/counter.c
index fa75b6aeb5e3b7d4784dc292a8d3343339c841b5..ec0a8dba8633a83641254f9b555ae6a2930fba65 100644
(file)
--- a/
plugins/utils/counter/counter.c
+++ b/
plugins/utils/counter/counter.c
@@
-39,6
+39,9
@@
} \
} while (0)
} \
} while (0)
+static
+const char * const in_port_name = "in";
+
static
uint64_t get_total_count(struct counter *counter)
{
static
uint64_t get_total_count(struct counter *counter)
{
@@
-176,10
+179,8
@@
end:
}
BT_HIDDEN
}
BT_HIDDEN
-bt_self_component_status counter_port_connected(
- bt_self_component_sink *comp,
- bt_self_component_port_input *self_port,
- const bt_port_output *other_port)
+bt_self_component_status counter_graph_is_configured(
+ bt_self_component_sink *comp)
{
bt_self_component_status status = BT_SELF_COMPONENT_STATUS_OK;
struct counter *counter;
{
bt_self_component_status status = BT_SELF_COMPONENT_STATUS_OK;
struct counter *counter;
@@
-189,7
+190,8
@@
bt_self_component_status counter_port_connected(
bt_self_component_sink_as_self_component(comp));
BT_ASSERT(counter);
iterator = bt_self_component_port_input_message_iterator_create(
bt_self_component_sink_as_self_component(comp));
BT_ASSERT(counter);
iterator = bt_self_component_port_input_message_iterator_create(
- self_port);
+ bt_self_component_sink_borrow_input_port_by_name(comp,
+ in_port_name));
if (!iterator) {
status = BT_SELF_COMPONENT_STATUS_NOMEM;
goto end;
if (!iterator) {
status = BT_SELF_COMPONENT_STATUS_NOMEM;
goto end;
This page took
0.02414 seconds
and
4
git commands to generate.