Skip to content
Start free evaluation

pdcomm_gem_equipment_constant_state

Function

Reads the counters of the constant store.

PdcommStatus pdcomm_gem_equipment_constant_state(PdcommTcpEndpoint *endpoint, PdcommGemConstantState *state)

Declared in: #include <pdcomm_gem_constants.h>

Parameters

NameDescription
endpointEquipment endpoint.
stateCaller storage; set state->struct_size first. It is written only on success.

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 is not an Equipment or has no constant store; #PDCOMM_POISONED when the endpoint is poisoned.