<trclass="memdesc:aa838e9b196a80d8316a7a63ccf64034e"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Called to retrieve an implementation specific interface. <ahref="#aa838e9b196a80d8316a7a63ccf64034e">More...</a><br/></td></tr>
<trclass="memdesc:afb636b6cbd236831652a518d9e71418d"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Called to free the resources associated with the XQC_Implementation. <ahref="#afb636b6cbd236831652a518d9e71418d">More...</a><br/></td></tr>
<trclass="memdesc:ad1708e34ad5052e3441c07fc2578c32a"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Creates a static context suitable for use in the <aclass="el"href="structXQC__Implementation__s.html#a4f82aa0b0e5c675f95f6c78b3bf76216"title="Prepares a query from a UTF-8 string, returning an XQC_Expression object. ">prepare()</a>, <aclass="el"href="structXQC__Implementation__s.html#a1ad25fbbed1449a0923e3ea274c81336"title="Prepares a query from a FILE pointer, returning an XQC_Expression object. ">prepare_file()</a> and <aclass="el"href="structXQC__Implementation__s.html#a5f43c181bbab51770a3c1c8943060745"title="Prepares a query from an XQC_InputStream, returning an XQC_Expression object. ">prepare_stream()</a> functions. <ahref="#ad1708e34ad5052e3441c07fc2578c32a">More...</a><br/></td></tr>
<trclass="memdesc:a4f82aa0b0e5c675f95f6c78b3bf76216"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Prepares a query from a UTF-8 string, returning an <aclass="el"href="xqc_8h.html#a707b112e9370ee771b38ea01574df8ff">XQC_Expression</a> object. <ahref="#a4f82aa0b0e5c675f95f6c78b3bf76216">More...</a><br/></td></tr>
<trclass="memdesc:a1ad25fbbed1449a0923e3ea274c81336"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Prepares a query from a FILE pointer, returning an <aclass="el"href="xqc_8h.html#a707b112e9370ee771b38ea01574df8ff">XQC_Expression</a> object. <ahref="#a1ad25fbbed1449a0923e3ea274c81336">More...</a><br/></td></tr>
<trclass="memdesc:a5f43c181bbab51770a3c1c8943060745"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Prepares a query from an <aclass="el"href="xqc_8h.html#aa2362b43cca7bd9527ed4477a5481528">XQC_InputStream</a>, returning an <aclass="el"href="xqc_8h.html#a707b112e9370ee771b38ea01574df8ff">XQC_Expression</a> object. <ahref="#a5f43c181bbab51770a3c1c8943060745">More...</a><br/></td></tr>
<trclass="memitem:a71f0ea0a00d946c1931cb967423459ca"><tdclass="memItemLeft"align="right"valign="top"><aclass="el"href="xqc_8h.html#aeb1ad206e9c38a7f84749cafe04d7a3f">XQC_Error</a>(* </td><tdclass="memItemRight"valign="bottom"><aclass="el"href="structXQC__Implementation__s.html#a71f0ea0a00d946c1931cb967423459ca">create_integer_sequence</a> )(<aclass="el"href="xqc_8h.html#a3d46d69abb6d7b408bb8cd8c02ce66fb">XQC_Implementation</a> *implementation, int values[], unsigned int count, <aclass="el"href="xqc_8h.html#a611c8970264183d7d0f42a8551239463">XQC_Sequence</a> **sequence)</td></tr>
<p>The method of creating an XQC_Implementation object is beyond the scope of this API, and will typically involve calling an implementation defined function. Once created, the user is responsible for freeing the object by calling the <aclass="el"href="structXQC__Implementation__s.html#afb636b6cbd236831652a518d9e71418d"title="Called to free the resources associated with the XQC_Implementation. ">free()</a> function. The XQC_Implementation object should not be freed before all objects created using it's functions have been freed - doing so may cause undefined behaviour. </p>
<dl><dt><b>Examples: </b></dt><dd><aclass="el"href="xqc-basic_8c-example.html#_a0">xqc-basic.c</a>, and <aclass="el"href="xqc-context-item_8c-example.html#_a0">xqc-context-item.c</a>.</dd>
</dl></div><h2class="groupheader">Member Data Documentation</h2>
<p>Creates a static context suitable for use in the <aclass="el"href="structXQC__Implementation__s.html#a4f82aa0b0e5c675f95f6c78b3bf76216"title="Prepares a query from a UTF-8 string, returning an XQC_Expression object. ">prepare()</a>, <aclass="el"href="structXQC__Implementation__s.html#a1ad25fbbed1449a0923e3ea274c81336"title="Prepares a query from a FILE pointer, returning an XQC_Expression object. ">prepare_file()</a> and <aclass="el"href="structXQC__Implementation__s.html#a5f43c181bbab51770a3c1c8943060745"title="Prepares a query from an XQC_InputStream, returning an XQC_Expression object. ">prepare_stream()</a> functions. </p>
<p>The user is responsible for freeing the <aclass="el"href="xqc_8h.html#a27c84fd3b0421627f6bec2e19e1bf966">XQC_StaticContext</a> object returned by calling <aclass="el"href="structXQC__StaticContext__s.html#a2e0112bce0e0f408c17d5c305ad8b84a"title="Called to free the resources associated with the XQC_StaticContext. ">XQC_StaticContext::free()</a>.</p>
<dlclass="params"><dt>Parameters</dt><dd>
<tableclass="params">
<tr><tdclass="paramdir"></td><tdclass="paramname">implementation</td><td>The XQC_Implementation that this function pointer is a member of </td></tr>
<tr><tdclass="paramdir">[out]</td><tdclass="paramname">context</td><td>The newly created XQC_StaticContext object.</td></tr>
<tr><tdclass="paramname"><aclass="el"href="xqc_8h.html#aeb1ad206e9c38a7f84749cafe04d7a3fa01b5565965d03299df81f0916b8fa768"title="An implementation specific error has occurred. ">XQC_INTERNAL_ERROR</a></td><td></td></tr>
<tdclass="memname"><aclass="el"href="xqc_8h.html#aeb1ad206e9c38a7f84749cafe04d7a3f">XQC_Error</a>(* XQC_Implementation_s::create_integer_sequence)(<aclass="el"href="xqc_8h.html#a3d46d69abb6d7b408bb8cd8c02ce66fb">XQC_Implementation</a> *implementation, int values[], unsigned int count, <aclass="el"href="xqc_8h.html#a611c8970264183d7d0f42a8551239463">XQC_Sequence</a> **sequence)</td>
<dl><dt><b>Examples: </b></dt><dd><aclass="el"href="xqc-basic_8c-example.html#a13">xqc-basic.c</a>, and <aclass="el"href="xqc-context-item_8c-example.html#a18">xqc-context-item.c</a>.</dd>
<p>The user remains responsible for closing the file after preparation. The user is responsible for freeing the <aclass="el"href="xqc_8h.html#a707b112e9370ee771b38ea01574df8ff">XQC_Expression</a> object returned by calling <aclass="el"href="structXQC__Expression__s.html#a6aa28a94f0ff6732c26f131bbe4d44a9"title="Called to free the resources associated with the XQC_Expression. ">XQC_Expression::free()</a>.</p>
<dlclass="params"><dt>Parameters</dt><dd>
<tableclass="params">
<tr><tdclass="paramdir"></td><tdclass="paramname">implementation</td><td>The XQC_Implementation that this function pointer is a member of. </td></tr>
<tr><tdclass="paramdir"></td><tdclass="paramname">string</td><td>The query to prepare as a UTF-8 string. </td></tr>
<tr><tdclass="paramdir"></td><tdclass="paramname">context</td><td>The initial static context for this query, or 0 to use the implementation defined default static context. </td></tr>
<tr><tdclass="paramname"><aclass="el"href="xqc_8h.html#aeb1ad206e9c38a7f84749cafe04d7a3fa01b5565965d03299df81f0916b8fa768"title="An implementation specific error has occurred. ">XQC_INTERNAL_ERROR</a></td><td></td></tr>
<tr><tdclass="paramname"><aclass="el"href="xqc_8h.html#aeb1ad206e9c38a7f84749cafe04d7a3fa3c5972d58b0a8f9c38a000e6cf4d91a2"title="A static error has occured while preparing the query. ">XQC_STATIC_ERROR</a></td><td></td></tr>
<tr><tdclass="paramname"><aclass="el"href="xqc_8h.html#aeb1ad206e9c38a7f84749cafe04d7a3faeb68302bd3ceab3cb9d9473afd06248a"title="A type error has occured while preparing or executing the query. ">XQC_TYPE_ERROR</a></td><td></td></tr>
<tr><tdclass="paramname"><aclass="el"href="xqc_8h.html#aeb1ad206e9c38a7f84749cafe04d7a3fa1ece0ad69a59c3f0ce59b841ded10f9d"title="A dynamic error has occured while preparing or executing the query. ">XQC_DYNAMIC_ERROR</a></td><td></td></tr>
<dl><dt><b>Examples: </b></dt><dd><aclass="el"href="xqc-basic_8c-example.html#a5">xqc-basic.c</a>, and <aclass="el"href="xqc-context-item_8c-example.html#a6">xqc-context-item.c</a>.</dd>
<p>The encoding of the query in the file is determined by the implementation. The user remains responsible for closing the file after preparation. The user is responsible for freeing the <aclass="el"href="xqc_8h.html#a707b112e9370ee771b38ea01574df8ff">XQC_Expression</a> object returned by calling <aclass="el"href="structXQC__Expression__s.html#a6aa28a94f0ff6732c26f131bbe4d44a9"title="Called to free the resources associated with the XQC_Expression. ">XQC_Expression::free()</a>.</p>
<dlclass="params"><dt>Parameters</dt><dd>
<tableclass="params">
<tr><tdclass="paramdir"></td><tdclass="paramname">implementation</td><td>The XQC_Implementation that this function pointer is a member of. </td></tr>
<tr><tdclass="paramdir"></td><tdclass="paramname">file</td><td>The file containing the query to prepare. </td></tr>
<tr><tdclass="paramdir"></td><tdclass="paramname">context</td><td>The initial static context for this query, or 0 to use the implementation defined default static context. </td></tr>
<tr><tdclass="paramname"><aclass="el"href="xqc_8h.html#aeb1ad206e9c38a7f84749cafe04d7a3fa01b5565965d03299df81f0916b8fa768"title="An implementation specific error has occurred. ">XQC_INTERNAL_ERROR</a></td><td></td></tr>
<tr><tdclass="paramname"><aclass="el"href="xqc_8h.html#aeb1ad206e9c38a7f84749cafe04d7a3fa1f3145b072152462b856efc743b1211d"title="The encoding of the query has not been recognized, or is not supported by the implementation. ">XQC_UNRECOGNIZED_ENCODING</a></td><td></td></tr>
<tr><tdclass="paramname"><aclass="el"href="xqc_8h.html#aeb1ad206e9c38a7f84749cafe04d7a3fa3c5972d58b0a8f9c38a000e6cf4d91a2"title="A static error has occured while preparing the query. ">XQC_STATIC_ERROR</a></td><td></td></tr>
<tr><tdclass="paramname"><aclass="el"href="xqc_8h.html#aeb1ad206e9c38a7f84749cafe04d7a3faeb68302bd3ceab3cb9d9473afd06248a"title="A type error has occured while preparing or executing the query. ">XQC_TYPE_ERROR</a></td><td></td></tr>
<tr><tdclass="paramname"><aclass="el"href="xqc_8h.html#aeb1ad206e9c38a7f84749cafe04d7a3fa1ece0ad69a59c3f0ce59b841ded10f9d"title="A dynamic error has occured while preparing or executing the query. ">XQC_DYNAMIC_ERROR</a></td><td></td></tr>
<p>Prepares a query from an <aclass="el"href="xqc_8h.html#aa2362b43cca7bd9527ed4477a5481528">XQC_InputStream</a>, returning an <aclass="el"href="xqc_8h.html#a707b112e9370ee771b38ea01574df8ff">XQC_Expression</a> object. </p>
<p>The encoding of the stream is determined by looking at <aclass="el"href="structXQC__InputStream__s.html#aa4d231151fe0fe6ddc189d84f8f1197b"title="The text encoding of the input data as a UTF-8 string, or 0 if unknown. ">XQC_InputStream::encoding</a>, or by the implementation if <aclass="el"href="structXQC__InputStream__s.html#aa4d231151fe0fe6ddc189d84f8f1197b"title="The text encoding of the input data as a UTF-8 string, or 0 if unknown. ">XQC_InputStream::encoding</a> is 0. The implementation is responsible for freeing the <aclass="el"href="xqc_8h.html#aa2362b43cca7bd9527ed4477a5481528">XQC_InputStream</a> using the <aclass="el"href="structXQC__InputStream__s.html#a48aaf721537dfba8945afb24511030ac"title="Called to free the resources associated with the XQC_InputStream. ">XQC_InputStream::free()</a> function after it has finished with using it. The user is responsible for freeing the <aclass="el"href="xqc_8h.html#a707b112e9370ee771b38ea01574df8ff">XQC_Expression</a> object returned by calling <aclass="el"href="structXQC__Expression__s.html#a6aa28a94f0ff6732c26f131bbe4d44a9"title="Called to free the resources associated with the XQC_Expression. ">XQC_Expression::free()</a>.</p>
<dlclass="params"><dt>Parameters</dt><dd>
<tableclass="params">
<tr><tdclass="paramdir"></td><tdclass="paramname">implementation</td><td>The XQC_Implementation that this function pointer is a member of </td></tr>
<tr><tdclass="paramdir"></td><tdclass="paramname">stream</td><td>The stream returning the query to prepare. </td></tr>
<tr><tdclass="paramdir"></td><tdclass="paramname">context</td><td>The initial static context for this query, or 0 to use the implementation defined default static context. </td></tr>
<tr><tdclass="paramname"><aclass="el"href="xqc_8h.html#aeb1ad206e9c38a7f84749cafe04d7a3fa01b5565965d03299df81f0916b8fa768"title="An implementation specific error has occurred. ">XQC_INTERNAL_ERROR</a></td><td></td></tr>
<tr><tdclass="paramname"><aclass="el"href="xqc_8h.html#aeb1ad206e9c38a7f84749cafe04d7a3fa1f3145b072152462b856efc743b1211d"title="The encoding of the query has not been recognized, or is not supported by the implementation. ">XQC_UNRECOGNIZED_ENCODING</a></td><td></td></tr>
<tr><tdclass="paramname"><aclass="el"href="xqc_8h.html#aeb1ad206e9c38a7f84749cafe04d7a3fa3c5972d58b0a8f9c38a000e6cf4d91a2"title="A static error has occured while preparing the query. ">XQC_STATIC_ERROR</a></td><td></td></tr>
<tr><tdclass="paramname"><aclass="el"href="xqc_8h.html#aeb1ad206e9c38a7f84749cafe04d7a3faeb68302bd3ceab3cb9d9473afd06248a"title="A type error has occured while preparing or executing the query. ">XQC_TYPE_ERROR</a></td><td></td></tr>
<tr><tdclass="paramname"><aclass="el"href="xqc_8h.html#aeb1ad206e9c38a7f84749cafe04d7a3fa1ece0ad69a59c3f0ce59b841ded10f9d"title="A dynamic error has occured while preparing or executing the query. ">XQC_DYNAMIC_ERROR</a></td><td></td></tr>