lib: rename include dir to babeltrace2
[babeltrace.git] / lib / graph / port.c
index a04049a1cf4616f831764511f90ba190d4ae582b..f119d60b6dfb5414ac805cc90b3b1550c4296f2b 100644 (file)
  */
 
 #define BT_LOG_TAG "PORT"
-#include <babeltrace/lib-logging-internal.h>
-
-#include <babeltrace/assert-internal.h>
-#include <babeltrace/assert-pre-internal.h>
-#include <babeltrace/graph/port-const.h>
-#include <babeltrace/graph/port-input-const.h>
-#include <babeltrace/graph/port-output-const.h>
-#include <babeltrace/graph/self-component-port.h>
-#include <babeltrace/graph/self-component-port-input.h>
-#include <babeltrace/graph/self-component-port-output.h>
-#include <babeltrace/graph/component-internal.h>
-#include <babeltrace/graph/port-internal.h>
-#include <babeltrace/graph/connection-internal.h>
-#include <babeltrace/object-internal.h>
-#include <babeltrace/compiler-internal.h>
+#include <babeltrace2/lib-logging-internal.h>
+
+#include <babeltrace2/assert-internal.h>
+#include <babeltrace2/assert-pre-internal.h>
+#include <babeltrace2/graph/port-const.h>
+#include <babeltrace2/graph/port-input-const.h>
+#include <babeltrace2/graph/port-output-const.h>
+#include <babeltrace2/graph/self-component-port.h>
+#include <babeltrace2/graph/self-component-port-input.h>
+#include <babeltrace2/graph/self-component-port-output.h>
+#include <babeltrace2/graph/component-internal.h>
+#include <babeltrace2/graph/port-internal.h>
+#include <babeltrace2/graph/connection-internal.h>
+#include <babeltrace2/object-internal.h>
+#include <babeltrace2/compiler-internal.h>
 
 static
 void destroy_port(struct bt_object *obj)
@@ -137,36 +137,6 @@ void bt_port_set_connection(struct bt_port *port,
                connection);
 }
 
-static inline
-bool port_connection_iterators_are_finalized(struct bt_port *port)
-{
-       bool ret = true;
-       struct bt_connection *conn = port->connection;
-       uint64_t i;
-
-       if (!conn) {
-               goto end;
-       }
-
-       for (i = 0; i < conn->iterators->len; i++) {
-               struct bt_self_component_port_input_message_iterator *iterator =
-                       conn->iterators->pdata[i];
-
-               BT_ASSERT(iterator);
-
-               if (iterator->state != BT_SELF_COMPONENT_PORT_INPUT_MESSAGE_ITERATOR_STATE_FINALIZING &&
-                               iterator->state != BT_SELF_COMPONENT_PORT_INPUT_MESSAGE_ITERATOR_STATE_FINALIZED) {
-                       BT_ASSERT_PRE_MSG("Message iterator is not being finalized or finalized: "
-                               "%!+i", iterator);
-                       ret = false;
-                       goto end;
-               }
-       }
-
-end:
-       return ret;
-}
-
 bt_bool bt_port_is_connected(const struct bt_port *port)
 {
        BT_ASSERT_PRE_NON_NULL(port, "Port");
This page took 0.025034 seconds and 4 git commands to generate.