Sophie

Sophie

distrib > Fedora > 15 > i386 > by-pkgid > e3a718fcad37ff363f65d6a6e994e272 > files > 297

ldns-devel-1.6.12-1.fc15.i686.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>ldns documentation</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
</head><body>
<div class="logo">
<img src="LogoInGradientBar2-y100.png"/>
</div>
<!-- Generated by Doxygen 1.7.4 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li><a href="dirs.html"><span>Directories</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>Globals</span></a></li>
    </ul>
  </div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="dir_7a7a565456b510ac01baf8655647d8a2.html">ldns</a>      </li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="headertitle">
<div class="title">zone.h</div>  </div>
</div>
<div class="contents">
<a href="zone_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 
<a name="l00023"></a>00023 <span class="preprocessor">#ifndef LDNS_ZONE_H</span>
<a name="l00024"></a>00024 <span class="preprocessor"></span><span class="preprocessor">#define LDNS_ZONE_H</span>
<a name="l00025"></a>00025 <span class="preprocessor"></span>
<a name="l00026"></a>00026 <span class="preprocessor">#include &lt;<a class="code" href="common_8h.html" title="Common definitions for LDNS.">ldns/common.h</a>&gt;</span>
<a name="l00027"></a>00027 <span class="preprocessor">#include &lt;<a class="code" href="rdata_8h.html" title="Defines ldns_rdf and functions to manipulate those.">ldns/rdata.h</a>&gt;</span>
<a name="l00028"></a>00028 <span class="preprocessor">#include &lt;<a class="code" href="rr_8h.html" title="Contains the definition of ldns_rr and functions to manipulate those.">ldns/rr.h</a>&gt;</span>
<a name="l00029"></a>00029 <span class="preprocessor">#include &lt;<a class="code" href="error_8h.html" title="Defines error numbers and functions to translate those to a readable string.">ldns/error.h</a>&gt;</span>
<a name="l00030"></a>00030 
<a name="l00031"></a>00031 <span class="preprocessor">#ifdef __cplusplus</span>
<a name="l00032"></a>00032 <span class="preprocessor"></span><span class="keyword">extern</span> <span class="stringliteral">&quot;C&quot;</span> {
<a name="l00033"></a>00033 <span class="preprocessor">#endif</span>
<a name="l00034"></a>00034 <span class="preprocessor"></span>
<a name="l00042"></a><a class="code" href="structldns__struct__zone.html">00042</a> <span class="keyword">struct </span><a class="code" href="structldns__struct__zone.html" title="DNS Zone.">ldns_struct_zone</a>
<a name="l00043"></a>00043 {
<a name="l00045"></a><a class="code" href="structldns__struct__zone.html#a9f1ac6ee8f183c1dc6cd18926755e709">00045</a>         <a class="code" href="structldns__struct__rr.html" title="Resource Record.">ldns_rr</a>         *<a class="code" href="structldns__struct__zone.html#a9f1ac6ee8f183c1dc6cd18926755e709" title="the soa defines a zone">_soa</a>;
<a name="l00046"></a>00046         <span class="comment">/* basicly a zone is a list of rr&#39;s */</span>
<a name="l00047"></a><a class="code" href="structldns__struct__zone.html#a445c79fe2d1313ad669cf6963e907baa">00047</a>         <a class="code" href="structldns__struct__rr__list.html" title="List or Set of Resource Records.">ldns_rr_list</a>    *<a class="code" href="structldns__struct__zone.html#a445c79fe2d1313ad669cf6963e907baa">_rrs</a>;
<a name="l00048"></a>00048         <span class="comment">/* we could change this to be a b-tree etc etc todo */</span>
<a name="l00049"></a>00049 };
<a name="l00050"></a><a class="code" href="zone_8h.html#af8077ee2090d473d6c598fa95c2826b3">00050</a> <span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="structldns__struct__zone.html" title="DNS Zone.">ldns_struct_zone</a> <a class="code" href="structldns__struct__zone.html" title="DNS Zone.">ldns_zone</a>;      
<a name="l00051"></a>00051         
<a name="l00056"></a>00056 <a class="code" href="structldns__struct__zone.html" title="DNS Zone.">ldns_zone</a> * <a class="code" href="zone_8c.html#a0f700a61daf31429b1c2b3f0426e186e" title="create a new ldns_zone structure">ldns_zone_new</a>(<span class="keywordtype">void</span>);
<a name="l00057"></a>00057 
<a name="l00063"></a>00063 <a class="code" href="structldns__struct__rr.html" title="Resource Record.">ldns_rr</a> * <a class="code" href="zone_8c.html#aae16d59c27e1f2292f8bd87604517e0c" title="Return the soa record of a zone.">ldns_zone_soa</a>(<span class="keyword">const</span> <a class="code" href="structldns__struct__zone.html" title="DNS Zone.">ldns_zone</a> *z);
<a name="l00064"></a>00064 
<a name="l00070"></a>00070 <span class="keywordtype">size_t</span> <a class="code" href="zone_8c.html#a1d07f36a06698624a121cfe61d50df66" title="Returns the number of resource records in the zone, NOT counting the SOA record.">ldns_zone_rr_count</a>(<span class="keyword">const</span> <a class="code" href="structldns__struct__zone.html" title="DNS Zone.">ldns_zone</a> *z);
<a name="l00071"></a>00071 
<a name="l00077"></a>00077 <span class="keywordtype">void</span> <a class="code" href="zone_8c.html#a07b0fcc3777e44bbb8940aaeeb2e3661" title="Set the zone&#39;s soa record.">ldns_zone_set_soa</a>(<a class="code" href="structldns__struct__zone.html" title="DNS Zone.">ldns_zone</a> *z, <a class="code" href="structldns__struct__rr.html" title="Resource Record.">ldns_rr</a> *soa);
<a name="l00078"></a>00078 
<a name="l00086"></a>00086 <a class="code" href="structldns__struct__rr__list.html" title="List or Set of Resource Records.">ldns_rr_list</a> * <a class="code" href="zone_8c.html#a5a75b7744ea0d91770d579730a84bbf9" title="Get a list of a zone&#39;s content.">ldns_zone_rrs</a>(<span class="keyword">const</span> <a class="code" href="structldns__struct__zone.html" title="DNS Zone.">ldns_zone</a> *z);
<a name="l00087"></a>00087 
<a name="l00093"></a>00093 <span class="keywordtype">void</span> <a class="code" href="zone_8c.html#a23fd3cc25ccd0ebc76f44746c56480f0" title="Set the zone&#39;s contents.">ldns_zone_set_rrs</a>(<a class="code" href="structldns__struct__zone.html" title="DNS Zone.">ldns_zone</a> *z, <a class="code" href="structldns__struct__rr__list.html" title="List or Set of Resource Records.">ldns_rr_list</a> *rrlist);
<a name="l00094"></a>00094 
<a name="l00102"></a>00102 <span class="keywordtype">bool</span> <a class="code" href="zone_8c.html#a73fef7a17efc9b4f48d1b11babf259a9" title="push an rrlist to a zone structure.">ldns_zone_push_rr_list</a>(<a class="code" href="structldns__struct__zone.html" title="DNS Zone.">ldns_zone</a> *z, <a class="code" href="structldns__struct__rr__list.html" title="List or Set of Resource Records.">ldns_rr_list</a> *list);
<a name="l00103"></a>00103 
<a name="l00111"></a>00111 <span class="keywordtype">bool</span> <a class="code" href="zone_8c.html#aa292fe9d4d934d13780d0a56de21ebe2" title="push an single rr to a zone structure.">ldns_zone_push_rr</a>(<a class="code" href="structldns__struct__zone.html" title="DNS Zone.">ldns_zone</a> *z, <a class="code" href="structldns__struct__rr.html" title="Resource Record.">ldns_rr</a> *rr);
<a name="l00112"></a>00112 
<a name="l00126"></a>00126 <a class="code" href="structldns__struct__rr__list.html" title="List or Set of Resource Records.">ldns_rr_list</a> *<a class="code" href="zone_8c.html#af344dcc4f5bf8335ad1376df12bbd119" title="Retrieve all resource records from the zone that are glue records.">ldns_zone_glue_rr_list</a>(<span class="keyword">const</span> <a class="code" href="structldns__struct__zone.html" title="DNS Zone.">ldns_zone</a> *z);
<a name="l00127"></a>00127 
<a name="l00138"></a>00138 <a class="code" href="error_8h.html#aaa6d98f86f535cf87b83b89e91f488f9">ldns_status</a> <a class="code" href="zone_8c.html#a9c19588cdd5e98ccd7072134c528dc05" title="Create a new zone from a file.">ldns_zone_new_frm_fp</a>(<a class="code" href="structldns__struct__zone.html" title="DNS Zone.">ldns_zone</a> **z, FILE *fp, <a class="code" href="structldns__struct__rdf.html" title="Resource record data field.">ldns_rdf</a> *origin, uint32_t ttl, <a class="code" href="rr_8h.html#aa11e99c7e7c630e03373f2a2cafc4ee9">ldns_rr_class</a> c);
<a name="l00139"></a>00139 
<a name="l00151"></a>00151 <a class="code" href="error_8h.html#aaa6d98f86f535cf87b83b89e91f488f9">ldns_status</a> <a class="code" href="zone_8c.html#accd66901157e00acd3b4b571aa7092b8">ldns_zone_new_frm_fp_l</a>(<a class="code" href="structldns__struct__zone.html" title="DNS Zone.">ldns_zone</a> **z, FILE *fp, <a class="code" href="structldns__struct__rdf.html" title="Resource record data field.">ldns_rdf</a> *origin, uint32_t ttl, <a class="code" href="rr_8h.html#aa11e99c7e7c630e03373f2a2cafc4ee9">ldns_rr_class</a> c, <span class="keywordtype">int</span> *line_nr);
<a name="l00152"></a>00152 
<a name="l00157"></a>00157 <span class="keywordtype">void</span> <a class="code" href="zone_8c.html#ac8358f7a42ac6402433dc2bc7532f26b" title="Frees the allocated memory for the zone, and the rr_list structure in it.">ldns_zone_free</a>(<a class="code" href="structldns__struct__zone.html" title="DNS Zone.">ldns_zone</a> *zone);
<a name="l00158"></a>00158 
<a name="l00164"></a>00164 <span class="keywordtype">void</span> <a class="code" href="zone_8c.html#a84e80b82e10bbc6939ecdfd556674c1a" title="Frees the allocated memory for the zone, the soa rr in it, and the rr_list structure in it...">ldns_zone_deep_free</a>(<a class="code" href="structldns__struct__zone.html" title="DNS Zone.">ldns_zone</a> *zone);
<a name="l00165"></a>00165 
<a name="l00170"></a>00170 <span class="keywordtype">void</span> <a class="code" href="zone_8c.html#ad929e3b1e4a25f676218a1507a7b4277" title="Sort the rrs in a zone, with the current impl.">ldns_zone_sort</a>(<a class="code" href="structldns__struct__zone.html" title="DNS Zone.">ldns_zone</a> *zone);
<a name="l00171"></a>00171 
<a name="l00172"></a>00172 <span class="preprocessor">#ifdef __cplusplus</span>
<a name="l00173"></a>00173 <span class="preprocessor"></span>}
<a name="l00174"></a>00174 <span class="preprocessor">#endif</span>
<a name="l00175"></a>00175 <span class="preprocessor"></span>
<a name="l00176"></a>00176 <span class="preprocessor">#endif </span><span class="comment">/* LDNS_ZONE_H */</span>
</pre></div></div>
</div>
<hr class="footer"/><address class="footer"><small>Generated on Wed Jan 11 2012 for ldns by&#160;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.4 </small></address>
</body>
</html>