* SOFTWARE.
*/
+#include <babeltrace/component/component-class.h>
#include <babeltrace/component/notification/iterator.h>
#include <babeltrace/values.h>
#include <stdio.h>
extern "C" {
#endif
+struct bt_component_class;
+struct bt_component_graph;
+struct bt_component;
+struct bt_value;
+
/**
* Status code. Errors are always negative.
*/
BT_COMPONENT_STATUS_INVALID = -3,
/** Memory allocation failure. */
BT_COMPONENT_STATUS_NOMEM = -4,
+ /** Element not found. */
+ BT_COMPONENT_STATUS_NOT_FOUND = -5,
};
-struct bt_component_class;
-struct bt_component;
-struct bt_value;
-
/**
* Create an instance of a component from a component class.
*
struct bt_component_class *component_class, const char *name,
struct bt_value *params);
+extern struct bt_component *bt_component_create_with_init_method_data(
+ struct bt_component_class *component_class, const char *name,
+ struct bt_value *params, void *init_method_data);
+
/**
* Get a component's private data.
*
extern enum bt_component_class_type bt_component_get_class_type(
struct bt_component *component);
+extern struct bt_graph *bt_component_get_graph(struct bt_component *component);
+
#ifdef __cplusplus
}
#endif