.TH "hyle/blueprint.h" 3 "libhyle" \" -*- nroff -*- .ad l .nh .SH NAME hyle/blueprint.h \- Manifest construction over one or more sources\&. .SH SYNOPSIS .br .PP \fR#include \fP .br \fR#include \fP .br \fR#include 'field\&.h'\fP .br \fR#include 'query\&.h'\fP .br .SS "Data Structures" .in +1c .ti -1c .RI "struct \fBhyle_blueprint_schema_t\fP" .br .RI "Descriptor for one source in a blueprint, resolved against a query\&. " .ti -1c .RI "struct \fBhyle_blueprint_t\fP" .br .RI "Collection of source schemas forming a manifest blueprint\&. " .ti -1c .RI "struct \fBhyle_manifest_filter_t\fP" .br .RI "Resolved per-field filter in a manifest\&. " .ti -1c .RI "struct \fBhyle_manifest_t\fP" .br .RI "Resolved rendering request derived from a blueprint and a query\&. " .in -1c .SS "Functions" .in +1c .ti -1c .RI "int \fBhyle_blueprint_manifest\fP (const \fBhyle_blueprint_t\fP *bp, const char *source_id, const \fBhyle_query_t\fP *query, \fBhyle_manifest_t\fP *out)" .br .RI "Resolve a blueprint source into a rendering manifest\&. " .ti -1c .RI "void \fBhyle_manifest_clear\fP (\fBhyle_manifest_t\fP *m)" .br .RI "Free the arrays owned by a manifest and zero it\&. " .in -1c .SH "Detailed Description" .PP 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\&. .SH "Function Documentation" .PP .SS "int hyle_blueprint_manifest (const \fBhyle_blueprint_t\fP * bp, const char * source_id, const \fBhyle_query_t\fP * query, \fBhyle_manifest_t\fP * out)" .PP 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\&. .PP \fBParameters\fP .RS 4 \fIbp\fP Blueprint holding the source schemas\&. .br \fIsource_id\fP Id of the source to resolve\&. .br \fIquery\fP Parsed query carrying filters/sort/page/include\&. .br \fIout\fP Manifest to fill; clear with \fBhyle_manifest_clear()\fP\&. .RE .PP \fBReturns\fP .RS 4 0 on success, or -1 when the source or any referenced field is unknown or an allocation fails\&. .RE .PP .SS "void hyle_manifest_clear (\fBhyle_manifest_t\fP * m)" .PP Free the arrays owned by a manifest and zero it\&. .PP \fBParameters\fP .RS 4 \fIm\fP Manifest to release, or NULL\&. .RE .PP .SH "Author" .PP Generated automatically by Doxygen for libhyle from the source code\&.