Skip to content
Start free evaluation

pdcomm_gem_result_info

Function

Copies the fixed fields of a result.

PdcommStatus pdcomm_gem_result_info(const PdcommGemResult *result, PdcommGemResultInfo *info)

Declared in: #include <pdcomm_gem.h>

Parameters

NameDescription
resultLive result.
infoCaller storage. Set info->struct_size to sizeof(PdcommGemResultInfo) or larger; on success the known layout is written, struct_size is set to the size written, and trailing bytes of a larger structure are preserved.

Returns

#PDCOMM_OK on success; #PDCOMM_INVALID_ARGUMENT when result or info is NULL or info->struct_size is too small; #PDCOMM_INTERNAL_ERROR when a panic was contained.

Notes

  • Thread safety: read-only result getters may run concurrently with each other, but not with pdcomm_gem_result_destroy().