Add internal bt_component_borrow_graph()
[babeltrace.git] / include / babeltrace / graph / component-internal.h
index d9fae8f0bd4874614e8034903817a5485f5f7155..d67dd54f0dd930a79b3330ec2951a7015fe3cf33 100644 (file)
@@ -80,6 +80,13 @@ struct bt_private_component *bt_private_component_from_component(
        return (void *) component;
 }
 
+static inline
+struct bt_graph *bt_component_borrow_graph(struct bt_component *comp)
+{
+       assert(comp);
+       return (void *) comp->base.parent;
+}
+
 BT_HIDDEN
 enum bt_component_status bt_component_accept_port_connection(
                struct bt_component *component, struct bt_port *self_port,
This page took 0.022783 seconds and 4 git commands to generate.