Component creation
[babeltrace.git] / include / babeltrace / plugin / component.h
index 87263f08c4c3e3cc90a0618c754a8d4f8b0573bd..d8cbaa6fa737efbdd455ce798798f6c03d7dbd8e 100644 (file)
@@ -56,6 +56,17 @@ enum bt_component_status {
 
 struct bt_component;
 
+
+/**
+ * Create an instance of a component from a component class.
+ *
+ * @param component_class      Component class of which to create an instance
+ * @param name                 Name of the new component instance, optional
+ * @returns                    Returns a pointer to a new component instance
+ */
+extern struct bt_component *bt_component_create(
+               struct bt_component_class *component_class, const char *name);
+
 /**
  * Get component's name.
  *
This page took 0.02276 seconds and 4 git commands to generate.