void *data;
};
+struct bt_graph;
+
struct bt_component {
struct bt_object base;
struct bt_component_class *class;
return (void *) component;
}
+static inline
+struct bt_graph *bt_component_borrow_graph(struct bt_component *comp)
+{
+ BT_ASSERT(comp);
+ return (void *) bt_object_borrow_parent(&comp->base);
+}
+
BT_HIDDEN
enum bt_component_status bt_component_create(
struct bt_component_class *component_class,