<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8"> <title>sc68fordevelopers: /home/mandrake/rpm/BUILD/sc68-2.2.1/file68/istream68_def.h Source File</title> <link href="tabs.css" rel="stylesheet" type="text/css"> <link href="doxygen.css" rel="stylesheet" type="text/css"> </head><body> <!-- Generated by Doxygen 1.5.9 --> <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><a href="modules.html"><span>Modules</span></a></li> <li><a href="annotated.html"><span>Data Structures</span></a></li> <li class="current"><a href="files.html"><span>Files</span></a></li> </ul> </div> <div class="tabs"> <ul> <li><a href="files.html"><span>File List</span></a></li> <li><a href="globals.html"><span>Globals</span></a></li> </ul> </div> <h1>/home/mandrake/rpm/BUILD/sc68-2.2.1/file68/istream68_def.h</h1><a href="istream68__def_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <a name="l00014"></a>00014 <span class="comment">/* Copyright (C) 1998-2003 Benjamin Gerard */</span> <a name="l00015"></a>00015 <a name="l00016"></a>00016 <span class="preprocessor">#ifndef _ISTREAM68_DEF_H_</span> <a name="l00017"></a>00017 <span class="preprocessor"></span><span class="preprocessor">#define _ISTREAM68_DEF_H_</span> <a name="l00018"></a>00018 <span class="preprocessor"></span> <a name="l00019"></a>00019 <span class="preprocessor">#include "<a class="code" href="istream68_8h.html" title="generic stream operation.">file68/istream68.h</a>"</span> <a name="l00020"></a>00020 <a name="l00021"></a>00021 <span class="preprocessor">#ifdef __cplusplus</span> <a name="l00022"></a>00022 <span class="preprocessor"></span><span class="keyword">extern</span> <span class="stringliteral">"C"</span> { <a name="l00023"></a>00023 <span class="preprocessor">#endif</span> <a name="l00024"></a>00024 <span class="preprocessor"></span> <a name="l00030"></a><a class="code" href="istream68__def_8h.html#ddf13496860b0f264eb55681ca09d7ea">00030</a> <span class="preprocessor">#define ISTREAM_OPEN_READ_BIT 0</span> <a name="l00031"></a>00031 <span class="preprocessor"></span> <a name="l00033"></a><a class="code" href="istream68__def_8h.html#932553eea017eeee60bcdc4635e04b75">00033</a> <span class="preprocessor">#define ISTREAM_OPEN_READ (1<<ISTREAM_OPEN_READ_BIT)</span> <a name="l00034"></a>00034 <span class="preprocessor"></span> <a name="l00036"></a><a class="code" href="istream68__def_8h.html#3f1c17c8081d000335ca3ee2aabc37e9">00036</a> <span class="preprocessor">#define ISTREAM_OPEN_WRITE_BIT 1</span> <a name="l00037"></a>00037 <span class="preprocessor"></span> <a name="l00039"></a><a class="code" href="istream68__def_8h.html#5e023fe7f733deaf777e56bbfd4bec75">00039</a> <span class="preprocessor">#define ISTREAM_OPEN_WRITE (1<<ISTREAM_OPEN_WRITE_BIT)</span> <a name="l00040"></a>00040 <span class="preprocessor"></span> <a name="l00042"></a><a class="code" href="istream68__def_8h.html#156c4bb46638ea0157786ca60b9fcd5a">00042</a> <span class="preprocessor">#define ISTREAM_IS_OPEN(V) (!!((V)&(ISTREAM_OPEN_READ|ISTREAM_OPEN_WRITE)))</span> <a name="l00043"></a>00043 <span class="preprocessor"></span> <a name="l00045"></a><a class="code" href="istream68__def_8h.html#71187a25f6f28def3b96034c76152769">00045</a> <span class="preprocessor">#define ISTREAM_IS_OPEN_READ(V) (((V)>>ISTREAM_OPEN_READ_BIT)&1)</span> <a name="l00046"></a>00046 <span class="preprocessor"></span> <a name="l00048"></a><a class="code" href="istream68__def_8h.html#b269ebb0ff1d161cf05ade450d2d06c9">00048</a> <span class="preprocessor">#define ISTREAM_IS_OPEN_WRITE(V) (((V)>>ISTREAM_OPEN_WRITE_BIT)&1)</span> <a name="l00049"></a>00049 <span class="preprocessor"></span> <a name="l00055"></a>00055 <span class="keyword">typedef</span> <span class="keyword">const</span> <span class="keywordtype">char</span> * (* istream_name_t) (<a class="code" href="struct__istream__t.html" title="Input stream structure.">istream_t</a> *); <a name="l00056"></a>00056 <span class="keyword">typedef</span> int (* istream_open_t) (<a class="code" href="struct__istream__t.html" title="Input stream structure.">istream_t</a> *); <a name="l00057"></a>00057 <span class="keyword">typedef</span> int (* istream_close_t) (<a class="code" href="struct__istream__t.html" title="Input stream structure.">istream_t</a> *); <a name="l00058"></a>00058 <span class="keyword">typedef</span> int (* istream_length_t) (<a class="code" href="struct__istream__t.html" title="Input stream structure.">istream_t</a> *); <a name="l00059"></a>00059 <span class="keyword">typedef</span> int (* istream_tell_t) (<a class="code" href="struct__istream__t.html" title="Input stream structure.">istream_t</a> *); <a name="l00060"></a>00060 <span class="keyword">typedef</span> int (* istream_seek_t) (<a class="code" href="struct__istream__t.html" title="Input stream structure.">istream_t</a> *, int); <a name="l00061"></a>00061 <span class="keyword">typedef</span> int (* istream_read_t) (istream_t *, <span class="keywordtype">void</span> *, int); <a name="l00062"></a>00062 <span class="keyword">typedef</span> int (* istream_write_t) (istream_t *, <span class="keyword">const</span> <span class="keywordtype">void</span> *, int); <a name="l00063"></a>00063 <span class="keyword">typedef</span> void (* istream_destroy_t) (istream_t *); <a name="l00067"></a><a class="code" href="struct__istream__t.html">00067</a> <span class="keyword">struct </span><a class="code" href="struct__istream__t.html" title="Input stream structure.">_istream_t</a> { <a name="l00068"></a><a class="code" href="struct__istream__t.html#380549d86dcd519fbb54fcfba400c66e">00068</a> <span class="comment">/*const*/</span> istream_name_t <a class="code" href="struct__istream__t.html#380549d86dcd519fbb54fcfba400c66e" title="Get stream name.">name</a>; <a name="l00069"></a><a class="code" href="struct__istream__t.html#7f62eca876d9468fe30e3ec37ccb61f0">00069</a> <span class="comment">/*const*/</span> istream_open_t <a class="code" href="struct__istream__t.html#7f62eca876d9468fe30e3ec37ccb61f0" title="Open stream.">open</a>; <a name="l00070"></a><a class="code" href="struct__istream__t.html#00b51659fd4b60b1c9f24feafbed3789">00070</a> <span class="comment">/*const*/</span> istream_close_t <a class="code" href="struct__istream__t.html#00b51659fd4b60b1c9f24feafbed3789" title="Close stream.">close</a>; <a name="l00071"></a><a class="code" href="struct__istream__t.html#ab16750d373dbe6e9a77e9549a2c0b09">00071</a> <span class="comment">/*const*/</span> istream_read_t <a class="code" href="struct__istream__t.html#ab16750d373dbe6e9a77e9549a2c0b09" title="Read data from stream.">read</a>; <a name="l00072"></a><a class="code" href="struct__istream__t.html#ee540408724061168c523dceb3150008">00072</a> <span class="comment">/*const*/</span> istream_write_t <a class="code" href="struct__istream__t.html#ee540408724061168c523dceb3150008" title="Write data to stream/.">write</a>; <a name="l00073"></a><a class="code" href="struct__istream__t.html#f8cb833348139e816e680537a0cc315b">00073</a> <span class="comment">/*const*/</span> istream_length_t <a class="code" href="struct__istream__t.html#f8cb833348139e816e680537a0cc315b" title="Get stream data length.">length</a>; <a name="l00074"></a><a class="code" href="struct__istream__t.html#85bffca8c5fd95c8abd1963601921ca2">00074</a> <span class="comment">/*const*/</span> istream_tell_t <a class="code" href="struct__istream__t.html#85bffca8c5fd95c8abd1963601921ca2" title="Get stream position.">tell</a>; <a name="l00075"></a><a class="code" href="struct__istream__t.html#54488dae6b2355fdbb587d31b3b057de">00075</a> <span class="comment">/*const*/</span> istream_seek_t <a class="code" href="struct__istream__t.html#54488dae6b2355fdbb587d31b3b057de" title="Seek forward.">seekf</a>; <a name="l00076"></a><a class="code" href="struct__istream__t.html#40dd5e99220ea3286daaf04f3b0b299f">00076</a> <span class="comment">/*const*/</span> istream_seek_t <a class="code" href="struct__istream__t.html#40dd5e99220ea3286daaf04f3b0b299f" title="Seek backward.">seekb</a>; <a name="l00077"></a><a class="code" href="struct__istream__t.html#8bb85ff847928b42fa4005eb19f4b5af">00077</a> <span class="comment">/*const*/</span> istream_destroy_t <a class="code" href="struct__istream__t.html#8bb85ff847928b42fa4005eb19f4b5af" title="Destructor .">destroy</a>; <a name="l00078"></a>00078 }; <a name="l00079"></a>00079 <a name="l00080"></a>00080 <span class="preprocessor">#ifdef __cplusplus</span> <a name="l00081"></a>00081 <span class="preprocessor"></span>} <a name="l00082"></a>00082 <span class="preprocessor">#endif</span> <a name="l00083"></a>00083 <span class="preprocessor"></span> <a name="l00084"></a>00084 <span class="preprocessor">#endif </span><span class="comment">/* #ifndef _ISTREAM68_DEF_H_ */</span> </pre></div></div> <hr size="1"><address style="text-align: right;"><small>Generated on Tue Sep 15 03:58:04 2009 for sc68fordevelopers by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.9 </small></address> </body> </html>