Babeltrace 2 C API 2.1.0
Open-source trace manipulation framework
Loading...
Searching...
No Matches
component-descriptor-set.h
1/*
2 * SPDX-License-Identifier: MIT
3 *
4 * Copyright (C) 2010-2019 EfficiOS Inc. and Linux Foundation
5 */
6
7#ifndef BABELTRACE2_GRAPH_COMPONENT_DESCRIPTOR_SET_H
8#define BABELTRACE2_GRAPH_COMPONENT_DESCRIPTOR_SET_H
9
10/* IWYU pragma: private, include <babeltrace2/babeltrace.h> */
11
12#ifndef __BT_IN_BABELTRACE_H
13# error "Please include <babeltrace2/babeltrace.h> instead."
14#endif
15
16#include <babeltrace2/types.h>
17#include <babeltrace2/logging.h>
18
19#ifdef __cplusplus
20extern "C" {
21#endif
22
101 __BT_NOEXCEPT;
102
122
138 bt_component_descriptor_set *component_descriptor_set,
139 const bt_component_class *component_class,
140 const bt_value *params) __BT_NOEXCEPT;
141
184 bt_component_descriptor_set *component_descriptor_set,
185 const bt_component_class *component_class,
186 const bt_value *params,
187 void *initialize_method_data) __BT_NOEXCEPT;
188
212 const bt_component_descriptor_set *component_descriptor_set)
213 __BT_NOEXCEPT;
214
231 const bt_component_descriptor_set *component_descriptor_set)
232 __BT_NOEXCEPT;
233
249#define BT_COMPONENT_DESCRIPTOR_SET_PUT_REF_AND_RESET(_component_descriptor_set) \
250 do { \
251 bt_component_descriptor_set_put_ref(_component_descriptor_set); \
252 (_component_descriptor_set) = NULL; \
253 } while (0)
254
281#define BT_COMPONENT_DESCRIPTOR_SET_MOVE_REF(_dst, _src) \
282 do { \
283 bt_component_descriptor_set_put_ref(_dst); \
284 (_dst) = (_src); \
285 (_src) = NULL; \
286 } while (0)
287
292#ifdef __cplusplus
293}
294#endif
295
296#endif /* BABELTRACE2_GRAPH_COMPONENT_DESCRIPTOR_SET_H */
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