NAME
hyle/blueprint.h - Manifest construction over one or more sources.
SYNOPSIS
#include <stddef.h>
#include <stdint.h>
#include 'field.h'
#include 'query.h'
Data Structures
Descriptor for one source in a blueprint, resolved against a query.
Collection of source schemas forming a manifest blueprint.
Resolved per-field filter in a manifest.
Resolved rendering request derived from a blueprint and a query.
Functions
Resolve a blueprint source into a rendering manifest.
Free the arrays owned by a manifest and zero it.
Detailed Description
Manifest construction over one or more sources.
A blueprint composes a base source with select/filter/pagination options to produce a resolved manifest for rendering.
Function Documentation
int hyle_blueprint_manifest (const hyle_blueprint_t * bp, const char * source_id, const hyle_query_t * query, hyle_manifest_t * out)
Resolve a blueprint source into a rendering manifest. Finds the schema in bp that matches source_id and copies the query's filter, sort, page and include settings into out. Reference filters register their target source in lookups; reference includes register their target source in inlines.
Parameters
bp Blueprint holding the source schemas.
source_id Id of the source to resolve.
query Parsed query carrying filters/sort/page/include.
out Manifest to fill; clear with hyle_manifest_clear().
Returns
0 on success, or -1 when the source or any referenced field is unknown or an allocation fails.
void hyle_manifest_clear (hyle_manifest_t * m)
Free the arrays owned by a manifest and zero it.
Parameters
m Manifest to release, or NULL.
Author
Generated automatically by Doxygen for libhyle from the source code.