| <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> |
| <html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"> |
| <title>oscl_types.h Source File</title> |
| <link href="doxygen.css" rel="stylesheet" type="text/css"> |
| </head><body> |
| <!-- Generated by Doxygen 1.2.18 --> |
| <center> |
| <a class="qindex" href="index.html">Main Page</a> <a class="qindex" href="modules.html">Modules</a> <a class="qindex" href="hierarchy.html">Class Hierarchy</a> <a class="qindex" href="annotated.html">Data Structures</a> <a class="qindex" href="files.html">File List</a> <a class="qindex" href="functions.html">Data Fields</a> <a class="qindex" href="globals.html">Globals</a> </center> |
| <hr><h1>oscl_types.h</h1><a href="oscl__types_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre>00001 <span class="comment">// -*- c++ -*-</span> |
| 00002 <span class="comment">// = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =</span> |
| 00003 |
| 00004 <span class="comment">// O S C L _ T Y P E S ( B A S I C T Y P E D E F S )</span> |
| 00005 |
| 00006 <span class="comment">// = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =</span> |
| 00007 |
| 00019 <span class="preprocessor">#ifndef OSCL_TYPES_H_INCLUDED</span> |
| 00020 <span class="preprocessor"></span><span class="preprocessor">#define OSCL_TYPES_H_INCLUDED</span> |
| 00021 <span class="preprocessor"></span> |
| 00022 |
| 00023 <span class="comment">// include the config header for the platform</span> |
| 00024 <span class="preprocessor">#ifndef OSCLCONFIG_H_INCLUDED</span> |
| 00025 <span class="preprocessor"></span><span class="preprocessor">#include "<a class="code" href="osclconfig_8h.html">osclconfig.h</a>"</span> |
| 00026 <span class="preprocessor">#endif</span> |
| 00027 <span class="preprocessor"></span> |
| <a name="l00029"></a><a class="code" href="group__osclbase.html#a24">00029</a> <span class="keyword">typedef</span> <span class="keywordtype">int</span> <a class="code" href="group__osclbase.html#a24">c_bool</a>; |
| 00030 |
| 00031 |
| <a name="l00033"></a><a class="code" href="group__osclbase.html#a25">00033</a> <span class="keyword">typedef</span> <span class="keywordtype">void</span> <a class="code" href="group__osclbase.html#a25">OsclAny</a>; |
| 00034 |
| <a name="l00036"></a><a class="code" href="group__osclbase.html#a26">00036</a> <span class="keyword">typedef</span> <span class="keywordtype">char</span> <a class="code" href="group__osclbase.html#a26">mbchar</a>; |
| 00037 |
| 00039 <span class="preprocessor">#if !defined(__USE_MISC)</span> |
| 00040 <span class="preprocessor"></span><span class="comment">// uint is defined in some Linux platform sys\types.h</span> |
| <a name="l00041"></a><a class="code" href="group__osclbase.html#a27">00041</a> <span class="keyword">typedef</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="group__osclbase.html#a27">uint</a>; |
| 00042 <span class="preprocessor">#endif</span> |
| 00043 <span class="preprocessor"></span> |
| <a name="l00045"></a><a class="code" href="group__osclbase.html#a28">00045</a> <span class="keyword">typedef</span> uint8 <a class="code" href="group__osclbase.html#a28">octet</a>; |
| 00046 |
| <a name="l00048"></a><a class="code" href="group__osclbase.html#a29">00048</a> <span class="keyword">typedef</span> <span class="keywordtype">float</span> <a class="code" href="group__osclbase.html#a29">OsclFloat</a>; |
| 00049 |
| 00050 <span class="preprocessor">#ifndef OSCL_INT64_TYPES_DEFINED</span> |
| 00051 <span class="preprocessor"></span><span class="comment">//use native type</span> |
| <a name="l00052"></a><a class="code" href="group__osclbase.html#a30">00052</a> <span class="keyword">typedef</span> OSCL_NATIVE_INT64_TYPE <a class="code" href="group__osclbase.html#a30">int64</a>; |
| 00053 <span class="comment">//use native type</span> |
| <a name="l00054"></a><a class="code" href="group__osclbase.html#a31">00054</a> <span class="keyword">typedef</span> OSCL_NATIVE_UINT64_TYPE <a class="code" href="group__osclbase.html#a31">uint64</a>; |
| 00055 <span class="preprocessor">#define OSCL_INT64_TYPES_DEFINED</span> |
| 00056 <span class="preprocessor"></span><span class="preprocessor">#endif</span> |
| 00057 <span class="preprocessor"></span> |
| 00058 <span class="comment">// define OSCL_WCHAR</span> |
| <a name="l00059"></a><a class="code" href="group__osclbase.html#a32">00059</a> <span class="keyword">typedef</span> OSCL_NATIVE_WCHAR_TYPE <a class="code" href="group__osclbase.html#a32">oscl_wchar</a>; |
| 00060 |
| <a name="l00062"></a><a class="code" href="group__osclbase.html#a33">00062</a> <span class="keyword">typedef</span> <a class="code" href="group__osclbase.html#a32">oscl_wchar</a> <a class="code" href="group__osclbase.html#a33">OSCL_TCHAR</a>; |
| 00063 |
| 00064 <span class="comment">// The definition of the MemoryFragment will probably</span> |
| 00065 <span class="comment">// be OS-dependant since the goal is to allow this data</span> |
| 00066 <span class="comment">// structure to be passed directly to I/O routines that take</span> |
| 00067 <span class="comment">// scatter/gather arrays.</span> |
| 00068 <span class="preprocessor">#if ( OSCL_MEMFRAG_PTR_BEFORE_LEN )</span> |
| 00069 <span class="preprocessor"></span> |
| 00070 <span class="keyword">struct </span><a class="code" href="structOsclMemoryFragment.html">OsclMemoryFragment</a> |
| 00071 { |
| 00072 <span class="keywordtype">void</span> *<a class="code" href="structOsclMemoryFragment.html#m1">ptr</a>; |
| 00073 uint32 <a class="code" href="structOsclMemoryFragment.html#m0">len</a>; |
| 00074 }; |
| 00075 |
| 00076 <span class="preprocessor">#else</span> |
| <a name="l00077"></a><a class="code" href="structOsclMemoryFragment.html">00077</a> <span class="preprocessor"></span><span class="keyword">struct </span><a class="code" href="structOsclMemoryFragment.html">OsclMemoryFragment</a> |
| 00078 { |
| <a name="l00079"></a><a class="code" href="structOsclMemoryFragment.html#m0">00079</a> uint32 <a class="code" href="structOsclMemoryFragment.html#m0">len</a>; |
| <a name="l00080"></a><a class="code" href="structOsclMemoryFragment.html#m1">00080</a> <span class="keywordtype">void</span> *<a class="code" href="structOsclMemoryFragment.html#m1">ptr</a>; |
| 00081 }; |
| 00082 <span class="preprocessor">#endif</span> |
| 00083 <span class="preprocessor"></span> |
| 00084 |
| 00088 <span class="preprocessor">#endif // OSCL_TYPES_H_INCLUDED</span> |
| </pre></div><hr size="1"><img src="pvlogo_small.jpg"><address style="align: right;"><small>OSCL API</small> |
| <address style="align: left;"><small>Posting Version: OPENCORE_20090120 </small> |
| </small></address> |
| </body> |
| </html> |