Skip to content
Start free evaluation

pdcomm_gem_equipment_enhanced_command_state

Function

Reads the counts of the Equipment enhanced command store.

PdcommStatus pdcomm_gem_equipment_enhanced_command_state(PdcommTcpEndpoint *endpoint, PdcommGemEnhancedCommandState *state)

Declared in: #include <pdcomm_gem_enhanced_commands.h>

The known fields of state are cleared before the store is checked.

Parameters

NameDescription
endpointEndpoint with a configured enhanced command store.
stateCaller storage; set state->struct_size before the call.

Returns

#PDCOMM_OK on success; #PDCOMM_INVALID_ARGUMENT when endpoint or state is NULL or state->struct_size is too small; #PDCOMM_INVALID_STATE when the endpoint has no GEM Equipment or no enhanced command store; #PDCOMM_POISONED when the endpoint is poisoned or a panic was contained.