1#ifndef BABELTRACE2_TRACE_IR_STREAM_CLASS_H
2#define BABELTRACE2_TRACE_IR_STREAM_CLASS_H
26#ifndef __BT_IN_BABELTRACE_H
27# error "Please include <babeltrace2/babeltrace.h> instead."
32#include <babeltrace2/types.h>
1235 bt_bool assigns_automatic_event_class_id);
1367 bt_bool with_beginning_default_clock_snapshot,
1368 bt_bool with_end_default_clock_snapshot);
1494 bt_bool supports_discarded_events,
1495 bt_bool with_default_clock_snapshots);
1599 bt_bool supports_discarded_packets,
1600 bt_bool with_default_clock_snapshots);
1780#define BT_STREAM_CLASS_PUT_REF_AND_RESET(_stream_class) \
1782 bt_stream_class_put_ref(_stream_class); \
1783 (_stream_class) = NULL; \
1811#define BT_STREAM_CLASS_MOVE_REF(_dst, _src) \
1813 bt_stream_class_put_ref(_dst); \
int bt_bool
Babeltrace 2 boolean type.
Definition types.h:140
struct bt_clock_class bt_clock_class
Clock class.
Definition types.h:36
struct bt_event_class bt_event_class
Event class.
Definition types.h:51
struct bt_field_class bt_field_class
Field class.
Definition types.h:54
bt_stream_class_set_default_clock_class_status bt_stream_class_set_default_clock_class(bt_stream_class *stream_class, bt_clock_class *clock_class)
Sets the default clock class of the stream class stream_class to clock_class.
const bt_value * bt_stream_class_borrow_user_attributes_const(const bt_stream_class *stream_class)
Borrows the user attributes of the stream class stream_class (const version).
bt_bool bt_stream_class_assigns_automatic_stream_id(const bt_stream_class *stream_class)
Returns whether or not the stream class stream_class automatically assigns a numeric ID to a stream y...
bt_field_class * bt_stream_class_borrow_event_common_context_field_class(bt_stream_class *stream_class)
Borrows the event common context field class from the stream class stream_class.
void bt_stream_class_set_assigns_automatic_stream_id(bt_stream_class *stream_class, bt_bool assigns_automatic_stream_id)
Sets whether or not the stream class stream_class automatically assigns a numeric ID to a stream you ...
bt_stream_class_set_name_status
Status codes for bt_stream_class_set_name().
Definition stream-class.h:858
struct bt_stream_class bt_stream_class
Stream class.
Definition types.h:104
bt_stream_class_set_field_class_status
Status codes for bt_stream_class_set_packet_context_field_class() and bt_stream_class_set_event_commo...
Definition stream-class.h:1013
bt_bool bt_stream_class_supports_packets(const bt_stream_class *stream_class)
Returns whether or not the instances (streams) of the stream class stream_class have packets.
bt_event_class * bt_stream_class_borrow_event_class_by_index(bt_stream_class *stream_class, uint64_t index)
Borrows the event class at index index from the stream class stream_class.
bt_bool bt_stream_class_discarded_events_have_default_clock_snapshots(const bt_stream_class *stream_class)
Returns whether or not the discarded events messages of the instances (streams) of the stream class s...
const bt_event_class * bt_stream_class_borrow_event_class_by_index_const(const bt_stream_class *stream_class, uint64_t index)
Borrows the event class at index index from the stream class stream_class (const version).
bt_clock_class * bt_stream_class_borrow_default_clock_class(bt_stream_class *stream_class)
Borrows the default clock class from the stream class stream_class.
bt_stream_class_set_name_status bt_stream_class_set_name(bt_stream_class *stream_class, const char *name)
Sets the name of the stream class stream_class to a copy of name.
void bt_stream_class_get_ref(const bt_stream_class *stream_class)
Increments the reference count of the stream class stream_class.
void bt_stream_class_set_user_attributes(bt_stream_class *stream_class, const bt_value *user_attributes)
Sets the user attributes of the stream class stream_class to user_attributes.
bt_event_class * bt_stream_class_borrow_event_class_by_id(bt_stream_class *stream_class, uint64_t id)
Borrows the event class having the numeric ID id from the stream class stream_class.
const bt_trace_class * bt_stream_class_borrow_trace_class_const(const bt_stream_class *stream_class)
Borrows the trace class which contains the stream class stream_class (const version).
void bt_stream_class_set_assigns_automatic_event_class_id(bt_stream_class *stream_class, bt_bool assigns_automatic_event_class_id)
Sets whether or not the stream class stream_class automatically assigns a numeric ID to an event clas...
bt_value * bt_stream_class_borrow_user_attributes(bt_stream_class *stream_class)
Borrows the user attributes of the stream class stream_class.
bt_field_class * bt_stream_class_borrow_packet_context_field_class(bt_stream_class *stream_class)
Borrows the packet context field class from the stream class stream_class.
bt_stream_class_set_field_class_status bt_stream_class_set_packet_context_field_class(bt_stream_class *stream_class, bt_field_class *field_class)
Sets the packet context field class of the stream class stream_class to field_class.
bt_bool bt_stream_class_packets_have_beginning_default_clock_snapshot(const bt_stream_class *stream_class)
Returns whether or not the packets of the instances (streams) of the stream class stream_class have a...
bt_stream_class * bt_stream_class_create_with_id(bt_trace_class *trace_class, uint64_t id)
Creates a default stream class with the numeric ID id and adds it to the trace class trace_class.
bt_stream_class * bt_stream_class_create(bt_trace_class *trace_class)
Creates a default stream class and adds it to the trace class trace_class.
bt_stream_class_set_field_class_status bt_stream_class_set_event_common_context_field_class(bt_stream_class *stream_class, bt_field_class *field_class)
Sets the event common context field class of the stream class stream_class to field_class.
bt_bool bt_stream_class_supports_discarded_events(const bt_stream_class *stream_class)
Returns whether or not the instances (streams) of the stream class stream_class can have discarded ev...
const bt_field_class * bt_stream_class_borrow_event_common_context_field_class_const(const bt_stream_class *stream_class)
Borrows the event common context field class from the stream class stream_class (const version()).
bt_bool bt_stream_class_supports_discarded_packets(const bt_stream_class *stream_class)
Returns whether or not the instances (streams) of the stream class stream_class can have discarded pa...
void bt_stream_class_set_supports_packets(bt_stream_class *stream_class, bt_bool supports_packets, bt_bool with_beginning_default_clock_snapshot, bt_bool with_end_default_clock_snapshot)
Sets whether or not the instances (streams) of the stream class stream_class have packets and,...
uint64_t bt_stream_class_get_id(const bt_stream_class *stream_class)
Returns the numeric ID of the stream class stream_class.
const char * bt_stream_class_get_name(const bt_stream_class *stream_class)
Returns the name of the stream class stream_class.
bt_bool bt_stream_class_assigns_automatic_event_class_id(const bt_stream_class *stream_class)
Returns whether or not the stream class stream_class automatically assigns a numeric ID to an event c...
const bt_field_class * bt_stream_class_borrow_packet_context_field_class_const(const bt_stream_class *stream_class)
Borrows the packet context field class from the stream class stream_class (const version).
uint64_t bt_stream_class_get_event_class_count(const bt_stream_class *stream_class)
Returns the number of event classes contained in the stream class stream_class.
bt_bool bt_stream_class_discarded_packets_have_default_clock_snapshots(const bt_stream_class *stream_class)
Returns whether or not the discarded packets messages of the instances (streams) of the stream class ...
const bt_clock_class * bt_stream_class_borrow_default_clock_class_const(const bt_stream_class *stream_class)
Borrows the default clock class from the stream class stream_class (const version).
void bt_stream_class_set_supports_discarded_packets(bt_stream_class *stream_class, bt_bool supports_discarded_packets, bt_bool with_default_clock_snapshots)
Sets whether or not the instances (streams) of the stream class stream_class can have discarded packe...
const bt_event_class * bt_stream_class_borrow_event_class_by_id_const(const bt_stream_class *stream_class, uint64_t id)
Borrows the event class having the numeric ID id from the stream class stream_class (const version).
void bt_stream_class_set_supports_discarded_events(bt_stream_class *stream_class, bt_bool supports_discarded_events, bt_bool with_default_clock_snapshots)
Sets whether or not the instances (streams) of the stream class stream_class can have discarded event...
bt_trace_class * bt_stream_class_borrow_trace_class(bt_stream_class *stream_class)
Borrows the trace class which contains the stream class stream_class.
bt_bool bt_stream_class_packets_have_end_default_clock_snapshot(const bt_stream_class *stream_class)
Returns whether or not the packets of the instances (streams) of the stream class stream_class have a...
void bt_stream_class_put_ref(const bt_stream_class *stream_class)
Decrements the reference count of the stream class stream_class.
bt_stream_class_set_default_clock_class_status
Status codes for bt_stream_class_set_default_clock_class().
Definition stream-class.h:930
@ BT_STREAM_CLASS_SET_NAME_STATUS_OK
Success.
Definition stream-class.h:863
@ BT_STREAM_CLASS_SET_NAME_STATUS_MEMORY_ERROR
Out of memory.
Definition stream-class.h:869
@ BT_STREAM_CLASS_SET_FIELD_CLASS_STATUS_MEMORY_ERROR
Out of memory.
Definition stream-class.h:1024
@ BT_STREAM_CLASS_SET_FIELD_CLASS_STATUS_OK
Success.
Definition stream-class.h:1018
@ BT_STREAM_CLASS_SET_DEFAULT_CLOCK_CLASS_STATUS_OK
Success.
Definition stream-class.h:935
struct bt_trace_class bt_trace_class
Trace class.
Definition types.h:106
struct bt_value bt_value
Value.
Definition types.h:107