1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>libacpi: list.c File Reference</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.5.2 -->
<div class="tabs">
<ul>
<li><a href="index.html"><span>Main Page</span></a></li>
<li><a href="annotated.html"><span>Classes</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>File Members</span></a></li>
</ul>
</div>
<h1>list.c File Reference</h1><code>#include <stdio.h></code><br>
<code>#include <string.h></code><br>
<code>#include <stdlib.h></code><br>
<code>#include <dirent.h></code><br>
<code>#include "<a class="el" href="list_8h-source.html">list.h</a>"</code><br>
<p>
Include dependency graph for list.c:<p><center><img src="list_8c__incl.png" border="0" usemap="#list.c_map" alt=""></center>
<map name="list.c_map">
<area shape="rect" href="list_8h.html" title="list.h" alt="" coords="109,208,157,235"></map>
<p>
<a href="list_8c-source.html">Go to the source code of this file.</a><table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="list_8c.html#8779934af9269ac85b5eda546da2285c">delete_list</a> (<a class="el" href="structlist__t.html">list_t</a> *lst)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="structlist__t.html">list_t</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="list_8c.html#ac821e6d16d9494f9b8ffc3f9cd0aec4">dir_list</a> (char *dir)</td></tr>
</table>
<hr><h2>Function Documentation</h2>
<a class="anchor" name="8779934af9269ac85b5eda546da2285c"></a><!-- doxytag: member="list.c::delete_list" ref="8779934af9269ac85b5eda546da2285c" args="(list_t *lst)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void delete_list </td>
<td>(</td>
<td class="paramtype"><a class="el" href="structlist__t.html">list_t</a> * </td>
<td class="paramname"> <em>lst</em> </td>
<td> ) </td>
<td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Delete linked list <dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>lst</em> </td><td>list to delete </td></tr>
</table>
</dl>
<p>
Definition at line <a class="el" href="list_8c-source.html#l00046">46</a> of file <a class="el" href="list_8c-source.html">list.c</a>.
<p>
References <a class="el" href="list_8h-source.html#l00027">list_t::last</a>, and <a class="el" href="list_8h-source.html#l00026">list_t::top</a>.
<p>
Referenced by <a class="el" href="libacpi_8c-source.html#l00211">init_acpi_acadapt()</a>, <a class="el" href="libacpi_8c-source.html#l00139">init_acpi_batt()</a>, <a class="el" href="libacpi_8c-source.html#l00264">init_acpi_fan()</a>, and <a class="el" href="libacpi_8c-source.html#l00298">init_acpi_thermal()</a>.
<p>
Here is the caller graph for this function:<p><center><img src="list_8c_8779934af9269ac85b5eda546da2285c_icgraph.png" border="0" usemap="#list_8c_8779934af9269ac85b5eda546da2285c_icgraph_map" alt=""></center>
<map name="list_8c_8779934af9269ac85b5eda546da2285c_icgraph_map">
<area shape="rect" href="libacpi_8h.html#027286cd397157bdbf9e551ef510cb59" title="init_acpi_acadapt" alt="" coords="132,5,247,32"><area shape="rect" href="libacpi_8h.html#b63d686528f867234559a0bd829f9a33" title="init_acpi_batt" alt="" coords="143,56,236,83"><area shape="rect" href="libacpi_8h.html#3ee17a37e660f31b7b7e5f2f0896851b" title="init_acpi_fan" alt="" coords="144,107,235,133"><area shape="rect" href="libacpi_8h.html#b46f89c7d7ff338842d7619c7392c0bf" title="init_acpi_thermal" alt="" coords="132,157,247,184"></map>
</div>
</div><p>
<a class="anchor" name="ac821e6d16d9494f9b8ffc3f9cd0aec4"></a><!-- doxytag: member="list.c::dir_list" ref="ac821e6d16d9494f9b8ffc3f9cd0aec4" args="(char *dir)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="structlist__t.html">list_t</a>* dir_list </td>
<td>(</td>
<td class="paramtype">char * </td>
<td class="paramname"> <em>dir</em> </td>
<td> ) </td>
<td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Lists contents (for libacpi directories) of a directory and return them in a linked list <dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>dir</em> </td><td>directory to list </td></tr>
</table>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>linked list </dd></dl>
<p>
Definition at line <a class="el" href="list_8c-source.html#l00061">61</a> of file <a class="el" href="list_8c-source.html">list.c</a>.
<p>
Referenced by <a class="el" href="libacpi_8c-source.html#l00211">init_acpi_acadapt()</a>, <a class="el" href="libacpi_8c-source.html#l00139">init_acpi_batt()</a>, <a class="el" href="libacpi_8c-source.html#l00264">init_acpi_fan()</a>, and <a class="el" href="libacpi_8c-source.html#l00298">init_acpi_thermal()</a>.
<p>
Here is the caller graph for this function:<p><center><img src="list_8c_ac821e6d16d9494f9b8ffc3f9cd0aec4_icgraph.png" border="0" usemap="#list_8c_ac821e6d16d9494f9b8ffc3f9cd0aec4_icgraph_map" alt=""></center>
<map name="list_8c_ac821e6d16d9494f9b8ffc3f9cd0aec4_icgraph_map">
<area shape="rect" href="libacpi_8h.html#027286cd397157bdbf9e551ef510cb59" title="init_acpi_acadapt" alt="" coords="113,5,228,32"><area shape="rect" href="libacpi_8h.html#b63d686528f867234559a0bd829f9a33" title="init_acpi_batt" alt="" coords="124,56,217,83"><area shape="rect" href="libacpi_8h.html#3ee17a37e660f31b7b7e5f2f0896851b" title="init_acpi_fan" alt="" coords="125,107,216,133"><area shape="rect" href="libacpi_8h.html#b46f89c7d7ff338842d7619c7392c0bf" title="init_acpi_thermal" alt="" coords="113,157,228,184"></map>
</div>
</div><p>
<hr size="1"><address style="text-align: right;"><small>Generated on Sun Jul 29 14:09:40 2007 for libacpi by
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.2 </small></address>
</body>
</html>
|