Add bt_connection_is_ended()
[babeltrace.git] / lib / graph / connection.c
index b0f64aeb871403965c0fbcb88a2235a2a93ca636..a13bce3e55e2d3114aaf374891897eace082eb59 100644 (file)
@@ -402,3 +402,8 @@ void bt_connection_remove_iterator(struct bt_connection *conn,
                "conn-addr=%p, iter-addr=%p", conn, iterator);
        bt_connection_try_remove_from_graph(conn);
 }
+
+bt_bool bt_connection_is_ended(struct bt_connection *connection)
+{
+       return !connection->downstream_port && !connection->upstream_port;
+}
This page took 0.023064 seconds and 4 git commands to generate.