Sophie

Sophie

distrib > * > cooker > x86_64 > by-pkgid > 8092ed20821fac5ed4b1a593fb4ef021 > files > 66

lib64cddb-devel-1.3.2-5.x86_64.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>libcddb: ll.h Source File</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.3.9.1 -->
<div class="qindex"><a class="qindex" href="index.html">Main&nbsp;Page</a> | <a class="qindex" href="dirs.html">Directories</a> | <a class="qindex" href="files.html">File&nbsp;List</a> | <a class="qindex" href="globals.html">File&nbsp;Members</a></div>
<div class="nav">
<a class="el" href="dir_000000.html">include</a>&nbsp;/&nbsp;<a class="el" href="dir_000001.html">cddb</a></div>
<h1>ll.h</h1><a href="ll_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment">00001 <span class="comment">/*</span>
00002 <span class="comment">    $Id: ll.h,v 1.1 2005/05/29 08:24:04 airborne Exp $</span>
00003 <span class="comment"></span>
00004 <span class="comment">    Copyright (C) 2005 Kris Verbeeck &lt;airborne@advalvas.be&gt;</span>
00005 <span class="comment"></span>
00006 <span class="comment">    This library is free software; you can redistribute it and/or</span>
00007 <span class="comment">    modify it under the terms of the GNU Library General Public</span>
00008 <span class="comment">    License as published by the Free Software Foundation; either</span>
00009 <span class="comment">    version 2 of the License, or (at your option) any later version.</span>
00010 <span class="comment"></span>
00011 <span class="comment">    This library is distributed in the hope that it will be useful,</span>
00012 <span class="comment">    but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
00013 <span class="comment">    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU</span>
00014 <span class="comment">    Library General Public License for more details.</span>
00015 <span class="comment"></span>
00016 <span class="comment">    You should have received a copy of the GNU Library General Public</span>
00017 <span class="comment">    License along with this library; if not, write to the</span>
00018 <span class="comment">    Free Software Foundation, Inc., 59 Temple Place - Suite 330,</span>
00019 <span class="comment">    Boston, MA  02111-1307, USA.</span>
00020 <span class="comment">*/</span>
00021 
00022 <span class="preprocessor">#ifndef LL_H</span>
<a name="l00023"></a><a class="code" href="ll_8h.html#a0">00023</a> <span class="preprocessor"></span><span class="preprocessor">#define LL_H 1</span>
00024 <span class="preprocessor"></span>
00025 <span class="preprocessor">#ifdef __cplusplus</span>
00026 <span class="preprocessor"></span>    <span class="keyword">extern</span> <span class="stringliteral">"C"</span> {
00027 <span class="preprocessor">#endif</span>
00028 <span class="preprocessor"></span>
00029 
00030 <span class="comment">/* --- type definitions */</span>
00031 
00032 
<a name="l00036"></a><a class="code" href="ll_8h.html#a1">00036</a> <span class="keyword">typedef</span> <span class="keyword">struct </span>elem_s <a class="code" href="ll_8h.html#a1">elem_t</a>;
00037 
<a name="l00041"></a><a class="code" href="ll_8h.html#a2">00041</a> <span class="keyword">typedef</span> <span class="keyword">struct </span>list_s <a class="code" href="ll_8h.html#a2">list_t</a>;
00042 
<a name="l00046"></a><a class="code" href="ll_8h.html#a3">00046</a> <span class="keyword">typedef</span> <span class="keywordtype">void</span> <a class="code" href="ll_8h.html#a3">elem_destroy_cb</a>(<span class="keywordtype">void</span> *data);
00047 
00048 
00049 <span class="comment">/* --- construction / destruction */</span>
00050 
00051 
00059 <a class="code" href="ll_8h.html#a2">list_t</a> *<a class="code" href="ll_8h.html#a4">list_new</a>(elem_destroy_cb *cb);
00060 
00068 <span class="keywordtype">void</span> <a class="code" href="ll_8h.html#a5">list_destroy</a>(list_t *list);
00069 
00077 <span class="keywordtype">void</span> <a class="code" href="ll_8h.html#a6">list_flush</a>(list_t *list);
00078 
00079 
00080 <span class="comment">/* --- list elements --- */</span>
00081 
00089 <span class="keywordtype">void</span> *<a class="code" href="ll_8h.html#a7">element_data</a>(elem_t *elem);
00090 
00091 
00092 <span class="comment">/* --- getters &amp; setters --- */</span>
00093 
00094 
00103 <a class="code" href="ll_8h.html#a1">elem_t</a> *<a class="code" href="ll_8h.html#a8">list_append</a>(list_t *list, <span class="keywordtype">void</span> *data);
00104 
00111 <span class="keywordtype">int</span> <a class="code" href="ll_8h.html#a9">list_size</a>(list_t *list);
00112 
00121 <a class="code" href="ll_8h.html#a1">elem_t</a> *<a class="code" href="ll_8h.html#a10">list_get</a>(list_t *list, <span class="keywordtype">int</span> idx);
00122 
00129 <a class="code" href="ll_8h.html#a1">elem_t</a> *<a class="code" href="ll_8h.html#a11">list_first</a>(list_t *list);
00130 
00138 <a class="code" href="ll_8h.html#a1">elem_t</a> *<a class="code" href="ll_8h.html#a12">list_next</a>(list_t *list);
00139 
00140 
00141 <span class="comment">/* --- iteration */</span>
00142 
00143 
00144 <span class="preprocessor">#ifdef __cplusplus</span>
00145 <span class="preprocessor"></span>    }
00146 <span class="preprocessor">#endif</span>
00147 <span class="preprocessor"></span>
00148 <span class="preprocessor">#endif </span><span class="comment">/* LL_H */</span>
</pre></div><hr size="1"><address style="align: right;"><small>Generated on Sat Jul 9 11:18:30 2005 for libcddb by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.3.9.1 </small></address>
</body>
</html>