Function anj_persistence_store_context_create

Function Documentation

anj_persistence_context_t anj_persistence_store_context_create(anj_persistence_write_cb_t *write_cb, void *ctx)

Creates a persistence context for storing data.

Warning

The persistence format is not guaranteed to be portable across architectures, compilers, or compiler versions. Moving persistence files between different systems may result in undefined behavior (e.g., due to endianness or ABI differences).

Parameters:
  • write_cb – Callback to use for writing data.

  • ctx – User context passed to the write callback.

Returns:

Persistence context.