int valid;
};
-BT_HIDDEN
bt_ctf_bool bt_ctf_trace_common_has_clock_class(struct bt_ctf_trace_common *trace,
struct bt_ctf_clock_class *clock_class);
-BT_HIDDEN
int bt_ctf_trace_common_initialize(struct bt_ctf_trace_common *trace,
bt_ctf_object_release_func release_func);
-BT_HIDDEN
void bt_ctf_trace_common_finalize(struct bt_ctf_trace_common *trace);
static inline
return trace->name ? trace->name->str : NULL;
}
-BT_HIDDEN
int bt_ctf_trace_common_set_name(struct bt_ctf_trace_common *trace, const char *name);
static inline
return trace->uuid_set ? trace->uuid : NULL;
}
-BT_HIDDEN
int bt_ctf_trace_common_set_uuid(struct bt_ctf_trace_common *trace, const uint8_t *uuid);
-BT_HIDDEN
int bt_ctf_trace_common_set_environment_field(struct bt_ctf_trace_common *trace,
const char *name, struct bt_ctf_private_value *value);
-BT_HIDDEN
int bt_ctf_trace_common_set_environment_field_string(struct bt_ctf_trace_common *trace,
const char *name, const char *value);
-BT_HIDDEN
int bt_ctf_trace_common_set_environment_field_integer(struct bt_ctf_trace_common *trace,
const char *name, int64_t value);
name);
}
-BT_HIDDEN
int bt_ctf_trace_common_add_clock_class(struct bt_ctf_trace_common *trace,
struct bt_ctf_clock_class *clock_class);
return trace->native_byte_order;
}
-BT_HIDDEN
int bt_ctf_trace_common_set_native_byte_order(struct bt_ctf_trace_common *trace,
enum bt_ctf_byte_order byte_order, bool allow_unspecified);
return trace->packet_header_field_type;
}
-BT_HIDDEN
int bt_ctf_trace_common_set_packet_header_field_type(struct bt_ctf_trace_common *trace,
struct bt_ctf_field_type_common *packet_header_field_type);
trace->frozen = 1;
}
-BT_HIDDEN
int bt_ctf_trace_common_add_stream_class(struct bt_ctf_trace_common *trace,
struct bt_ctf_stream_class_common *stream_class,
bt_ctf_validation_flag_copy_field_type_func copy_field_type_func,
*
* Returns the metadata string on success, NULL on error.
*/
-BT_HIDDEN
char *bt_ctf_trace_get_metadata_string(struct bt_ctf_trace *trace);
-BT_HIDDEN
struct bt_ctf_trace *bt_ctf_trace_create(void);
-BT_HIDDEN
int64_t bt_ctf_trace_get_clock_class_count(
struct bt_ctf_trace *trace);
-BT_HIDDEN
struct bt_ctf_clock_class *bt_ctf_trace_get_clock_class_by_index(
struct bt_ctf_trace *trace, uint64_t index);
-BT_HIDDEN
struct bt_ctf_clock_class *bt_ctf_trace_get_clock_class_by_name(
struct bt_ctf_trace *trace, const char *name);
-BT_HIDDEN
int bt_ctf_trace_add_clock_class(struct bt_ctf_trace *trace,
struct bt_ctf_clock_class *clock_class);
-BT_HIDDEN
int64_t bt_ctf_trace_get_environment_field_count(
struct bt_ctf_trace *trace);
-BT_HIDDEN
const char *bt_ctf_trace_get_environment_field_name_by_index(
struct bt_ctf_trace *trace, uint64_t index);
-BT_HIDDEN
struct bt_ctf_value *
bt_ctf_trace_get_environment_field_value_by_index(struct bt_ctf_trace *trace,
uint64_t index);
-BT_HIDDEN
struct bt_ctf_value *
bt_ctf_trace_get_environment_field_value_by_name(
struct bt_ctf_trace *trace, const char *name);
-BT_HIDDEN
int bt_ctf_trace_visit(struct bt_ctf_trace *trace,
bt_ctf_visitor visitor, void *data);