Skip to content
Start free evaluation

pdcomm_gem_result_program_info

Function

Reads the process program details of a GEM result.

PdcommStatus pdcomm_gem_result_program_info(const PdcommGemResult *result, PdcommGemProgramInfo *info)

Declared in: #include <pdcomm_gem_programs.h>

Valid for program request (#PDCOMM_GEM_PRIMARY) and response (#PDCOMM_GEM_RESPONSE) results. Invalid, failed, aborted, or unrelated results return #PDCOMM_INVALID_STATE; the generic pdcomm_gem_result_info() still reports their acknowledgement or terminal error.

Parameters

NameDescription
resultLive GEM result.
infoCaller storage with struct_size set; cleared first and filled on success.

Returns

#PDCOMM_OK on success; #PDCOMM_INVALID_ARGUMENT when info is NULL or too small, or result is NULL; #PDCOMM_INVALID_STATE when the result has no program data; #PDCOMM_INTERNAL_ERROR when a panic was contained.

Notes

  • Result data survive endpoint destruction.