BT_ASSERT(trace);
return bt_attributes_borrow_field_value_by_name(
- trace->environment, name) != NULL;
+ trace->environment, name);
}
static
struct bt_value *value_obj;
BT_ASSERT_PRE_NON_NULL(trace, "Trace");
BT_ASSERT_PRE_NON_NULL(name, "Name");
- value_obj = bt_value_signed_integer_create_init(value);
+ value_obj = bt_value_integer_signed_create_init(value);
if (!value_obj) {
BT_LIB_LOGE_APPEND_CAUSE(
"Cannot create an integer value object.");
return BT_FUNC_STATUS_OK;
}
-BT_ASSERT_PRE_FUNC
static
bool has_listener_id(const struct bt_trace *trace, uint64_t listener_id)
{
BT_ASSERT(listener_id < trace->destruction_listeners->len);
return (&g_array_index(trace->destruction_listeners,
struct bt_trace_destruction_listener_elem,
- listener_id))->func != NULL;
+ listener_id))->func;
}
enum bt_trace_remove_listener_status bt_trace_remove_destruction_listener(