 |
PK_PART_rectify_identifiers |
|
PK_ERROR_code_t PK_PART_rectify_identifiers
(
--- received arguments ---
PK_PART_t part, --- part to receive message
--- returned arguments ---
int *const n_entities, --- number of entities with changed idents
PK_ENTITY_t **const entities, --- entities with changed idents
int **const old_idents, --- old idents of entities
int **const new_idents --- new idents of entities
)
This function ensures that a part has no duplicate or invalid identifiers.
Any entities found to have invalid or duplicate identifiers:
- are returned in 'entities'
- have the old incorrect identifier returned in 'old_idents'
- have a new valid identifier assigned to them which is returned in
'new_idents'.