Skip to content
Start free evaluation

pdcomm_gem_result_enhanced_command_object

Function

Copies the OBJSPEC item of a received S2F49 request.

PdcommStatus pdcomm_gem_result_enhanced_command_object(const PdcommGemResult *result, PdcommSecsItem **out_object)

Declared in: #include <pdcomm_gem_enhanced_commands.h>

Parameters

NameDescription
resultRequest result with outcome #PDCOMM_GEM_ENHANCED_COMMAND_RECEIVED.
out_objectReceives a new item; NULL after every failure.

Returns

#PDCOMM_OK on success; #PDCOMM_INVALID_ARGUMENT when result or out_object is NULL; #PDCOMM_INVALID_STATE when result is not an enhanced command request (Host replies are rejected); #PDCOMM_LIMIT_EXCEEDED, #PDCOMM_ALLOCATION_FAILED, or #PDCOMM_INTERNAL_ERROR.

Notes

  • Ownership: release *out_object with pdcomm_secs_destroy().