Skip to content
Start free evaluation

pdcomm_gem_formatted_program_store_entry_info

Function

Reads the summary of one program in a snapshot.

PdcommStatus pdcomm_gem_formatted_program_store_entry_info(const PdcommGemFormattedProgramStoreSnapshot *snapshot, size_t entry_index, PdcommGemFormattedProgramStoreEntryInfo *info)

Declared in: #include <pdcomm_gem_formatted_program_store.h>

Parameters

NameDescription
snapshotLive snapshot.
entry_indexZero-based entry index, less than entry_count.
infoCaller storage with struct_size, version, and reserved set. On success every field is written.

Returns

#PDCOMM_OK on success; #PDCOMM_INVALID_ARGUMENT when snapshot or info is NULL, or the info header is invalid; #PDCOMM_OUT_OF_RANGE when entry_index is out of range; #PDCOMM_INTERNAL_ERROR when a panic was contained.

Notes

  • Thread safety: snapshot getters may run concurrently with each other; destruction must not overlap them.