Skip to content
Start free evaluation

pdcomm_gem_result_command_name

Function

Copies the RCMD item of a received S2F41 request.

PdcommStatus pdcomm_gem_result_command_name(const PdcommGemResult *result, PdcommSecsItem **out_name)

Declared in: #include <pdcomm_gem_commands.h>

The item keeps its wire format.

Parameters

NameDescription
resultRequest result with outcome #PDCOMM_GEM_COMMAND_RECEIVED.
out_nameReceives a new item; NULL after every failure.

Returns

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

Notes

  • Ownership: release *out_name with pdcomm_secs_destroy().