7#ifndef BABELTRACE2_GRAPH_COMPONENT_DESCRIPTOR_SET_H
8#define BABELTRACE2_GRAPH_COMPONENT_DESCRIPTOR_SET_H
12#ifndef __BT_IN_BABELTRACE_H
13# error "Please include <babeltrace2/babeltrace.h> instead."
16#include <babeltrace2/types.h>
17#include <babeltrace2/logging.h>
140 const bt_value *params) __BT_NOEXCEPT;
187 void *initialize_method_data) __BT_NOEXCEPT;
249#define BT_COMPONENT_DESCRIPTOR_SET_PUT_REF_AND_RESET(_component_descriptor_set) \
251 bt_component_descriptor_set_put_ref(_component_descriptor_set); \
252 (_component_descriptor_set) = NULL; \
281#define BT_COMPONENT_DESCRIPTOR_SET_MOVE_REF(_dst, _src) \
283 bt_component_descriptor_set_put_ref(_dst); \
struct bt_component_class bt_component_class
Component class.
Definition types.h:25
bt_component_descriptor_set_add_descriptor_status
Status codes for bt_component_descriptor_set_add_descriptor() and bt_component_descriptor_set_add_des...
Definition component-descriptor-set.h:109
bt_component_descriptor_set_add_descriptor_status bt_component_descriptor_set_add_descriptor_with_initialize_method_data(bt_component_descriptor_set *component_descriptor_set, const bt_component_class *component_class, const bt_value *params, void *initialize_method_data)
Adds a descriptor of a component which would be an instance of the component class component_class,...
void bt_component_descriptor_set_get_ref(const bt_component_descriptor_set *component_descriptor_set)
Increments the reference count of the component descriptor set component_descriptor_set.
bt_component_descriptor_set * bt_component_descriptor_set_create(void)
Creates an empty component descriptor set.
void bt_component_descriptor_set_put_ref(const bt_component_descriptor_set *component_descriptor_set)
Decrements the reference count of the component descriptor set component_descriptor_set.
bt_component_descriptor_set_add_descriptor_status bt_component_descriptor_set_add_descriptor(bt_component_descriptor_set *component_descriptor_set, const bt_component_class *component_class, const bt_value *params)
Alias of bt_component_descriptor_set_add_descriptor_with_initialize_method_data() with the initialize...
struct bt_component_descriptor_set bt_component_descriptor_set
Component descriptor set.
Definition types.h:29
@ BT_COMPONENT_DESCRIPTOR_SET_ADD_DESCRIPTOR_STATUS_MEMORY_ERROR
Out of memory.
Definition component-descriptor-set.h:120
@ BT_COMPONENT_DESCRIPTOR_SET_ADD_DESCRIPTOR_STATUS_OK
Success.
Definition component-descriptor-set.h:114
struct bt_value bt_value
Value.
Definition types.h:93