Project

General

Profile

Revision 242

Wireless library licensed.

View differences:

queue_8h-source.html
14 14
  </ul>
15 15
</div>
16 16
<h1>queue.h</h1><a href="queue_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 
17
<a name="l00010"></a>00010 <span class="preprocessor">#ifndef WIRELESS_QUEUE_H</span>
18
<a name="l00011"></a>00011 <span class="preprocessor"></span><span class="preprocessor">#define WIRELESS_QUEUE_H</span>
19
<a name="l00012"></a>00012 <span class="preprocessor"></span>
20
<a name="l00013"></a>00013 <span class="keyword">struct </span><a class="code" href="structnode__def.html">node_def</a>;
21
<a name="l00014"></a>00014 
22
<a name="l00028"></a><a class="code" href="structQueue.html">00028</a> <span class="keyword">typedef</span> <span class="keyword">struct</span>
23
<a name="l00029"></a>00029 {
24
<a name="l00033"></a><a class="code" href="structQueue.html#773cee3afdf5fbe12a225c48123b1e39">00033</a>         <span class="keyword">struct </span><a class="code" href="structnode__def.html">node_def</a>* head;
25
<a name="l00037"></a><a class="code" href="structQueue.html#85703d406e92d3aa92c3e9dbfd0e3007">00037</a>         <span class="keyword">struct </span><a class="code" href="structnode__def.html">node_def</a>* tail;
26
<a name="l00041"></a><a class="code" href="structQueue.html#c7d9701d244e3ba255ef8556e0562dc6">00041</a>         <span class="keywordtype">int</span> size;
27
<a name="l00042"></a>00042 } <a class="code" href="structQueue.html">Queue</a>;
28
<a name="l00043"></a>00043 
29
<a name="l00045"></a>00045 <a class="code" href="structQueue.html">Queue</a>* <a class="code" href="group__queue.html#gd79af6a8d562cb911d93f35b8825e148" title="Create a new queue.">queue_create</a>(<span class="keywordtype">void</span>);
30
<a name="l00047"></a>00047 <span class="keywordtype">void</span> <a class="code" href="group__queue.html#gd21ee75924298937673e2b8d66665466" title="Destroy a queue.">queue_destroy</a>(<a class="code" href="structQueue.html">Queue</a>* q);
31
<a name="l00049"></a>00049 <span class="keywordtype">void</span> <a class="code" href="group__queue.html#gcdb01f4d0c861c4981829920d3973b77" title="Add an element to a queue.">queue_add</a>(<a class="code" href="structQueue.html">Queue</a>* q, <span class="keywordtype">void</span>* item);
32
<a name="l00051"></a>00051 <span class="keywordtype">void</span>* <a class="code" href="group__queue.html#gef91e5f119b77101f6c2e23eb1803059" title="Remove an element from a queue.">queue_remove</a>(<a class="code" href="structQueue.html">Queue</a>* q);
33
<a name="l00053"></a>00053 <span class="keywordtype">void</span> <a class="code" href="group__queue.html#gbfe7f6f65eaffa1ee166811f259807e4" title="Remove all instances of a given element from a queue.">queue_remove_all</a>(<a class="code" href="structQueue.html">Queue</a>* q, <span class="keywordtype">void</span>* item);
34
<a name="l00055"></a>00055 <span class="keywordtype">int</span> <a class="code" href="group__queue.html#g97ae0b085c41d49c8a24e1e506967f9b" title="Get the size of a queue.">queue_size</a>(<a class="code" href="structQueue.html">Queue</a>* q);
35
<a name="l00057"></a>00057 <span class="keywordtype">int</span> <a class="code" href="group__queue.html#ga67a7f9940e9bbf21320a6f41e60998e" title="Check if the queue is empty.">queue_is_empty</a>(<a class="code" href="structQueue.html">Queue</a>* q);
36
<a name="l00058"></a>00058 
37
<a name="l00062"></a>00062 <span class="preprocessor">#endif</span>
38
</pre></div><hr size="1"><address style="text-align: right;"><small>Generated on Thu Nov 8 22:16:24 2007 for libwireless by&nbsp;
17
<a name="l00035"></a>00035 <span class="preprocessor">#ifndef WIRELESS_QUEUE_H</span>
18
<a name="l00036"></a>00036 <span class="preprocessor"></span><span class="preprocessor">#define WIRELESS_QUEUE_H</span>
19
<a name="l00037"></a>00037 <span class="preprocessor"></span>
20
<a name="l00038"></a>00038 <span class="keyword">struct </span><a class="code" href="structnode__def.html">node_def</a>;
21
<a name="l00039"></a>00039 
22
<a name="l00053"></a><a class="code" href="structQueue.html">00053</a> <span class="keyword">typedef</span> <span class="keyword">struct</span>
23
<a name="l00054"></a>00054 {
24
<a name="l00058"></a><a class="code" href="structQueue.html#773cee3afdf5fbe12a225c48123b1e39">00058</a>         <span class="keyword">struct </span><a class="code" href="structnode__def.html">node_def</a>* head;
25
<a name="l00062"></a><a class="code" href="structQueue.html#85703d406e92d3aa92c3e9dbfd0e3007">00062</a>         <span class="keyword">struct </span><a class="code" href="structnode__def.html">node_def</a>* tail;
26
<a name="l00066"></a><a class="code" href="structQueue.html#c7d9701d244e3ba255ef8556e0562dc6">00066</a>         <span class="keywordtype">int</span> size;
27
<a name="l00067"></a>00067 } <a class="code" href="structQueue.html">Queue</a>;
28
<a name="l00068"></a>00068 
29
<a name="l00070"></a>00070 <a class="code" href="structQueue.html">Queue</a>* <a class="code" href="group__queue.html#gd79af6a8d562cb911d93f35b8825e148" title="Create a new queue.">queue_create</a>(<span class="keywordtype">void</span>);
30
<a name="l00072"></a>00072 <span class="keywordtype">void</span> <a class="code" href="group__queue.html#gd21ee75924298937673e2b8d66665466" title="Destroy a queue.">queue_destroy</a>(<a class="code" href="structQueue.html">Queue</a>* q);
31
<a name="l00074"></a>00074 <span class="keywordtype">void</span> <a class="code" href="group__queue.html#gcdb01f4d0c861c4981829920d3973b77" title="Add an element to a queue.">queue_add</a>(<a class="code" href="structQueue.html">Queue</a>* q, <span class="keywordtype">void</span>* item);
32
<a name="l00076"></a>00076 <span class="keywordtype">void</span>* <a class="code" href="group__queue.html#gef91e5f119b77101f6c2e23eb1803059" title="Remove an element from a queue.">queue_remove</a>(<a class="code" href="structQueue.html">Queue</a>* q);
33
<a name="l00078"></a>00078 <span class="keywordtype">void</span> <a class="code" href="group__queue.html#gbfe7f6f65eaffa1ee166811f259807e4" title="Remove all instances of a given element from a queue.">queue_remove_all</a>(<a class="code" href="structQueue.html">Queue</a>* q, <span class="keywordtype">void</span>* item);
34
<a name="l00080"></a>00080 <span class="keywordtype">int</span> <a class="code" href="group__queue.html#g97ae0b085c41d49c8a24e1e506967f9b" title="Get the size of a queue.">queue_size</a>(<a class="code" href="structQueue.html">Queue</a>* q);
35
<a name="l00082"></a>00082 <span class="keywordtype">int</span> <a class="code" href="group__queue.html#ga67a7f9940e9bbf21320a6f41e60998e" title="Check if the queue is empty.">queue_is_empty</a>(<a class="code" href="structQueue.html">Queue</a>* q);
36
<a name="l00083"></a>00083 
37
<a name="l00087"></a>00087 <span class="preprocessor">#endif</span>
38
<a name="l00088"></a>00088 <span class="preprocessor"></span>
39
</pre></div><hr size="1"><address style="text-align: right;"><small>Generated on Thu Nov 8 23:27:22 2007 for libwireless by&nbsp;
39 40
<a href="http://www.doxygen.org/index.html">
40 41
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.3 </small></address>
41 42
</body>

Also available in: Unified diff