g_free(trace);
}
+BT_EXPORT
struct bt_trace *bt_trace_create(struct bt_trace_class *tc)
{
struct bt_trace *trace = NULL;
return trace;
}
+BT_EXPORT
const char *bt_trace_get_name(const struct bt_trace *trace)
{
BT_ASSERT_PRE_DEV_TRACE_NON_NULL(trace);
return trace->name.value;
}
+BT_EXPORT
enum bt_trace_set_name_status bt_trace_set_name(struct bt_trace *trace,
const char *name)
{
return BT_FUNC_STATUS_OK;
}
+BT_EXPORT
bt_uuid bt_trace_get_uuid(const struct bt_trace *trace)
{
BT_ASSERT_PRE_DEV_TRACE_NON_NULL(trace);
return trace->uuid.value;
}
+BT_EXPORT
void bt_trace_set_uuid(struct bt_trace *trace, bt_uuid uuid)
{
BT_ASSERT_PRE_TRACE_NON_NULL(trace);
return ret;
}
+BT_EXPORT
enum bt_trace_set_environment_entry_status
bt_trace_set_environment_entry_string(
struct bt_trace *trace, const char *name, const char *value)
return ret;
}
+BT_EXPORT
enum bt_trace_set_environment_entry_status
bt_trace_set_environment_entry_integer(
struct bt_trace *trace, const char *name, int64_t value)
return ret;
}
+BT_EXPORT
uint64_t bt_trace_get_environment_entry_count(const struct bt_trace *trace)
{
BT_ASSERT_PRE_DEV_TRACE_NON_NULL(trace);
return bt_attributes_get_count(trace->environment);
}
+BT_EXPORT
void bt_trace_borrow_environment_entry_by_index_const(
const struct bt_trace *trace, uint64_t index,
const char **name, const struct bt_value **value)
BT_ASSERT(*name);
}
+BT_EXPORT
const struct bt_value *bt_trace_borrow_environment_entry_value_by_name_const(
const struct bt_trace *trace, const char *name)
{
name);
}
+BT_EXPORT
uint64_t bt_trace_get_stream_count(const struct bt_trace *trace)
{
BT_ASSERT_PRE_DEV_TRACE_NON_NULL(trace);
return (uint64_t) trace->streams->len;
}
+BT_EXPORT
struct bt_stream *bt_trace_borrow_stream_by_index(
struct bt_trace *trace, uint64_t index)
{
return g_ptr_array_index(trace->streams, index);
}
+BT_EXPORT
const struct bt_stream *bt_trace_borrow_stream_by_index_const(
const struct bt_trace *trace, uint64_t index)
{
return bt_trace_borrow_stream_by_index((void *) trace, index);
}
+BT_EXPORT
struct bt_stream *bt_trace_borrow_stream_by_id(struct bt_trace *trace,
uint64_t id)
{
return stream;
}
+BT_EXPORT
const struct bt_stream *bt_trace_borrow_stream_by_id_const(
const struct bt_trace *trace, uint64_t id)
{
return bt_trace_borrow_stream_by_id((void *) trace, id);
}
+BT_EXPORT
enum bt_trace_add_listener_status bt_trace_add_destruction_listener(
const struct bt_trace *c_trace,
bt_trace_destruction_listener_func listener,
listener_id))->func;
}
+BT_EXPORT
enum bt_trace_remove_listener_status bt_trace_remove_destruction_listener(
const struct bt_trace *c_trace, bt_listener_id listener_id)
{
return BT_FUNC_STATUS_OK;
}
-BT_HIDDEN
void _bt_trace_freeze(const struct bt_trace *trace)
{
BT_ASSERT(trace);
((struct bt_trace *) trace)->frozen = true;
}
-BT_HIDDEN
void bt_trace_add_stream(struct bt_trace *trace, struct bt_stream *stream)
{
guint count = 0;
stream->class, GUINT_TO_POINTER(count + 1));
}
-BT_HIDDEN
uint64_t bt_trace_get_automatic_stream_id(const struct bt_trace *trace,
const struct bt_stream_class *stream_class)
{
return id;
}
+BT_EXPORT
struct bt_trace_class *bt_trace_borrow_class(struct bt_trace *trace)
{
BT_ASSERT_PRE_DEV_TRACE_NON_NULL(trace);
return trace->class;
}
+BT_EXPORT
const struct bt_trace_class *bt_trace_borrow_class_const(
const struct bt_trace *trace)
{
return bt_trace_borrow_class((void *) trace);
}
+BT_EXPORT
const struct bt_value *bt_trace_borrow_user_attributes_const(
const struct bt_trace *trace)
{
return trace->user_attributes;
}
+BT_EXPORT
struct bt_value *bt_trace_borrow_user_attributes(struct bt_trace *trace)
{
return (void *) bt_trace_borrow_user_attributes_const((void *) trace);
}
+BT_EXPORT
void bt_trace_set_user_attributes(
struct bt_trace *trace,
const struct bt_value *user_attributes)
bt_object_get_ref_no_null_check(trace->user_attributes);
}
+BT_EXPORT
void bt_trace_get_ref(const struct bt_trace *trace)
{
bt_object_get_ref(trace);
}
+BT_EXPORT
void bt_trace_put_ref(const struct bt_trace *trace)
{
bt_object_put_ref(trace);