Skip to content
Start free evaluation

pdcomm_gem300_capability_snapshot_profile_info

Function

Reads the identifier length and capability count of one snapshot profile.

PdcommStatus pdcomm_gem300_capability_snapshot_profile_info(const PdcommGem300CapabilitySnapshot *snapshot, size_t profile_index, PdcommGem300CapabilityProfileInfo *info)

Declared in: #include <pdcomm_gem300.h>

Parameters

NameDescription
snapshotLive snapshot.
profile_indexZero-based profile index, in catalog order.
infoCaller storage with struct_size, version, and reserved set. Reset to zero values once struct_size is accepted; filled on success.

Returns

#PDCOMM_OK on success; #PDCOMM_INVALID_ARGUMENT when info or snapshot is NULL, or struct_size, version, or reserved is wrong; #PDCOMM_OUT_OF_RANGE when profile_index is not less than the profile count; #PDCOMM_INTERNAL_ERROR when a panic was contained.

Notes

  • Thread safety: snapshot reads may run concurrently; destruction must be synchronized with them.