NAME
hyle/schema.h - Canonical, framework-neutral schema descriptors.
SYNOPSIS
#include <stddef.h>
#include 'field.h'
Data Structures
Framework-neutral, pure-C schema descriptor for one field.
Macros
Text-field initializer body used by FIELD_TEXT.
Integer-field initializer body used by FIELD_INT.
Boolean-field initializer body used by FIELD_BOOL.
Reference-field initializer body used by FIELD_REF.
String/text record field descriptor.
Integer record field descriptor.
Boolean record field descriptor.
Reference descriptor with automatic source lookup and display.
Attached file descriptor (e.g. data.txt, pt_PT.html).
Derived virtual field (in-memory derivation / search fold).
Inverse virtual relation descriptor.
Excluded field backed by a struct member (e.g. owner).
Integer overlay field for app state structures.
String overlay field for app state structures.
End marker for descriptor arrays (a NULL-key entry).
Wraps any base field macro into an array/collection field.
Array-of-integers convenience alias.
Array-of-text convenience alias.
Array-of-bool convenience alias.
Array-of-references convenience alias.
Alias of FIELD_ARRAY_REF for multi-reference fields.
Legacy positional record (string) field.
Legacy positional reference field.
Legacy positional reference field with filter style.
Legacy positional reference field with style and add flag.
Legacy positional multi-reference field.
Legacy positional multi-reference field with style.
Legacy positional multi-reference field with style and mode.
Legacy positional multi-reference field with style, mode and add.
Legacy positional inverse field.
Legacy positional excluded (string) field.
Legacy positional excluded field with meta flag.
Legacy positional excluded field with corm type and meta flag.
Legacy virtual excluded (string) field.
Legacy virtual excluded field with file name.
Legacy positional derived field.
Legacy positional integer field.
Legacy positional boolean field.
Legacy positional required (string) field.
Legacy positional required field with minimum length.
Legacy variable-length string (file) field.
Alias of VSTR_FIELD for attached files.
Typedefs
Framework-neutral, pure-C schema descriptor for one field.
Detailed Description
Canonical, framework-neutral schema descriptors.
hyle_schema_desc_t is the storage-agnostic field descriptor shared by hyle and bud; the FIELD_* macros generate them from struct layouts.
Macro Definition Documentation
#define FIELD_OFFSET( st, mb)
Value:
offsetof(st, mb)
Byte offset of a struct member (mb of type st).
#define FIELD_SIZE( st, mb)
Value:
sizeof(((st *)0)->mb)
Size in bytes of a struct member (mb of type st).
#define HYLE_CM_MULTI_REF 7
Corm multi-reference storage type.
#define HYLE_CM_REFERENCE 6
Corm single-reference storage type.
#define HYLE_CM_STR 2
Corm string storage type.
#define HYLE_CM_VSTR 8
Corm variable-length string storage type.
#define HYLE_KIND_EXCLUDE 1
Record field, excluded from state JSON.
#define HYLE_KIND_INVERSE 5
Inverse virtual relation.
#define HYLE_KIND_OVERLAY_INT 3
Computed integer overlay.
#define HYLE_KIND_OVERLAY_STR 4
Computed string overlay.
#define HYLE_KIND_RECORD 0
Standard record field, included in state JSON.
#define HYLE_KIND_REF_DISPLAY 2
Reference field, resolving IDs to display names.
Typedef Documentation
typedef struct hyle_schema_desc hyle_schema_desc_t
Framework-neutral, pure-C schema descriptor for one field. Layout contract: the first 5 fields match bud_field_desc_t so the two can be stride-cast with zero copy. The FIELD_* macros below build these from struct layouts.
typedef struct hyle_schema_desc source_desc_t
Alias for hyle_schema_desc_t.
Author
Generated automatically by Doxygen for libhyle from the source code.