Skip to content
Start free evaluation

PdcommGemProgramWriteInfo

Struct

Outcome of a local store mutation.

typedef struct PdcommGemProgramWriteInfo { ... } PdcommGemProgramWriteInfo

Declared in: #include <pdcomm_gem_programs.h>

Filled by pdcomm_gem_program_put() and pdcomm_gem_program_delete_local(). Cleared before validation, so applied is 0 after a failure; after #PDCOMM_PROGRAM_UNCONFIRMED it describes the installed change.

Members

applied

Field

1 when the store was changed and the change installed.

uint8_t applied

Declared in: #include <pdcomm_gem_programs.h>

durability

Field

#PDCOMM_GEM_PROGRAM_VOLATILE, #PDCOMM_GEM_PROGRAM_SYNCED, #PDCOMM_GEM_PROGRAM_UNCONFIRMED, or #PDCOMM_GEM_PROGRAM_DURABILITY_NONE.

uint32_t durability

Declared in: #include <pdcomm_gem_programs.h>

persistence_status

Field

#PDCOMM_OK, or the persistence error (for example #PDCOMM_IO_ERROR) when durability is #PDCOMM_GEM_PROGRAM_UNCONFIRMED.

int32_t persistence_status

Declared in: #include <pdcomm_gem_programs.h>

struct_size

Field

Size of this structure in bytes; set to sizeof(PdcommGemProgramWriteInfo) or larger before the call.

size_t struct_size

Declared in: #include <pdcomm_gem_programs.h>