ompv4: added get_targets and get_targets_ids functions.