#define DEFAULT_IDENTIFIER_SIZE 128
#define DEFAULT_METADATA_STRING_SIZE 4096
-BT_HIDDEN
int bt_ctf_trace_common_initialize(struct bt_ctf_trace_common *trace,
bt_ctf_object_release_func release_func)
{
return ret;
}
-BT_HIDDEN
void bt_ctf_trace_common_finalize(struct bt_ctf_trace_common *trace)
{
BT_LOGD("Finalizing common trace object: addr=%p, name=\"%s\"",
bt_ctf_object_put_ref(trace->packet_header_field_type);
}
-BT_HIDDEN
int bt_ctf_trace_common_set_name(struct bt_ctf_trace_common *trace, const char *name)
{
int ret = 0;
return ret;
}
-BT_HIDDEN
int bt_ctf_trace_common_set_uuid(struct bt_ctf_trace_common *trace,
const uint8_t *uuid)
{
return ret;
}
-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)
{
return ret;
}
-BT_HIDDEN
int bt_ctf_trace_common_set_environment_field_string(struct bt_ctf_trace_common *trace,
const char *name, const char *value)
{
return ret;
}
-BT_HIDDEN
int bt_ctf_trace_common_set_environment_field_integer(
struct bt_ctf_trace_common *trace, const char *name, int64_t value)
{
return ret;
}
-BT_HIDDEN
int bt_ctf_trace_common_add_clock_class(struct bt_ctf_trace_common *trace,
struct bt_ctf_clock_class *clock_class)
{
return ret;
}
-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,
return ret;
}
-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)
{
return query.found;
}
-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 ret;
}
-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_type)
{
g_free(trace);
}
-BT_HIDDEN
struct bt_ctf_trace *bt_ctf_trace_create(void)
{
struct bt_ctf_trace *trace = NULL;
return trace;
}
+BT_EXPORT
const uint8_t *bt_ctf_trace_get_uuid(struct bt_ctf_trace *trace)
{
return bt_ctf_trace_common_get_uuid(BT_CTF_TO_COMMON(trace));
}
+BT_EXPORT
int bt_ctf_trace_set_uuid(struct bt_ctf_trace *trace,
const uint8_t *uuid)
{
return bt_ctf_trace_common_set_uuid(BT_CTF_TO_COMMON(trace), uuid);
}
+BT_EXPORT
int bt_ctf_trace_set_environment_field_string(struct bt_ctf_trace *trace,
const char *name, const char *value)
{
name, value);
}
+BT_EXPORT
int bt_ctf_trace_set_environment_field_integer(
struct bt_ctf_trace *trace, const char *name, int64_t value)
{
BT_CTF_TO_COMMON(trace), name));
}
-BT_HIDDEN
int bt_ctf_trace_add_clock_class(struct bt_ctf_trace *trace,
struct bt_ctf_clock_class *clock_class)
{
(void *) clock_class);
}
-BT_HIDDEN
int64_t bt_ctf_trace_get_clock_class_count(struct bt_ctf_trace *trace)
{
return bt_ctf_trace_common_get_clock_class_count(BT_CTF_TO_COMMON(trace));
}
-BT_HIDDEN
struct bt_ctf_clock_class *bt_ctf_trace_get_clock_class_by_index(
struct bt_ctf_trace *trace, uint64_t index)
{
return ret;
}
+BT_EXPORT
int bt_ctf_trace_add_stream_class(struct bt_ctf_trace *trace,
struct bt_ctf_stream_class *stream_class)
{
return ret;
}
+BT_EXPORT
int64_t bt_ctf_trace_get_stream_count(struct bt_ctf_trace *trace)
{
return bt_ctf_trace_common_get_stream_count(BT_CTF_TO_COMMON(trace));
}
+BT_EXPORT
struct bt_ctf_stream *bt_ctf_trace_get_stream_by_index(
struct bt_ctf_trace *trace, uint64_t index)
{
BT_CTF_TO_COMMON(trace), index));
}
+BT_EXPORT
int64_t bt_ctf_trace_get_stream_class_count(struct bt_ctf_trace *trace)
{
return bt_ctf_trace_common_get_stream_class_count(BT_CTF_TO_COMMON(trace));
}
+BT_EXPORT
struct bt_ctf_stream_class *bt_ctf_trace_get_stream_class_by_index(
struct bt_ctf_trace *trace, uint64_t index)
{
BT_CTF_TO_COMMON(trace), index));
}
+BT_EXPORT
struct bt_ctf_stream_class *bt_ctf_trace_get_stream_class_by_id(
struct bt_ctf_trace *trace, uint64_t id)
{
BT_CTF_TO_COMMON(trace), id));
}
-BT_HIDDEN
struct bt_ctf_clock_class *bt_ctf_trace_get_clock_class_by_name(
struct bt_ctf_trace *trace, const char *name)
{
return metadata;
}
+BT_EXPORT
enum bt_ctf_byte_order bt_ctf_trace_get_native_byte_order(
struct bt_ctf_trace *trace)
{
return (int) bt_ctf_trace_common_get_native_byte_order(BT_CTF_TO_COMMON(trace));
}
+BT_EXPORT
int bt_ctf_trace_set_native_byte_order(struct bt_ctf_trace *trace,
enum bt_ctf_byte_order byte_order)
{
(int) byte_order, false);
}
+BT_EXPORT
struct bt_ctf_field_type *bt_ctf_trace_get_packet_header_field_type(
struct bt_ctf_trace *trace)
{
BT_CTF_TO_COMMON(trace)));
}
+BT_EXPORT
int bt_ctf_trace_set_packet_header_field_type(struct bt_ctf_trace *trace,
struct bt_ctf_field_type *packet_header_type)
{
(void *) packet_header_type);
}
+BT_EXPORT
const char *bt_ctf_trace_get_name(struct bt_ctf_trace *trace)
{
return bt_ctf_trace_common_get_name(BT_CTF_TO_COMMON(trace));