pdcomm_gem_result_formatted_program_capability_parameter_get
Function
Copies one parameter descriptor of a capability command.
PdcommStatus pdcomm_gem_result_formatted_program_capability_parameter_get(const PdcommGemResult *result, size_t command_index, size_t parameter_index, PdcommSecsItem **out_item)Parameters
| Name | Description |
|---|---|
result | GEM result that holds a capability. |
command_index | Zero-based command index. |
parameter_index | Zero-based parameter descriptor index. |
out_item | Receives a new List item (9, 5, or 4 elements); set to NULL first. |
Returns
#PDCOMM_OK on success; #PDCOMM_INVALID_ARGUMENT when out_item or result is NULL; #PDCOMM_INVALID_STATE when result holds no capability; #PDCOMM_OUT_OF_RANGE when an index is too large; #PDCOMM_LIMIT_EXCEEDED or #PDCOMM_ALLOCATION_FAILED when the copy cannot be created.
Notes
- Ownership: release the item with pdcomm_secs_destroy(). It remains valid after
resultis destroyed.