lib: rename transforming bt_X_borrow_Y() -> bt_X_as_Y()
[babeltrace.git] / lib / trace-ir / trace.c
index f5c66cb8332d22087d6ac4f1a0e5ccbd77542bde..be791f36fe2142b4a65a561662f41abc2cfc0bfa 100644 (file)
@@ -274,7 +274,7 @@ int set_environment_entry(struct bt_trace *trace, const char *name,
                "%![trace-]+t, entry-name=\"%s\"", trace, name);
        ret = bt_attributes_set_field_value(trace->environment, name,
                value);
-       bt_value_freeze(bt_private_value_borrow_value(value));
+       bt_value_freeze(bt_private_value_as_value(value));
        if (ret) {
                BT_LIB_LOGE("Cannot set trace's environment entry: "
                        "%![trace-]+t, entry-name=\"%s\"", trace, name);
@@ -356,7 +356,7 @@ void bt_trace_borrow_environment_entry_by_index(
        BT_ASSERT_PRE_NON_NULL(value, "Value");
        BT_ASSERT_PRE_VALID_INDEX(index,
                bt_attributes_get_count(trace->environment));
-       *value = bt_private_value_borrow_value(
+       *value = bt_private_value_as_value(
                bt_attributes_borrow_field_value(trace->environment, index));
        BT_ASSERT(*value);
        *name = bt_attributes_get_field_name(trace->environment, index);
@@ -376,7 +376,7 @@ struct bt_value *bt_trace_borrow_environment_entry_value_by_name(
 {
        BT_ASSERT_PRE_NON_NULL(trace, "Trace");
        BT_ASSERT_PRE_NON_NULL(name, "Name");
-       return bt_private_value_borrow_value(
+       return bt_private_value_as_value(
                bt_attributes_borrow_field_value_by_name(trace->environment,
                        name));
 }
This page took 0.024227 seconds and 4 git commands to generate.