projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
lib: make the "port connected" method return a status
[babeltrace.git]
/
lib
/
graph
/
component.c
diff --git
a/lib/graph/component.c
b/lib/graph/component.c
index 8ffab8e0b20fe5d8fa7544f0c5ca4bfeb8c7b901..9fa449db7ddcdf8a689cdff7df14713a0f1a628b 100644
(file)
--- a/
lib/graph/component.c
+++ b/
lib/graph/component.c
@@
-601,9
+601,11
@@
enum bt_component_status bt_component_accept_port_connection(
}
BT_HIDDEN
}
BT_HIDDEN
-
void
bt_component_port_connected(struct bt_component *comp,
+
enum bt_component_status
bt_component_port_connected(struct bt_component *comp,
struct bt_port *self_port, struct bt_port *other_port)
{
struct bt_port *self_port, struct bt_port *other_port)
{
+ enum bt_component_status status = BT_COMPONENT_STATUS_OK;
+
BT_ASSERT(comp);
BT_ASSERT(self_port);
BT_ASSERT(other_port);
BT_ASSERT(comp);
BT_ASSERT(self_port);
BT_ASSERT(other_port);
@@
-616,10
+618,12
@@
void bt_component_port_connected(struct bt_component *comp,
comp, bt_component_get_name(comp),
self_port, bt_port_get_name(self_port),
other_port, bt_port_get_name(other_port));
comp, bt_component_get_name(comp),
self_port, bt_port_get_name(self_port),
other_port, bt_port_get_name(other_port));
- comp->class->methods.port_connected(
+
status =
comp->class->methods.port_connected(
bt_private_component_from_component(comp),
bt_private_port_from_port(self_port), other_port);
}
bt_private_component_from_component(comp),
bt_private_port_from_port(self_port), other_port);
}
+
+ return status;
}
BT_HIDDEN
}
BT_HIDDEN
This page took
0.022398 seconds
and
4
git commands to generate.