Loading...
Searching...
No Matches
settings_chain.h File Reference

The walk over a face's settings schemas, and the checks a launch makes over them. More...

Go to the source code of this file.

Macros

#define SETTINGS_CHAIN_EACH(schema, head, tail)
 Walks the face's schemas and then the framework's, for a for loop's header.

Functions

static const SettingsSchema * settings_chain_first (const SettingsSchema *head, const SettingsSchema *tail)
 Where the walk starts.
static const SettingsSchema * settings_chain_next (const SettingsSchema *schema, const SettingsSchema *tail)
 The schema after this one in the walk.
static bool settings_chain_has_field (const SettingsSchema *head, const uint32_t *message_key)
 Whether a schema in the face's own chain has a field on a message key.
static bool settings_chain_has_key (const SettingsSchema *head, uint32_t key)
 Whether a schema in the face's own chain is saved under a persist key.

Detailed Description

The walk over a face's settings schemas, and the checks a launch makes over them.

Every load, save, read, and write walks the face's chain through each schema's companion, and then the framework's own schema, when it keeps one. The walk is one helper, so no loop can leave the framework's schema out. It touches no SDK call, which is what lets the host specs walk it.