.TH "hyle/ctx.h" 3 "libhyle" \" -*- nroff -*- .ad l .nh .SH NAME hyle/ctx.h \- Allocation context for the hyle data engine\&. .SH SYNOPSIS .br .PP \fR#include \fP .br .SS "Data Structures" .in +1c .ti -1c .RI "struct \fBhyle_ctx_t\fP" .br .RI "Allocation context for the hyle data engine\&. " .in -1c .SS "Typedefs" .in +1c .ti -1c .RI "typedef struct hyle_ctx_t \fBhyle_ctx_t\fP" .br .RI "Allocation context for the hyle data engine\&. " .in -1c .SS "Functions" .in +1c .ti -1c .RI "\fBhyle_ctx_t\fP * \fBhyle_ctx_new\fP (void)" .br .RI "Create and initialize a new allocation context\&. " .ti -1c .RI "void \fBhyle_ctx_free\fP (\fBhyle_ctx_t\fP *ctx)" .br .RI "Close a context's pools and free the context itself\&. " .in -1c .SH "Detailed Description" .PP Allocation context for the hyle data engine\&. Tracks the string/array/map pools that back values and ids created within a dataset context\&. .SH "Typedef Documentation" .PP .SS "typedef struct hyle_ctx_t hyle_ctx_t" .PP Allocation context for the hyle data engine\&. Holds the corm pool handles that back values and row ids, plus a scratch pool for intermediate view results\&. .SH "Function Documentation" .PP .SS "void hyle_ctx_free (\fBhyle_ctx_t\fP * ctx)" .PP Close a context's pools and free the context itself\&. .PP \fBParameters\fP .RS 4 \fIctx\fP Context to release, or NULL\&. .RE .PP .SS "\fBhyle_ctx_t\fP * hyle_ctx_new (void )" .PP Create and initialize a new allocation context\&. Opens the string, array, map and scratch corm pools backing the context\&. The caller owns the returned context, and must release it with \fBhyle_ctx_free()\fP\&. .PP \fBReturns\fP .RS 4 A new context, or NULL when out of memory\&. .RE .PP .SH "Author" .PP Generated automatically by Doxygen for libhyle from the source code\&.