Skip to content

Commit

Permalink
add bulk_operation to rs2_get_options_list
Browse files Browse the repository at this point in the history
  • Loading branch information
maloel committed Dec 18, 2024
1 parent 6742d0e commit 1bba476
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/rs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -920,6 +920,9 @@ HANDLE_EXCEPTIONS_AND_RETURN( , options, option_value )
rs2_options_list* rs2_get_options_list(const rs2_options* options, rs2_error** error) BEGIN_API_CALL
{
VALIDATE_NOT_NULL(options);
rsutils::deferred bulk_op;
if( auto sensor = dynamic_cast<sensor_base *>(options->options) )
bulk_op = sensor->bulk_operation();
auto rs2_list = new rs2_options_list;
auto option_ids = options->options->get_supported_options();
rs2_list->list.reserve( option_ids.size() );
Expand Down

0 comments on commit 1bba476

Please sign in to comment.