autodisc: make it possible to interrupt auto source discovery
[babeltrace.git] / src / bindings / python / bt2 / bt2 / native_bt_autodisc.i.h
index e09f54e768b803f713e82380fb44c8a4395be3d1..9dcacddf0c52eb4201dfab50e67ba2135f639bb0 100644 (file)
@@ -62,7 +62,7 @@ bt_value *bt_bt2_auto_discover_source_components(const bt_value *inputs,
        bt_value_map_insert_entry_status insert_entry_status;
 
        BT_ASSERT(bt_value_get_type(inputs) == BT_VALUE_TYPE_ARRAY);
-       for (i = 0; i < bt_value_array_get_size(inputs); i++) {
+       for (i = 0; i < bt_value_array_get_length(inputs); i++) {
                const bt_value *elem = bt_value_array_borrow_element_by_index_const(inputs, i);
                BT_ASSERT(bt_value_get_type(elem) == BT_VALUE_TYPE_STRING);
        }
@@ -102,7 +102,8 @@ bt_value *bt_bt2_auto_discover_source_components(const bt_value *inputs,
                plugin_count,
                NULL,
                bt_python_bindings_bt2_log_level,
-               &auto_disc);
+               &auto_disc,
+               NULL);
        if (status != 0) {
                BT_CURRENT_THREAD_ERROR_APPEND_CAUSE_FROM_UNKNOWN(module_name,
                        "Failed to auto discover sources.");
This page took 0.024639 seconds and 4 git commands to generate.