Add internal bt_component_borrow_graph()
[babeltrace.git] / include / babeltrace / graph / component-internal.h
index 29ff325b33d75b68185b46f3e160e38dec191052..d67dd54f0dd930a79b3330ec2951a7015fe3cf33 100644 (file)
@@ -58,12 +58,6 @@ struct bt_component {
        /* User-defined data */
        void *user_data;
 
-       /*
-        * Used to protect operations which may only be used during
-        * a component's initialization.
-        */
-       bt_bool initializing;
-
        /* Input and output ports (weak references) */
        GPtrArray *input_ports;
        GPtrArray *output_ports;
@@ -86,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.024436 seconds and 4 git commands to generate.