connection.c: refuse to create a notif. iter. when the graph is canceled
[babeltrace.git] / include / babeltrace / graph / connection-internal.h
index 13e7d9ee65ad95aa0460819131a9e0dfb3b83347..fb4f668f36c040c8bfb62cf4da545239aa8f65df 100644 (file)
@@ -83,6 +83,13 @@ BT_HIDDEN
 void bt_connection_remove_iterator(struct bt_connection *conn,
                struct bt_notification_iterator *iterator);
 
+static inline
+struct bt_graph *bt_connection_borrow_graph(struct bt_connection *conn)
+{
+       assert(conn);
+       return (void *) conn->base.parent;
+}
+
 static inline
 enum bt_connection_status
 bt_connection_status_from_notification_iterator_status(
This page took 0.023742 seconds and 4 git commands to generate.