X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=src%2Fbindings%2Fpython%2Fbt2%2Fbt2%2Fnative_bt_autodisc.i.h;h=9dcacddf0c52eb4201dfab50e67ba2135f639bb0;hb=0530003ff4f693e0a582a0ed4a15245455398b4a;hp=e09f54e768b803f713e82380fb44c8a4395be3d1;hpb=94e72386dd8c0269f889ab41eb68c34bef8e60c2;p=babeltrace.git diff --git a/src/bindings/python/bt2/bt2/native_bt_autodisc.i.h b/src/bindings/python/bt2/bt2/native_bt_autodisc.i.h index e09f54e7..9dcacddf 100644 --- a/src/bindings/python/bt2/bt2/native_bt_autodisc.i.h +++ b/src/bindings/python/bt2/bt2/native_bt_autodisc.i.h @@ -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.");