<!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>hwdep.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="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> <a class="qindex" href="pages.html">Related Pages</a> <a class="qindex" href="examples.html">Examples</a> </center> <hr><h1>hwdep.h</h1><div class="fragment"><pre>00001 00028 <span class="preprocessor">#ifndef __ALSA_HWDEP_H</span> 00029 <span class="preprocessor"></span><span class="preprocessor">#define __ALSA_HWDEP_H</span> 00030 <span class="preprocessor"></span> 00031 <span class="preprocessor">#ifdef __cplusplus</span> 00032 <span class="preprocessor"></span><span class="keyword">extern</span> <span class="stringliteral">"C"</span> { 00033 <span class="preprocessor">#endif</span> 00034 <span class="preprocessor"></span> <a name="l00042"></a><a class="code" href="group___hw_dep.html#a23">00042</a> <span class="preprocessor">#define SND_HWDEP_DLSYM_VERSION _dlsym_hwdep_001</span> 00043 <span class="preprocessor"></span> <a name="l00045"></a><a class="code" href="group___hw_dep.html#a0">00045</a> <span class="keyword">typedef</span> <span class="keyword">struct </span>_snd_hwdep_info <a class="code" href="group___hw_dep.html#a0">snd_hwdep_info_t</a>; 00046 <a name="l00048"></a><a class="code" href="group___hw_dep.html#a29">00048</a> <span class="keyword">typedef</span> <span class="keyword">enum</span> <a class="code" href="group___hw_dep.html#a29">_snd_hwdep_iface</a> { 00049 <a class="code" href="group___hw_dep.html#a29a10">SND_HWDEP_IFACE_OPL2</a> = 0, 00050 <a class="code" href="group___hw_dep.html#a29a11">SND_HWDEP_IFACE_OPL3</a>, 00051 <a class="code" href="group___hw_dep.html#a29a12">SND_HWDEP_IFACE_OPL4</a>, 00052 <a class="code" href="group___hw_dep.html#a29a13">SND_HWDEP_IFACE_SB16CSP</a>, 00053 <a class="code" href="group___hw_dep.html#a29a14">SND_HWDEP_IFACE_EMU10K1</a>, 00054 <a class="code" href="group___hw_dep.html#a29a15">SND_HWDEP_IFACE_YSS225</a>, 00055 <a class="code" href="group___hw_dep.html#a29a16">SND_HWDEP_IFACE_ICS2115</a>, 00056 <a class="code" href="group___hw_dep.html#a29a17">SND_HWDEP_IFACE_LAST</a> = <a class="code" href="group___hw_dep.html#a29a16">SND_HWDEP_IFACE_ICS2115</a> 00057 } <a class="code" href="group___hw_dep.html#a1">snd_hwdep_iface_t</a>; 00058 <a name="l00060"></a><a class="code" href="group___hw_dep.html#a24">00060</a> <span class="preprocessor">#define SND_HWDEP_OPEN_READ (O_RDONLY)</span> 00061 <span class="preprocessor"></span> <a name="l00062"></a><a class="code" href="group___hw_dep.html#a25">00062</a> <span class="preprocessor">#define SND_HWDEP_OPEN_WRITE (O_WRONLY)</span> 00063 <span class="preprocessor"></span> <a name="l00064"></a><a class="code" href="group___hw_dep.html#a26">00064</a> <span class="preprocessor">#define SND_HWDEP_OPEN_DUPLEX (O_RDWR)</span> 00065 <span class="preprocessor"></span> <a name="l00066"></a><a class="code" href="group___hw_dep.html#a27">00066</a> <span class="preprocessor">#define SND_HWDEP_OPEN_NONBLOCK (O_NONBLOCK)</span> 00067 <span class="preprocessor"></span> <a name="l00069"></a><a class="code" href="group___hw_dep.html#a30">00069</a> <span class="keyword">typedef</span> <span class="keyword">enum</span> <a class="code" href="group___hw_dep.html#a30">_snd_hwdep_type</a> { 00071 <a class="code" href="group___hw_dep.html#a30a18">SND_HWDEP_TYPE_HW</a>, 00073 <a class="code" href="group___hw_dep.html#a30a19">SND_HWDEP_TYPE_SHM</a>, 00075 <a class="code" href="group___hw_dep.html#a30a20">SND_HWDEP_TYPE_INET</a> 00076 } <a class="code" href="group___hw_dep.html#a2">snd_hwdep_type_t</a>; 00077 <a name="l00079"></a><a class="code" href="group___hw_dep.html#a3">00079</a> <span class="keyword">typedef</span> <span class="keyword">struct </span>_snd_hwdep <a class="code" href="group___hw_dep.html#a3">snd_hwdep_t</a>; 00080 00081 <span class="keywordtype">int</span> <a class="code" href="group___hw_dep.html#a4">snd_hwdep_open</a>(<a class="code" href="group___hw_dep.html#a3">snd_hwdep_t</a> **hwdep, <span class="keyword">const</span> <span class="keywordtype">char</span> *name, <span class="keywordtype">int</span> mode); 00082 <span class="keywordtype">int</span> <a class="code" href="group___hw_dep.html#a5">snd_hwdep_close</a>(<a class="code" href="group___hw_dep.html#a3">snd_hwdep_t</a> *hwdep); 00083 <span class="keywordtype">int</span> <a class="code" href="group___hw_dep.html#a6">snd_hwdep_poll_descriptors</a>(<a class="code" href="group___hw_dep.html#a3">snd_hwdep_t</a> *hwdep, <span class="keyword">struct</span> pollfd *pfds, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> space); 00084 <span class="keywordtype">int</span> <a class="code" href="group___hw_dep.html#a7">snd_hwdep_poll_descriptors_revents</a>(<a class="code" href="group___hw_dep.html#a3">snd_hwdep_t</a> *hwdep, <span class="keyword">struct</span> pollfd *pfds, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> nfds, <span class="keywordtype">unsigned</span> <span class="keywordtype">short</span> *revents); 00085 <span class="keywordtype">int</span> <a class="code" href="group___hw_dep.html#a8">snd_hwdep_nonblock</a>(<a class="code" href="group___hw_dep.html#a3">snd_hwdep_t</a> *hwdep, <span class="keywordtype">int</span> nonblock); 00086 <span class="keywordtype">int</span> <a class="code" href="group___hw_dep.html#a9">snd_hwdep_info</a>(<a class="code" href="group___hw_dep.html#a3">snd_hwdep_t</a> *hwdep, <a class="code" href="group___hw_dep.html#a0">snd_hwdep_info_t</a> * info); 00087 <span class="keywordtype">int</span> <a class="code" href="group___hw_dep.html#a10">snd_hwdep_ioctl</a>(<a class="code" href="group___hw_dep.html#a3">snd_hwdep_t</a> *hwdep, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> request, <span class="keywordtype">void</span> * arg); 00088 ssize_t <a class="code" href="group___hw_dep.html#a11">snd_hwdep_write</a>(<a class="code" href="group___hw_dep.html#a3">snd_hwdep_t</a> *hwdep, <span class="keyword">const</span> <span class="keywordtype">void</span> *buffer, size_t size); 00089 ssize_t <a class="code" href="group___hw_dep.html#a12">snd_hwdep_read</a>(<a class="code" href="group___hw_dep.html#a3">snd_hwdep_t</a> *hwdep, <span class="keywordtype">void</span> *buffer, size_t size); 00090 00091 size_t <a class="code" href="group___hw_dep.html#a13">snd_hwdep_info_sizeof</a>(<span class="keywordtype">void</span>); <a name="l00093"></a><a class="code" href="group___hw_dep.html#a28">00093</a> <span class="preprocessor">#define snd_hwdep_info_alloca(ptr) do { assert(ptr); *ptr = (snd_hwdep_info_t *) alloca(snd_hwdep_info_sizeof()); memset(*ptr, 0, snd_hwdep_info_sizeof()); } while (0)</span> 00094 <span class="preprocessor"></span><span class="keywordtype">int</span> <a class="code" href="group___hw_dep.html#a14">snd_hwdep_info_malloc</a>(<a class="code" href="group___hw_dep.html#a0">snd_hwdep_info_t</a> **ptr); 00095 <span class="keywordtype">void</span> <a class="code" href="group___hw_dep.html#a15">snd_hwdep_info_free</a>(<a class="code" href="group___hw_dep.html#a0">snd_hwdep_info_t</a> *obj); 00096 <span class="keywordtype">void</span> <a class="code" href="group___hw_dep.html#a16">snd_hwdep_info_copy</a>(<a class="code" href="group___hw_dep.html#a0">snd_hwdep_info_t</a> *dst, <span class="keyword">const</span> <a class="code" href="group___hw_dep.html#a0">snd_hwdep_info_t</a> *src); 00097 00098 <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="group___hw_dep.html#a17">snd_hwdep_info_get_device</a>(<span class="keyword">const</span> <a class="code" href="group___hw_dep.html#a0">snd_hwdep_info_t</a> *obj); 00099 <span class="keywordtype">int</span> <a class="code" href="group___hw_dep.html#a18">snd_hwdep_info_get_card</a>(<span class="keyword">const</span> <a class="code" href="group___hw_dep.html#a0">snd_hwdep_info_t</a> *obj); 00100 <span class="keyword">const</span> <span class="keywordtype">char</span> *<a class="code" href="group___hw_dep.html#a19">snd_hwdep_info_get_id</a>(<span class="keyword">const</span> <a class="code" href="group___hw_dep.html#a0">snd_hwdep_info_t</a> *obj); 00101 <span class="keyword">const</span> <span class="keywordtype">char</span> *<a class="code" href="group___hw_dep.html#a20">snd_hwdep_info_get_name</a>(<span class="keyword">const</span> <a class="code" href="group___hw_dep.html#a0">snd_hwdep_info_t</a> *obj); 00102 <a class="code" href="group___hw_dep.html#a1">snd_hwdep_iface_t</a> <a class="code" href="group___hw_dep.html#a21">snd_hwdep_info_get_iface</a>(<span class="keyword">const</span> <a class="code" href="group___hw_dep.html#a0">snd_hwdep_info_t</a> *obj); 00103 <span class="keywordtype">void</span> <a class="code" href="group___hw_dep.html#a22">snd_hwdep_info_set_device</a>(<a class="code" href="group___hw_dep.html#a0">snd_hwdep_info_t</a> *obj, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> val); 00104 00107 <span class="preprocessor">#ifdef __cplusplus</span> 00108 <span class="preprocessor"></span>} 00109 <span class="preprocessor">#endif</span> 00110 <span class="preprocessor"></span> 00111 <span class="preprocessor">#endif </span><span class="comment">/* __ALSA_HWDEP_H */</span> 00112 </pre></div><hr><address style="align: right;"><small>Generated on Wed Apr 2 16:06:31 2003 for ALSA project - the C library reference by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 width=110 height=53></a>1.2.18 </small></address> </body> </html>