lib: private functions: do not repeat `private` word
[babeltrace.git] / plugins / lttng-utils / plugin.c
index fbbdc6645bb1796e3abd878626c10599c8d61dbc..d107b32272c4b342e8cc546ba2bece35124f89cb 100644 (file)
@@ -285,14 +285,14 @@ enum bt_notification_iterator_status debug_info_iterator_init(
                goto end;
        }
 
-       input_port = bt_private_component_filter_get_input_private_port_by_name(
+       input_port = bt_private_component_filter_get_input_port_by_name(
                        component, "in");
        if (!input_port) {
                ret = BT_NOTIFICATION_ITERATOR_STATUS_ERROR;
                goto end;
        }
 
-       connection = bt_private_port_get_private_connection(input_port);
+       connection = bt_private_port_get_connection(input_port);
        bt_object_put_ref(input_port);
        if (!connection) {
                ret = BT_NOTIFICATION_ITERATOR_STATUS_ERROR;
@@ -338,12 +338,7 @@ enum bt_component_status init_from_params(
                enum bt_value_status value_ret;
                const char *tmp;
 
-               value_ret = bt_value_string_get(value, &tmp);
-               if (value_ret) {
-                       ret = BT_COMPONENT_STATUS_INVALID;
-                       BT_LOGE_STR("Failed to retrieve debug-info-field-name value. "
-                                       "Expecting a string.");
-               }
+               tmp = bt_value_string_get(value);
                strcpy(debug_info_component->arg_debug_info_field_name, tmp);
                bt_object_put_ref(value);
        } else {
@@ -365,13 +360,7 @@ enum bt_component_status init_from_params(
        if (value) {
                enum bt_value_status value_ret;
 
-               value_ret = bt_value_string_get(value,
-                               &debug_info_component->arg_debug_dir);
-               if (value_ret) {
-                       ret = BT_COMPONENT_STATUS_INVALID;
-                       BT_LOGE_STR("Failed to retrieve debug-info-dir value. "
-                                       "Expecting a string.");
-               }
+               debug_info_component->arg_debug_dir = bt_value_string_get(value);
        }
        bt_object_put_ref(value);
        if (ret != BT_COMPONENT_STATUS_OK) {
@@ -382,13 +371,7 @@ enum bt_component_status init_from_params(
        if (value) {
                enum bt_value_status value_ret;
 
-               value_ret = bt_value_string_get(value,
-                               &debug_info_component->arg_target_prefix);
-               if (value_ret) {
-                       ret = BT_COMPONENT_STATUS_INVALID;
-                       BT_LOGE_STR("Failed to retrieve target-prefix value. "
-                                       "Expecting a string.");
-               }
+               debug_info_component->arg_target_prefix = bt_value_string_get(value);
        }
        bt_object_put_ref(value);
        if (ret != BT_COMPONENT_STATUS_OK) {
@@ -400,13 +383,7 @@ enum bt_component_status init_from_params(
                enum bt_value_status value_ret;
                bt_bool bool_val;
 
-               value_ret = bt_value_bool_get(value,
-                               &bool_val);
-               if (value_ret) {
-                       ret = BT_COMPONENT_STATUS_INVALID;
-                       BT_LOGE_STR("Failed to retrieve full-path value. "
-                                       "Expecting a boolean.");
-               }
+               bool_val = bt_value_bool_get(value);
 
                debug_info_component->arg_full_path = bool_val;
        }
@@ -436,13 +413,13 @@ enum bt_component_status debug_info_component_init(
                goto error;
        }
 
-       ret = bt_private_component_filter_add_input_private_port(
+       ret = bt_private_component_filter_add_input_port(
                component, "in", NULL, NULL);
        if (ret != BT_COMPONENT_STATUS_OK) {
                goto end;
        }
 
-       ret = bt_private_component_filter_add_output_private_port(
+       ret = bt_private_component_filter_add_output_port(
                component, "out", NULL, NULL);
        if (ret != BT_COMPONENT_STATUS_OK) {
                goto end;
This page took 0.023701 seconds and 4 git commands to generate.