goto end;
}
- notification = bt_notification_iterator_get_notification(it);
+ notification = bt_notification_iterator_borrow_notification(it);
BT_ASSERT(notification);
ret = handle_notification(pretty, notification);
end:
- bt_put(notification);
return ret;
}
struct pretty_component *pretty = data;
struct bt_value *plugin_opt_map = pretty->plugin_opt_map;
- if (!bt_value_map_get(plugin_opt_map, key)) {
+ if (!bt_value_map_has_key(plugin_opt_map, key)) {
fprintf(pretty->err,
"[warning] Parameter \"%s\" unknown to \"text.pretty\" sink component\n", key);
}
enum bt_value_status status;
const char *str;
- value = bt_value_map_get(params, key);
+ value = bt_value_map_borrow(params, key);
if (!value) {
goto end;
}
}
*option = g_strdup(str);
end:
- bt_put(value);
return ret;
}
enum bt_value_status status;
bt_bool bool_val;
- value = bt_value_map_get(params, key);
+ value = bt_value_map_borrow(params, key);
if (!value) {
goto end;
}
if (found) {
*found = true;
}
+
end:
- bt_put(value);
return ret;
}
struct bt_value *color_value;
const char *color;
- color_value = bt_value_map_get(params, "color");
+ color_value = bt_value_map_borrow(params, "color");
if (!color_value) {
goto end;
}
warn_wrong_color_param(pretty);
}
}
-
- bt_put(color_value);
}
ret = apply_one_string("path", params, &pretty->options.output_path);