Rename bt_X_from_private_X() -> bt_X_from_private()
[babeltrace.git] / include / babeltrace / graph / component-internal.h
index f78c468b079ff69d3e5aea0522449e8565ffca42..8d3f73a91abd66aebbfc204b9a5e249338e5e83c 100644 (file)
@@ -64,10 +64,12 @@ struct bt_component {
 
        /* Array of struct bt_component_destroy_listener */
        GArray *destroy_listeners;
+
+       bool initialized;
 };
 
 static inline
-struct bt_component *bt_component_from_private(
+struct bt_component *bt_component_borrow_from_private(
                struct bt_private_component *private_component)
 {
        return (void *) private_component;
@@ -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.026305 seconds and 4 git commands to generate.