Struct anira_backend_id#

struct anira_backend_id#

A backend, where the pair must travel as one item: an engine on a provider, each axis under the pair rule of anira_engine and anira_provider (ANIRA_ENGINE_CUSTOM with a custom engine’s own id, anira_custom_engine_create; ANIRA_PROVIDER_CUSTOM with a provider name the enum does not have; a built-in value with a NULL id). Tier 2, struct_size first; enumerated at the caller’s stride. A candidate against the pair rule is ANIRA_ERROR_INVALID_ARGUMENT where it is read.

Public Members

uint32_t struct_size#

sizeof(anira_backend_id) of the caller’s header.

uint32_t engine#

anira_engine; ANIRA_ENGINE_CUSTOM for a custom engine, which engine_id names.

uint32_t provider#

anira_provider; ANIRA_PROVIDER_CUSTOM for a custom provider, which provider_id names.

const char *engine_id#

The registered reverse-URI name of a custom engine (engine ANIRA_ENGINE_CUSTOM); NULL for a built-in engine. Static storage of the library when anira wrote it.

const char *provider_id#

The name of a custom provider in the engine’s vocabulary (provider ANIRA_PROVIDER_CUSTOM); NULL for a provider the enum names. A tail field: a caller whose header ends before it names the enum’s providers alone (it reads a custom provider’s row as ANIRA_PROVIDER_CUSTOM without the name, and a candidate of CUSTOM from it is refused). Static storage of the library when anira wrote it; the caller’s, valid for the call, when the caller did.