-#ifndef BABELTRACE_COMPONENT_CONNECTION_INTERNAL_H
-#define BABELTRACE_COMPONENT_CONNECTION_INTERNAL_H
+#ifndef BABELTRACE_GRAPH_CONNECTION_INTERNAL_H
+#define BABELTRACE_GRAPH_CONNECTION_INTERNAL_H
/*
* BabelTrace - Component Connection Internal
#include <babeltrace/graph/notification-iterator-internal.h>
#include <babeltrace/graph/private-connection.h>
#include <babeltrace/object-internal.h>
+#include <babeltrace/assert-internal.h>
#include <stdbool.h>
struct bt_graph;
* created on this connection.
*/
GPtrArray *iterators;
-};
-static inline
-struct bt_connection *bt_connection_borrow_from_private(
- struct bt_private_connection *private_connection)
-{
- return (void *) private_connection;
-}
+ bool notified_upstream_port_connected;
+ bool notified_downstream_port_connected;
+ bool notified_graph_ports_connected;
+};
static inline
struct bt_private_connection *bt_private_connection_from_connection(
static inline
struct bt_graph *bt_connection_borrow_graph(struct bt_connection *conn)
{
- assert(conn);
+ BT_ASSERT(conn);
return (void *) conn->base.parent;
}
}
}
-#endif /* BABELTRACE_COMPONENT_CONNECTION_INTERNAL_H */
+#endif /* BABELTRACE_GRAPH_CONNECTION_INTERNAL_H */