pdcomm_gem_formatted_program_selection_snapshot_id_get
Function
Copies the PPID of the selected program as a new SECS-II item.
PdcommStatus pdcomm_gem_formatted_program_selection_snapshot_id_get(const PdcommGemFormattedProgramSelectionSnapshot *snapshot, PdcommSecsItem **out_item)Parameters
| Name | Description |
|---|---|
snapshot | Live snapshot that contains a program. |
out_item | Receives a new ASCII or Binary item. Set to NULL first when out_item is not NULL. |
Returns
#PDCOMM_OK on success; #PDCOMM_INVALID_ARGUMENT when snapshot or out_item is NULL; #PDCOMM_INVALID_STATE when the snapshot has no selected program; #PDCOMM_ALLOCATION_FAILED or #PDCOMM_LIMIT_EXCEEDED when the item cannot be created; #PDCOMM_INTERNAL_ERROR when a panic was contained.
Notes
- Ownership: release the item with pdcomm_secs_destroy().