Skip to content
Start free evaluation

pdcomm_gem_result_spool_info

Function

Reads the spooling details of a GEM result.

PdcommStatus pdcomm_gem_result_spool_info(const PdcommGemResult *result, PdcommGemSpoolInfo *info)

Declared in: #include <pdcomm_gem_spooling.h>

Valid for spool request, response, and delivery results. The generic entry_count of ::PdcommGemResultInfo equals selection_count for S2F43 and S2F60, error_count for S2F44, and is otherwise 0. Use pdcomm_gem_result_body() for an independently owned copy of the original request body, the response body, or the delivery reply body (a bodyless result returns #PDCOMM_OUT_OF_RANGE there).

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 spooling data; #PDCOMM_INTERNAL_ERROR when a panic was contained.

Notes

  • A result and the items it returns survive endpoint destruction.