Skip to content
Start free evaluation

pdcomm_gem_result_query_info

Function

Reads the summary of a report query request or response.

PdcommStatus pdcomm_gem_result_query_info(const PdcommGemResult *result, PdcommGemQueryInfo *info)

Declared in: #include <pdcomm_gem_queries.h>

A received query (Equipment) exposes query_kind, id, is_request 1, and responded; its counts and data_id_present are 0. A successful response (Host) exposes the original request ID. An S6F16 also exposes the wire DATAID and report_count, and value_count is the total across reports. S6F20 and S6F22 expose value_count with report_count 0. The generic PdcommGemResultInfo::entry_count is the report count for S6F16 and the value count for S6F20 and S6F22.

Parameters

NameDescription
resultQuery request or response result.
infoCaller storage; set info->struct_size first. Known fields are zeroed before the result is inspected.

Returns

#PDCOMM_OK on success; #PDCOMM_INVALID_ARGUMENT when info is NULL or too small, or result is NULL; #PDCOMM_INVALID_STATE when result is a failed, malformed, aborted, or unrelated result; #PDCOMM_INTERNAL_ERROR when a panic was contained.