schema_lookup Subroutine

public subroutine schema_lookup(key, idx, expected_kind, ok, message)

Resolve a wire-protocol key against the configuration schema.

Returns the schema-table index and expected cfg_kind_* token. On unknown key sets ok=.false. with a "unknown config key: ..." message that callers can forward into an error reply or push.

Arguments

Type IntentOptional Attributes Name
character(len=*), intent(in) :: key
integer, intent(out) :: idx
integer, intent(out) :: expected_kind
logical, intent(out) :: ok
character(len=*), intent(out) :: message