1 #ifndef BABELTRACE2_TRACE_IR_EVENT_CLASS_H
2 #define BABELTRACE2_TRACE_IR_EVENT_CLASS_H
26 #ifndef __BT_IN_BABELTRACE_H
27 # error "Please include <babeltrace2/babeltrace.h> instead."
32 #include <babeltrace2/types.h>
1012 #define BT_EVENT_CLASS_PUT_REF_AND_RESET(_event_class) \
1014 bt_event_class_put_ref(_event_class); \
1015 (_event_class) = NULL; \
1043 #define BT_EVENT_CLASS_MOVE_REF(_dst, _src) \
1045 bt_event_class_put_ref(_dst); \
bt_value * bt_event_class_borrow_user_attributes(bt_event_class *event_class)
Borrows the user attributes of the event class event_class.
const bt_field_class * bt_event_class_borrow_specific_context_field_class_const(const bt_event_class *event_class)
Borrows the specific context field class from the event class event_class (const version).
void bt_event_class_get_ref(const bt_event_class *event_class)
Increments the reference count of the event class event_class.
Debugging-level message.
Definition: event-class.h:583
Warning conditions.
Definition: event-class.h:518
Out of memory.
Definition: event-class.h:724
Debugging information with function-level scope.
Definition: event-class.h:577
Critical conditions.
Definition: event-class.h:506
bt_event_class * bt_event_class_create_with_id(bt_stream_class *stream_class, uint64_t id)
Creates a default event class with the numeric ID id and adds it to the stream class stream_class...
void bt_event_class_set_log_level(bt_event_class *event_class, bt_event_class_log_level log_level)
Sets the log level of the event class event_class to log_level.
bt_event_class_set_field_class_status
Status codes for bt_event_class_set_payload_field_class() and bt_event_class_set_specific_context_fie...
Definition: event-class.h:713
bt_event_class_set_name_status
Status codes for bt_event_class_set_name().
Definition: event-class.h:418
bt_property_availability bt_event_class_get_log_level(const bt_event_class *event_class, bt_event_class_log_level *log_level)
Returns the log level of the event class event_class.
bt_event_class_set_emf_uri_status bt_event_class_set_emf_uri(bt_event_class *event_class, const char *emf_uri)
Sets the Eclipse Modeling Framework (EMF) URI of the event class event_class to a copy of emf_uri...
Debugging information with program-level scope (set of processes).
Definition: event-class.h:544
uint64_t bt_event_class_get_id(const bt_event_class *event_class)
Returns the numeric ID of the event class event_class.
bt_event_class_set_field_class_status bt_event_class_set_payload_field_class(bt_event_class *event_class, bt_field_class *field_class)
Sets the payload field class of the event class event_class to field_class.
Success.
Definition: event-class.h:423
struct bt_field_class bt_field_class
Field class.
Definition: types.h:54
bt_property_availability
Availability of an object's property.
Definition: types.h:173
Success.
Definition: event-class.h:644
const char * bt_event_class_get_name(const bt_event_class *event_class)
Returns the name of the event class event_class.
Normal, but significant, condition.
Definition: event-class.h:524
Error conditions.
Definition: event-class.h:512
const bt_value * bt_event_class_borrow_user_attributes_const(const bt_event_class *event_class)
Borrows the user attributes of the event class event_class (const version).
const bt_stream_class * bt_event_class_borrow_stream_class_const(const bt_event_class *event_class)
Borrows the stream class which contains the event class event_class (const version).
struct bt_value bt_value
Value.
Definition: types.h:107
struct bt_event_class bt_event_class
Event class.
Definition: types.h:51
Informational message.
Definition: event-class.h:530
bt_field_class * bt_event_class_borrow_payload_field_class(bt_event_class *event_class)
Borrows the payload field class from the event class event_class.
bt_event_class * bt_event_class_create(bt_stream_class *stream_class)
Creates a default event class and adds it to the stream class stream_class.
void bt_event_class_put_ref(const bt_event_class *event_class)
Decrements the reference count of the event class event_class.
Action must be taken immediately.
Definition: event-class.h:500
bt_field_class * bt_event_class_borrow_specific_context_field_class(bt_event_class *event_class)
Borrows the specific context field class from the event class event_class.
bt_stream_class * bt_event_class_borrow_stream_class(bt_event_class *event_class)
Borrows the stream class which contains the event class event_class.
Out of memory.
Definition: event-class.h:429
Success.
Definition: event-class.h:718
Debugging information with function-level scope.
Definition: event-class.h:571
const bt_field_class * bt_event_class_borrow_payload_field_class_const(const bt_event_class *event_class)
Borrows the payload field class from the event class event_class (const version). ...
Debugging information with process-level scope (set of modules).
Definition: event-class.h:551
void bt_event_class_set_user_attributes(bt_event_class *event_class, const bt_value *user_attributes)
Sets the user attributes of the event class event_class to user_attributes.
const char * bt_event_class_get_emf_uri(const bt_event_class *event_class)
Returns the Eclipse Modeling Framework (EMF) URI of the event class event_class.
bt_event_class_set_emf_uri_status
Status codes for bt_event_class_set_emf_uri().
Definition: event-class.h:639
Debugging information with module (executable/library) scope (set of units).
Definition: event-class.h:558
bt_event_class_set_field_class_status bt_event_class_set_specific_context_field_class(bt_event_class *event_class, bt_field_class *field_class)
Sets the specific context field class of the event class event_class to field_class.
Debugging information with compilation unit scope (set of functions).
Definition: event-class.h:565
bt_event_class_log_level
Event class log level enumerators.
Definition: event-class.h:489
bt_event_class_set_name_status bt_event_class_set_name(bt_event_class *event_class, const char *name)
Sets the name of the event class event_class to a copy of name.
struct bt_stream_class bt_stream_class
Stream class.
Definition: types.h:104
System is unusable.
Definition: event-class.h:494
Debugging information with system-level scope (set of programs).
Definition: event-class.h:537
Out of memory.
Definition: event-class.h:650