134 lines
7.9 KiB
HTML
134 lines
7.9 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
|
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
|
|
<title>XQilla XQC API Documentation</title>
|
|
<link href="doxygen.css" rel="stylesheet" type="text/css">
|
|
<link href="tabs.css" rel="stylesheet" type="text/css">
|
|
</head><body>
|
|
<a style="float:right;" href="http://sourceforge.net/projects/xqilla"><img src="http://sflogo.sourceforge.net/sflogo.php?group_id=152021&type=2" border="0" alt="SourceForge.net Logo" /></a>
|
|
<!-- Generated by Doxygen 1.6.1 -->
|
|
<div class="navigation" id="top">
|
|
<div class="tabs">
|
|
<ul>
|
|
<li><a href="index.html"><span>Main Page</span></a></li>
|
|
<li><a href="pages.html"><span>Related Pages</span></a></li>
|
|
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
|
|
<li><a href="files.html"><span>Files</span></a></li>
|
|
<li><a href="examples.html"><span>Examples</span></a></li>
|
|
</ul>
|
|
</div>
|
|
<div class="tabs">
|
|
<ul>
|
|
<li><a href="annotated.html"><span>Class List</span></a></li>
|
|
<li><a href="functions.html"><span>Class Members</span></a></li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
<div class="contents">
|
|
<h1>XQC_InputStream_s Struct Reference</h1><!-- doxytag: class="XQC_InputStream_s" -->
|
|
<p>The <a class="el" href="xqc_8h.html#aa2362b43cca7bd9527ed4477a5481528">XQC_InputStream</a> struct is designed to be populated by users for the purpose of streaming data into an XQC implementation.
|
|
<a href="#_details">More...</a></p>
|
|
|
|
<p><code>#include <<a class="el" href="xqc_8h_source.html">xqc.h</a>></code></p>
|
|
|
|
<p><a href="structXQC__InputStream__s-members.html">List of all members.</a></p>
|
|
<table border="0" cellpadding="0" cellspacing="0">
|
|
<tr><td colspan="2"><h2>Public Attributes</h2></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">const char * </td><td class="memItemRight" valign="bottom"><a class="el" href="structXQC__InputStream__s.html#aa4d231151fe0fe6ddc189d84f8f1197b">encoding</a></td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">The text encoding of the input data as a UTF-8 string, or 0 if unknown. <a href="#aa4d231151fe0fe6ddc189d84f8f1197b"></a><br/></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">void * </td><td class="memItemRight" valign="bottom"><a class="el" href="structXQC__InputStream__s.html#a72b22742c94ee0efe5b5de0e63b7ae89">user_data</a></td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Can be used for user specific purposes. <a href="#a72b22742c94ee0efe5b5de0e63b7ae89"></a><br/></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">unsigned int(* </td><td class="memItemRight" valign="bottom"><a class="el" href="structXQC__InputStream__s.html#a9dd7b49bdfaf09c4070c43aa5a0e0c66">read</a> )(<a class="el" href="structXQC__InputStream__s.html">XQC_InputStream</a> *stream, void *buffer, unsigned int length)</td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">The function called to read more of the input query. <a href="#a9dd7b49bdfaf09c4070c43aa5a0e0c66"></a><br/></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">void(* </td><td class="memItemRight" valign="bottom"><a class="el" href="structXQC__InputStream__s.html#a48aaf721537dfba8945afb24511030ac">free</a> )(<a class="el" href="structXQC__InputStream__s.html">XQC_InputStream</a> *stream)</td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Called to free the resources associated with the XQC_InputStream. <a href="#a48aaf721537dfba8945afb24511030ac"></a><br/></td></tr>
|
|
</table>
|
|
<hr/><a name="_details"></a><h2>Detailed Description</h2>
|
|
<p>The <a class="el" href="xqc_8h.html#aa2362b43cca7bd9527ed4477a5481528">XQC_InputStream</a> struct is designed to be populated by users for the purpose of streaming data into an XQC implementation. </p>
|
|
<hr/><h2>Member Data Documentation</h2>
|
|
<a class="anchor" id="aa4d231151fe0fe6ddc189d84f8f1197b"></a><!-- doxytag: member="XQC_InputStream_s::encoding" ref="aa4d231151fe0fe6ddc189d84f8f1197b" args="" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">const char* <a class="el" href="structXQC__InputStream__s.html#aa4d231151fe0fe6ddc189d84f8f1197b">XQC_InputStream_s::encoding</a></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>The text encoding of the input data as a UTF-8 string, or 0 if unknown. </p>
|
|
<p>The value of the string should conform to the <code>EncName</code> grammar production as specified in XML 1.0:</p>
|
|
<p><a href="http://www.w3.org/TR/REC-xml/#NT-EncName">http://www.w3.org/TR/REC-xml/#NT-EncName</a> </p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a48aaf721537dfba8945afb24511030ac"></a><!-- doxytag: member="XQC_InputStream_s::free" ref="a48aaf721537dfba8945afb24511030ac" args=")(XQC_InputStream *stream)" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void(* <a class="el" href="structXQC__InputStream__s.html#a48aaf721537dfba8945afb24511030ac">XQC_InputStream_s::free</a>)(<a class="el" href="structXQC__InputStream__s.html">XQC_InputStream</a> *stream)</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>Called to free the resources associated with the XQC_InputStream. </p>
|
|
<dl><dt><b>Parameters:</b></dt><dd>
|
|
<table border="0" cellspacing="2" cellpadding="0">
|
|
<tr><td valign="top"></td><td valign="top"><em>stream</em> </td><td>The XQC_InputStream that this function pointer is a member of </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a9dd7b49bdfaf09c4070c43aa5a0e0c66"></a><!-- doxytag: member="XQC_InputStream_s::read" ref="a9dd7b49bdfaf09c4070c43aa5a0e0c66" args=")(XQC_InputStream *stream, void *buffer, unsigned int length)" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">unsigned int(* <a class="el" href="structXQC__InputStream__s.html#a9dd7b49bdfaf09c4070c43aa5a0e0c66">XQC_InputStream_s::read</a>)(<a class="el" href="structXQC__InputStream__s.html">XQC_InputStream</a> *stream, void *buffer, unsigned int length)</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>The function called to read more of the input query. </p>
|
|
<p>The function should read the next chunk of input into the buffer provided, returning the length of the data read.</p>
|
|
<dl><dt><b>Parameters:</b></dt><dd>
|
|
<table border="0" cellspacing="2" cellpadding="0">
|
|
<tr><td valign="top"></td><td valign="top"><em>stream</em> </td><td>The XQC_InputStream that this function pointer is a member of </td></tr>
|
|
<tr><td valign="top"><tt>[out]</tt> </td><td valign="top"><em>buffer</em> </td><td>The buffer to read the data into </td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em>length</em> </td><td>The length of the buffer</td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="return"><dt><b>Returns:</b></dt><dd>The number of bytes read - this will be less than length if the end of the input is reached</dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a72b22742c94ee0efe5b5de0e63b7ae89"></a><!-- doxytag: member="XQC_InputStream_s::user_data" ref="a72b22742c94ee0efe5b5de0e63b7ae89" args="" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void* <a class="el" href="structXQC__InputStream__s.html#a72b22742c94ee0efe5b5de0e63b7ae89">XQC_InputStream_s::user_data</a></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>Can be used for user specific purposes. </p>
|
|
|
|
</div>
|
|
</div>
|
|
<hr/>The documentation for this struct was generated from the following file:<ul>
|
|
<li><a class="el" href="xqc_8h_source.html">xqc.h</a></li>
|
|
</ul>
|
|
</div>
|
|
<hr size="1"/><address style="text-align: right;"><small>Generated on 18 May 2015 for XQilla XQC API by
|
|
<a href="http://www.doxygen.org/index.html">
|
|
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.1 </small></address>
|
|
</body>
|
|
</html>
|