7#ifndef BABELTRACE2_GRAPH_COMPONENT_CLASS_H
8#define BABELTRACE2_GRAPH_COMPONENT_CLASS_H
12#ifndef __BT_IN_BABELTRACE_H
13# error "Please include <babeltrace2/babeltrace.h> instead."
16#include <babeltrace2/types.h>
449#define BT_COMPONENT_CLASS_PUT_REF_AND_RESET(_component_class) \
451 bt_component_class_put_ref(_component_class); \
452 (_component_class) = NULL; \
482#define BT_COMPONENT_CLASS_MOVE_REF(_dst, _src) \
484 bt_component_class_put_ref(_dst); \
577#define BT_COMPONENT_CLASS_SOURCE_PUT_REF_AND_RESET(_component_class) \
579 bt_component_class_source_put_ref(_component_class); \
580 (_component_class) = NULL; \
609#define BT_COMPONENT_CLASS_SOURCE_MOVE_REF(_dst, _src) \
611 bt_component_class_source_put_ref(_dst); \
704#define BT_COMPONENT_CLASS_FILTER_PUT_REF_AND_RESET(_component_class) \
706 bt_component_class_filter_put_ref(_component_class); \
707 (_component_class) = NULL; \
736#define BT_COMPONENT_CLASS_FILTER_MOVE_REF(_dst, _src) \
738 bt_component_class_filter_put_ref(_dst); \
831#define BT_COMPONENT_CLASS_SINK_PUT_REF_AND_RESET(_component_class) \
833 bt_component_class_sink_put_ref(_component_class); \
834 (_component_class) = NULL; \
863#define BT_COMPONENT_CLASS_SINK_MOVE_REF(_dst, _src) \
865 bt_component_class_sink_put_ref(_dst); \
int bt_bool
Babeltrace 2 boolean type.
Definition types.h:126
const char * bt_component_class_get_description(const bt_component_class *component_class)
Returns the description of the component class component_class.
const char * bt_component_class_get_name(const bt_component_class *component_class)
Returns the name of the component class component_class.
bt_component_class_type
Component class type enumerators.
Definition component-class.h:202
void bt_component_class_sink_get_ref(const bt_component_class_sink *component_class)
Increments the reference count of the sink component class component_class.
struct bt_component_class_sink bt_component_class_sink
Sink component class.
Definition types.h:27
static bt_bool bt_component_class_is_sink(const bt_component_class *component_class)
Returns whether or not the component class component_class is a sink component class.
Definition component-class.h:310
void bt_component_class_source_get_ref(const bt_component_class_source *component_class)
Increments the reference count of the source component class component_class.
bt_component_class_type bt_component_class_get_type(const bt_component_class *component_class)
Returns the type enumerator of the component class component_class.
void bt_component_class_filter_put_ref(const bt_component_class_filter *component_class)
Decrements the reference count of the filter component class component_class.
static const bt_component_class * bt_component_class_source_as_component_class_const(const bt_component_class_source *component_class)
Upcasts the source component class component_class to the common bt_component_class type.
Definition component-class.h:513
void bt_component_class_sink_put_ref(const bt_component_class_sink *component_class)
Decrements the reference count of the sink component class component_class.
void bt_component_class_filter_get_ref(const bt_component_class_filter *component_class)
Increments the reference count of the filter component class component_class.
void bt_component_class_get_ref(const bt_component_class *component_class)
Increments the reference count of the component class component_class.
void bt_component_class_source_put_ref(const bt_component_class_source *component_class)
Decrements the reference count of the source component class component_class.
static const bt_component_class * bt_component_class_sink_as_component_class_const(const bt_component_class_sink *component_class)
Upcasts the sink component class component_class to the common bt_component_class type.
Definition component-class.h:767
struct bt_component_class_source bt_component_class_source
Source component class.
Definition types.h:28
const char * bt_component_class_get_help(const bt_component_class *component_class)
Returns the help text of the component class component_class.
void bt_component_class_put_ref(const bt_component_class *component_class)
Decrements the reference count of the component class component_class.
static bt_bool bt_component_class_is_filter(const bt_component_class *component_class)
Returns whether or not the component class component_class is a filter component class.
Definition component-class.h:286
struct bt_component_class_filter bt_component_class_filter
Filter component class.
Definition types.h:26
static bt_bool bt_component_class_is_source(const bt_component_class *component_class)
Returns whether or not the component class component_class is a source component class.
Definition component-class.h:262
struct bt_component_class bt_component_class
Component class.
Definition types.h:25
static const bt_component_class * bt_component_class_filter_as_component_class_const(const bt_component_class_filter *component_class)
Upcasts the filter component class component_class to the common bt_component_class type.
Definition component-class.h:640
@ BT_COMPONENT_CLASS_TYPE_FILTER
Filter component class.
Definition component-class.h:213
@ BT_COMPONENT_CLASS_TYPE_SOURCE
Source component class.
Definition component-class.h:207
@ BT_COMPONENT_CLASS_TYPE_SINK
Sink component class.
Definition component-class.h:219