BT_HIDDEN
int64_t bt_attributes_get_count(const struct bt_value *attr_obj)
{
- return bt_value_array_get_size(attr_obj);
+ return bt_value_array_get_length(attr_obj);
}
BT_HIDDEN
const struct bt_value *attr_field_name_obj = NULL;
BT_ASSERT(attr_obj);
- BT_ASSERT(index < bt_value_array_get_size(attr_obj));
+ BT_ASSERT(index < bt_value_array_get_length(attr_obj));
attr_field_obj = bt_value_array_borrow_element_by_index_const(
attr_obj, index);
if (!attr_field_obj) {
struct bt_value *attr_field_obj = NULL;
BT_ASSERT(attr_obj);
- BT_ASSERT(index < bt_value_array_get_size(attr_obj));
+ BT_ASSERT(index < bt_value_array_get_length(attr_obj));
attr_field_obj =
bt_value_array_borrow_element_by_index(attr_obj, index);
if (!attr_field_obj) {
struct bt_value *value_obj = NULL;
struct bt_value *attr_field_name_obj = NULL;
- attr_size = bt_value_array_get_size(attr_obj);
+ attr_size = bt_value_array_get_length(attr_obj);
if (attr_size < 0) {
BT_LIB_LOGE_APPEND_CAUSE(
"Cannot get array value's size: %![value-]+v",
BT_ASSERT(attr_obj);
BT_LOGD("Freezing attributes object: value-addr=%p", attr_obj);
- count = bt_value_array_get_size(attr_obj);
+ count = bt_value_array_get_length(attr_obj);
BT_ASSERT(count >= 0);
/*