Sophie

Sophie

distrib > Mageia > 4 > x86_64 > by-pkgid > 649ce3e180a8667bc4f320d982d7450e > files > 38

lib64cddb-devel-1.3.2-9.mga4.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: cddb_site.h Source File</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.4.6 -->
<div class="tabs">
  <ul>
    <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
    <li id="current"><a href="files.html"><span>Files</span></a></li>
    <li><a href="dirs.html"><span>Directories</span></a></li>
  </ul></div>
<div class="tabs">
  <ul>
    <li><a href="files.html"><span>File&nbsp;List</span></a></li>
    <li><a href="globals.html"><span>File&nbsp;Members</span></a></li>
  </ul></div>
<div class="nav">
<a class="el" href="dir_d95480e064f2cd25d4e283edd80a73aa.html">include</a>&nbsp;&raquo&nbsp;<a class="el" href="dir_847afe0584ab2be2f35afc524ae78865.html">cddb</a></div>
<h1>cddb_site.h</h1><a href="cddb__site_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/*</span>
<a name="l00002"></a>00002 <span class="comment">    $Id: cddb_site.h,v 1.3 2005/06/15 16:08:28 airborne Exp $</span>
<a name="l00003"></a>00003 <span class="comment"></span>
<a name="l00004"></a>00004 <span class="comment">    Copyright (C) 2005 Kris Verbeeck &lt;airborne@advalvas.be&gt;</span>
<a name="l00005"></a>00005 <span class="comment"></span>
<a name="l00006"></a>00006 <span class="comment">    This library is free software; you can redistribute it and/or</span>
<a name="l00007"></a>00007 <span class="comment">    modify it under the terms of the GNU Library General Public</span>
<a name="l00008"></a>00008 <span class="comment">    License as published by the Free Software Foundation; either</span>
<a name="l00009"></a>00009 <span class="comment">    version 2 of the License, or (at your option) any later version.</span>
<a name="l00010"></a>00010 <span class="comment"></span>
<a name="l00011"></a>00011 <span class="comment">    This library is distributed in the hope that it will be useful,</span>
<a name="l00012"></a>00012 <span class="comment">    but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
<a name="l00013"></a>00013 <span class="comment">    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU</span>
<a name="l00014"></a>00014 <span class="comment">    Library General Public License for more details.</span>
<a name="l00015"></a>00015 <span class="comment"></span>
<a name="l00016"></a>00016 <span class="comment">    You should have received a copy of the GNU Library General Public</span>
<a name="l00017"></a>00017 <span class="comment">    License along with this library; if not, write to the</span>
<a name="l00018"></a>00018 <span class="comment">    Free Software Foundation, Inc., 59 Temple Place - Suite 330,</span>
<a name="l00019"></a>00019 <span class="comment">    Boston, MA  02111-1307, USA.</span>
<a name="l00020"></a>00020 <span class="comment">*/</span>
<a name="l00021"></a>00021 
<a name="l00022"></a>00022 <span class="preprocessor">#ifndef CDDB_SITE_H</span>
<a name="l00023"></a><a class="code" href="cddb__site_8h.html#87c4a88456b03c359524afe96263a9b7">00023</a> <span class="preprocessor"></span><span class="preprocessor">#define CDDB_SITE_H 1</span>
<a name="l00024"></a>00024 <span class="preprocessor"></span>
<a name="l00025"></a>00025 <span class="preprocessor">#ifdef __cplusplus</span>
<a name="l00026"></a>00026 <span class="preprocessor"></span>    <span class="keyword">extern</span> <span class="stringliteral">"C"</span> {
<a name="l00027"></a>00027 <span class="preprocessor">#endif</span>
<a name="l00028"></a>00028 <span class="preprocessor"></span>
<a name="l00029"></a>00029 
<a name="l00030"></a>00030 <span class="preprocessor">#include "<a class="code" href="cddb__error_8h.html">cddb/cddb_error.h</a>"</span>
<a name="l00031"></a>00031 
<a name="l00032"></a>00032 
<a name="l00033"></a>00033 <span class="comment">/* --- type and structure definitions */</span>
<a name="l00034"></a>00034 
<a name="l00035"></a>00035 
<a name="l00040"></a><a class="code" href="cddb__site_8h.html#223d4652e8bcace6f2bf91c4023f54e8">00040</a> <span class="keyword">typedef</span> <span class="keyword">enum</span> {
<a name="l00041"></a>00041     <a class="code" href="cddb__site_8h.html#223d4652e8bcace6f2bf91c4023f54e8bcd35574f9605107025f6a3d3600dcf0">PROTO_UNKNOWN</a> = 0,          
<a name="l00042"></a>00042     <a class="code" href="cddb__site_8h.html#223d4652e8bcace6f2bf91c4023f54e893edee0512cf856498197cc2b9414d05">PROTO_CDDBP</a>,                
<a name="l00043"></a><a class="code" href="cddb__site_8h.html#223d4652e8bcace6f2bf91c4023f54e86d5ad1c7c1c8ff1a19a79368acd7ec77">00043</a>     <a class="code" href="cddb__site_8h.html#223d4652e8bcace6f2bf91c4023f54e86d5ad1c7c1c8ff1a19a79368acd7ec77">PROTO_HTTP</a>                  
<a name="l00044"></a>00044 } <a class="code" href="cddb__site_8h.html#223d4652e8bcace6f2bf91c4023f54e8">cddb_protocol_t</a>;
<a name="l00045"></a>00045 
<a name="l00050"></a><a class="code" href="cddb__site_8h.html#a47454e35766b6edce0cc0ba513b1685">00050</a> <span class="keyword">typedef</span> <span class="keyword">struct </span>cddb_site_s cddb_site_t;
<a name="l00051"></a>00051 
<a name="l00052"></a>00052 
<a name="l00053"></a>00053 <span class="comment">/* --- construction / destruction */</span>
<a name="l00054"></a>00054 
<a name="l00055"></a>00055 
<a name="l00061"></a>00061 cddb_site_t *<a class="code" href="cddb__site_8h.html#3100b0f99e13db87c2f3d9b6e5362566">cddb_site_new</a>(<span class="keywordtype">void</span>);
<a name="l00062"></a>00062 
<a name="l00068"></a>00068 <a class="code" href="cddb__error_8h.html#b8f3141dff6945177d70de613eff6ddb">cddb_error_t</a> <a class="code" href="cddb__site_8h.html#4280e018d33ed08be07e664eff922aba">cddb_site_destroy</a>(cddb_site_t *site);
<a name="l00069"></a>00069 
<a name="l00075"></a>00075 cddb_site_t *<a class="code" href="cddb__site_8h.html#e3f852394d59f0d446927a84eab0e1ca">cddb_site_clone</a>(cddb_site_t *site);
<a name="l00076"></a>00076 
<a name="l00077"></a>00077 
<a name="l00078"></a>00078 <span class="comment">/* --- setters / getters --- */</span>
<a name="l00079"></a>00079 
<a name="l00080"></a>00080 
<a name="l00089"></a>00089 <a class="code" href="cddb__error_8h.html#b8f3141dff6945177d70de613eff6ddb">cddb_error_t</a> <a class="code" href="cddb__site_8h.html#33fce18535b21062617dce43c54235c6">cddb_site_get_address</a>(<span class="keyword">const</span> cddb_site_t *site,
<a name="l00090"></a>00090                                    <span class="keyword">const</span> <span class="keywordtype">char</span> **address, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> *port);
<a name="l00091"></a>00091 
<a name="l00101"></a>00101 <a class="code" href="cddb__error_8h.html#b8f3141dff6945177d70de613eff6ddb">cddb_error_t</a> <a class="code" href="cddb__site_8h.html#51ebc6995b3e94391ad34304b9f05fec">cddb_site_set_address</a>(cddb_site_t *site,
<a name="l00102"></a>00102                                    <span class="keyword">const</span> <span class="keywordtype">char</span> *address, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> port);
<a name="l00103"></a>00103 
<a name="l00112"></a>00112 cddb_protocol_t <a class="code" href="cddb__site_8h.html#429cead9e586b5a0ca917dc15cf8eb4b">cddb_site_get_protocol</a>(<span class="keyword">const</span> cddb_site_t *site);
<a name="l00113"></a>00113 
<a name="l00123"></a>00123 <a class="code" href="cddb__error_8h.html#b8f3141dff6945177d70de613eff6ddb">cddb_error_t</a> <a class="code" href="cddb__site_8h.html#ca0cdcadc7abb3628038f3efa6c91f55">cddb_site_set_protocol</a>(cddb_site_t *site, cddb_protocol_t proto);
<a name="l00124"></a>00124 
<a name="l00132"></a>00132 <a class="code" href="cddb__error_8h.html#b8f3141dff6945177d70de613eff6ddb">cddb_error_t</a> <a class="code" href="cddb__site_8h.html#6a136347f014b8857706adb26220709a">cddb_site_get_query_path</a>(<span class="keyword">const</span> cddb_site_t *site,
<a name="l00133"></a>00133                                       <span class="keyword">const</span> <span class="keywordtype">char</span> **path);
<a name="l00134"></a>00134 
<a name="l00144"></a>00144 <a class="code" href="cddb__error_8h.html#b8f3141dff6945177d70de613eff6ddb">cddb_error_t</a> <a class="code" href="cddb__site_8h.html#bd6985bc0cf9af78b963e3fc0623258c">cddb_site_set_query_path</a>(cddb_site_t *site, <span class="keyword">const</span> <span class="keywordtype">char</span> *path);
<a name="l00145"></a>00145 
<a name="l00153"></a>00153 <a class="code" href="cddb__error_8h.html#b8f3141dff6945177d70de613eff6ddb">cddb_error_t</a> <a class="code" href="cddb__site_8h.html#23ffaa45a1a3cec749deb47710ec1572">cddb_site_get_submit_path</a>(<span class="keyword">const</span> cddb_site_t *site,
<a name="l00154"></a>00154                                        <span class="keyword">const</span> <span class="keywordtype">char</span> **path);
<a name="l00155"></a>00155 
<a name="l00165"></a>00165 <a class="code" href="cddb__error_8h.html#b8f3141dff6945177d70de613eff6ddb">cddb_error_t</a> <a class="code" href="cddb__site_8h.html#1376189c0eb74b07a76ef70889ce62ae">cddb_site_set_submit_path</a>(cddb_site_t *site, <span class="keyword">const</span> <span class="keywordtype">char</span> *path);
<a name="l00166"></a>00166 
<a name="l00181"></a>00181 <a class="code" href="cddb__error_8h.html#b8f3141dff6945177d70de613eff6ddb">cddb_error_t</a> <a class="code" href="cddb__site_8h.html#75c0e464d40885140ea1b97ffd453923">cddb_site_get_location</a>(<span class="keyword">const</span> cddb_site_t *site,
<a name="l00182"></a>00182                                     <span class="keywordtype">float</span> *latitude, <span class="keywordtype">float</span> *longitude);
<a name="l00183"></a>00183 
<a name="l00196"></a>00196 <a class="code" href="cddb__error_8h.html#b8f3141dff6945177d70de613eff6ddb">cddb_error_t</a> <a class="code" href="cddb__site_8h.html#dfa21836f21a02c5af196c0a66820897">cddb_site_set_location</a>(cddb_site_t *site,
<a name="l00197"></a>00197                                     <span class="keywordtype">float</span> latitude, <span class="keywordtype">float</span> longitude);
<a name="l00198"></a>00198 
<a name="l00206"></a>00206 <a class="code" href="cddb__error_8h.html#b8f3141dff6945177d70de613eff6ddb">cddb_error_t</a> <a class="code" href="cddb__site_8h.html#047da8d13078b40cd836c9136f5ae2c5">cddb_site_get_description</a>(<span class="keyword">const</span> cddb_site_t *site,
<a name="l00207"></a>00207                                        <span class="keyword">const</span> <span class="keywordtype">char</span> **desc);
<a name="l00208"></a>00208 
<a name="l00218"></a>00218 <a class="code" href="cddb__error_8h.html#b8f3141dff6945177d70de613eff6ddb">cddb_error_t</a> <a class="code" href="cddb__site_8h.html#a19e11c9b2041d952c90120915939442">cddb_site_set_description</a>(cddb_site_t *site, <span class="keyword">const</span> <span class="keywordtype">char</span> *desc);
<a name="l00219"></a>00219 
<a name="l00220"></a>00220 
<a name="l00221"></a>00221 <span class="comment">/* --- miscellaneous */</span>
<a name="l00222"></a>00222 
<a name="l00223"></a>00223 
<a name="l00232"></a>00232 <span class="keywordtype">int</span> <a class="code" href="cddb__site_8h.html#74f6eb57c618d37ffb1fdceee06333b0">cddb_site_parse</a>(cddb_site_t *site, <span class="keyword">const</span> <span class="keywordtype">char</span> *line);
<a name="l00233"></a>00233 
<a name="l00241"></a>00241 <a class="code" href="cddb__error_8h.html#b8f3141dff6945177d70de613eff6ddb">cddb_error_t</a> <a class="code" href="cddb__site_8h.html#a5f5a5e45f3daa06940f5c7c9acc562d">cddb_site_print</a>(<span class="keyword">const</span> cddb_site_t *site);
<a name="l00242"></a>00242 
<a name="l00243"></a>00243 
<a name="l00244"></a>00244 <span class="preprocessor">#ifdef __cplusplus</span>
<a name="l00245"></a>00245 <span class="preprocessor"></span>    }
<a name="l00246"></a>00246 <span class="preprocessor">#endif</span>
<a name="l00247"></a>00247 <span class="preprocessor"></span>
<a name="l00248"></a>00248 <span class="preprocessor">#endif </span><span class="comment">/* CDDB_SITE_H */</span>
</pre></div><hr size="1"><address style="align: right;"><small>Generated on Sun Oct 15 14:49:14 2006 for libcddb by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.6 </small></address>
</body>
</html>