Add bt_graph_add_component(), make bt_component_create() internal
[babeltrace.git] / include / babeltrace / graph / component-internal.h
index f78c468b079ff69d3e5aea0522449e8565ffca42..35a353a1ba7be28abc8974c05535e801a9a3a11a 100644 (file)
@@ -64,6 +64,8 @@ struct bt_component {
 
        /* Array of struct bt_component_destroy_listener */
        GArray *destroy_listeners;
+
+       bool initialized;
 };
 
 static inline
@@ -87,6 +89,11 @@ struct bt_graph *bt_component_borrow_graph(struct bt_component *comp)
        return (void *) comp->base.parent;
 }
 
+BT_HIDDEN
+enum bt_component_status bt_component_create(
+               struct bt_component_class *component_class,
+               const char *name, struct bt_component **component);
+
 BT_HIDDEN
 enum bt_component_status bt_component_accept_port_connection(
                struct bt_component *component, struct bt_port *self_port,
This page took 0.024217 seconds and 4 git commands to generate.