X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=include%2Fbabeltrace%2Fgraph%2Fconnection-internal.h;h=fb4f668f36c040c8bfb62cf4da545239aa8f65df;hb=c28d097c6679d7b46b79fd3b5bdf0853520f9740;hp=13e7d9ee65ad95aa0460819131a9e0dfb3b83347;hpb=43ca7dcce9754163ee737d07401c7f38089cf2e9;p=babeltrace.git diff --git a/include/babeltrace/graph/connection-internal.h b/include/babeltrace/graph/connection-internal.h index 13e7d9ee..fb4f668f 100644 --- a/include/babeltrace/graph/connection-internal.h +++ b/include/babeltrace/graph/connection-internal.h @@ -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(