<ahref="cache__manager_8h.html">Go to the documentation of this file.</a><divclass="fragment"><divclass="line"><aname="l00001"></a><spanclass="lineno"> 1</span> <spanclass="comment">/*</span></div>
<divclass="line"><aname="l00009"></a><spanclass="lineno"> 9</span> <spanclass="comment"> * Redistribution and use in source and binary forms, with or without</span></div>
<divclass="line"><aname="l00010"></a><spanclass="lineno"> 10</span> <spanclass="comment"> * modification, are permitted provided that the following conditions</span></div>
<divclass="line"><aname="l00011"></a><spanclass="lineno"> 11</span> <spanclass="comment"> * are met:</span></div>
<divclass="line"><aname="l00012"></a><spanclass="lineno"> 12</span> <spanclass="comment"> * 1. Redistributions of source code must retain the above copyright</span></div>
<divclass="line"><aname="l00013"></a><spanclass="lineno"> 13</span> <spanclass="comment"> * notice, this list of conditions and the following disclaimer.</span></div>
<divclass="line"><aname="l00014"></a><spanclass="lineno"> 14</span> <spanclass="comment"> * 2. Redistributions in binary form must reproduce the above copyright</span></div>
<divclass="line"><aname="l00015"></a><spanclass="lineno"> 15</span> <spanclass="comment"> * notice, this list of conditions and the following disclaimer in the</span></div>
<divclass="line"><aname="l00016"></a><spanclass="lineno"> 16</span> <spanclass="comment"> * documentation and/or other materials provided with the distribution.</span></div>
<divclass="line"><aname="l00018"></a><spanclass="lineno"> 18</span> <spanclass="comment"> * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS `AS IS'</span></div>
<divclass="line"><aname="l00019"></a><spanclass="lineno"> 19</span> <spanclass="comment"> * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE</span></div>
<divclass="line"><aname="l00020"></a><spanclass="lineno"> 20</span> <spanclass="comment"> * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE</span></div>
<divclass="line"><aname="l00021"></a><spanclass="lineno"> 21</span> <spanclass="comment"> * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE</span></div>
<divclass="line"><aname="l00022"></a><spanclass="lineno"> 22</span> <spanclass="comment"> * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR</span></div>
<divclass="line"><aname="l00023"></a><spanclass="lineno"> 23</span> <spanclass="comment"> * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF</span></div>
<divclass="line"><aname="l00024"></a><spanclass="lineno"> 24</span> <spanclass="comment"> * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS</span></div>
<divclass="line"><aname="l00025"></a><spanclass="lineno"> 25</span> <spanclass="comment"> * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN</span></div>
<divclass="line"><aname="l00026"></a><spanclass="lineno"> 26</span> <spanclass="comment"> * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)</span></div>
<divclass="line"><aname="l00027"></a><spanclass="lineno"> 27</span> <spanclass="comment"> * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE</span></div>
<divclass="line"><aname="l00028"></a><spanclass="lineno"> 28</span> <spanclass="comment"> * POSSIBILITY OF SUCH DAMAGE.</span></div>
<divclass="ttc"id="astructcache__param_html_acc75fa242d285962ff9451c0b875c18c"><divclass="ttname"><ahref="structcache__param.html#acc75fa242d285962ff9451c0b875c18c">cache_param::numOfcid</a></div><divclass="ttdeci">int numOfcid</div><divclass="ttdoc">number of cids</div><divclass="ttdef"><b>Definition:</b> cache_manager.h:43</div></div>
<divclass="ttc"id="astructcache__param_html_a15739295a73f8bca1a53b4c11f3a855a"><divclass="ttname"><ahref="structcache__param.html#a15739295a73f8bca1a53b4c11f3a855a">cache_param::cid</a></div><divclass="ttdeci">char ** cid</div><divclass="ttdoc">dynamic array of channel identifiers</div><divclass="ttdef"><b>Definition:</b> cache_manager.h:42</div></div>
<divclass="ttc"id="acache__manager_8h_html_a86ab032b568db30c8763213f221cc760"><divclass="ttname"><ahref="cache__manager_8h.html#a86ab032b568db30c8763213f221cc760">print_allcache</a></div><divclass="ttdeci">void print_allcache(cachelist_param_t *cachelist)</div><divclass="ttdoc">print all cache parameters</div><divclass="ttdef"><b>Definition:</b> cache_manager.c:283</div></div>
<divclass="ttc"id="astructmetadatalist__param_html"><divclass="ttname"><ahref="structmetadatalist__param.html">metadatalist_param</a></div><divclass="ttdoc">metadata-bin list parameters</div><divclass="ttdef"><b>Definition:</b> metadata_manager.h:54</div></div>
<divclass="ttc"id="acache__manager_8h_html_a602fae2adbfa511bccf6f2fad3fe7891"><divclass="ttname"><ahref="cache__manager_8h.html#a602fae2adbfa511bccf6f2fad3fe7891">insert_cache_into_list</a></div><divclass="ttdeci">void insert_cache_into_list(cache_param_t *cache, cachelist_param_t *cachelist)</div><divclass="ttdoc">insert a cache into list</div><divclass="ttdef"><b>Definition:</b> cache_manager.c:103</div></div>
<divclass="ttc"id="astructcachelist__param_html_aa67288298eb248dfe68696202b79f009"><divclass="ttname"><ahref="structcachelist__param.html#aa67288298eb248dfe68696202b79f009">cachelist_param::last</a></div><divclass="ttdeci">cache_param_t * last</div><divclass="ttdoc">last cache pointer of the list</div><divclass="ttdef"><b>Definition:</b> cache_manager.h:52</div></div>
<divclass="ttc"id="acache__manager_8c_html_a4091726e2df2dac42292353947a4ea07"><divclass="ttname"><ahref="cache__manager_8c.html#a4091726e2df2dac42292353947a4ea07">remove_cachecid</a></div><divclass="ttdeci">void remove_cachecid(const char *cid, cachelist_param_t *cachelist)</div><divclass="ttdoc">remove cid in cache</div><divclass="ttdef"><b>Definition:</b> cache_manager.c:225</div></div>
<divclass="ttc"id="astructcachelist__param_html_a1555171ee1d36bc00c82246c1ea411dd"><divclass="ttname"><ahref="structcachelist__param.html#a1555171ee1d36bc00c82246c1ea411dd">cachelist_param::first</a></div><divclass="ttdeci">cache_param_t * first</div><divclass="ttdoc">first cache pointer of the list</div><divclass="ttdef"><b>Definition:</b> cache_manager.h:51</div></div>
<divclass="ttc"id="astructcache__param_html_aea41f0c4553d98f30fbd299e78a637e8"><divclass="ttname"><ahref="structcache__param.html#aea41f0c4553d98f30fbd299e78a637e8">cache_param::next</a></div><divclass="ttdeci">struct cache_param * next</div><divclass="ttdoc">pointer to the next cache</div><divclass="ttdef"><b>Definition:</b> cache_manager.h:46</div></div>
<divclass="ttc"id="acache__manager_8c_html_a602fae2adbfa511bccf6f2fad3fe7891"><divclass="ttname"><ahref="cache__manager_8c.html#a602fae2adbfa511bccf6f2fad3fe7891">insert_cache_into_list</a></div><divclass="ttdeci">void insert_cache_into_list(cache_param_t *cache, cachelist_param_t *cachelist)</div><divclass="ttdoc">insert a cache into list</div><divclass="ttdef"><b>Definition:</b> cache_manager.c:103</div></div>
<divclass="ttc"id="acache__manager_8h_html_a4091726e2df2dac42292353947a4ea07"><divclass="ttname"><ahref="cache__manager_8h.html#a4091726e2df2dac42292353947a4ea07">remove_cachecid</a></div><divclass="ttdeci">void remove_cachecid(const char *cid, cachelist_param_t *cachelist)</div><divclass="ttdoc">remove cid in cache</div><divclass="ttdef"><b>Definition:</b> cache_manager.c:225</div></div>
<divclass="ttc"id="acache__manager_8h_html_a373dac3fd74b9947e59a095048b18a0a"><divclass="ttname"><ahref="cache__manager_8h.html#a373dac3fd74b9947e59a095048b18a0a">search_cache</a></div><divclass="ttdeci">cache_param_t * search_cache(const char targetname[], cachelist_param_t *cachelist)</div><divclass="ttdoc">search a cache by target name</div><divclass="ttdef"><b>Definition:</b> cache_manager.c:113</div></div>
<divclass="ttc"id="acache__manager_8c_html_a3bd60aac832b765c765eb71211af2e05"><divclass="ttname"><ahref="cache__manager_8c.html#a3bd60aac832b765c765eb71211af2e05">search_cacheBytid</a></div><divclass="ttdeci">cache_param_t * search_cacheBytid(const char tid[], cachelist_param_t *cachelist)</div><divclass="ttdoc">search a cache by tid</div><divclass="ttdef"><b>Definition:</b> cache_manager.c:173</div></div>
<divclass="ttc"id="acache__manager_8c_html_ae673ba42122433300afa3581ed4eb5af"><divclass="ttname"><ahref="cache__manager_8c.html#ae673ba42122433300afa3581ed4eb5af">gene_cache</a></div><divclass="ttdeci">cache_param_t * gene_cache(const char *targetname, int csn, char *tid, char *cid)</div><divclass="ttdoc">generate a cache</div><divclass="ttdef"><b>Definition:</b> cache_manager.c:61</div></div>
<divclass="ttc"id="acache__manager_8h_html_a87a27aa289a528077e7d77c5c89db5bf"><divclass="ttname"><ahref="cache__manager_8h.html#a87a27aa289a528077e7d77c5c89db5bf">add_cachecid</a></div><divclass="ttdeci">void add_cachecid(const char *cid, cache_param_t *cache)</div><divclass="ttdoc">add cid into a cache</div><divclass="ttdef"><b>Definition:</b> cache_manager.c:193</div></div>
<divclass="ttc"id="acache__manager_8c_html_aa552e4ceb9be91d6b502419e406907fd"><divclass="ttname"><ahref="cache__manager_8c.html#aa552e4ceb9be91d6b502419e406907fd">delete_cache</a></div><divclass="ttdeci">void delete_cache(cache_param_t **cache)</div><divclass="ttdoc">delete a cache</div><divclass="ttdef"><b>Definition:</b> cache_manager.c:84</div></div>
<divclass="ttc"id="acache__manager_8c_html_aeb3f8c42f00448cd7b3907d8bd516dd8"><divclass="ttname"><ahref="cache__manager_8c.html#aeb3f8c42f00448cd7b3907d8bd516dd8">update_cachetid</a></div><divclass="ttdeci">void update_cachetid(const char *tid, cache_param_t *cache)</div><divclass="ttdoc">update tid of a cache</div><divclass="ttdef"><b>Definition:</b> cache_manager.c:210</div></div>
<divclass="ttc"id="acache__manager_8h_html_ac538e4f629668779ce42d178389c5b7a"><divclass="ttname"><ahref="cache__manager_8h.html#ac538e4f629668779ce42d178389c5b7a">search_cacheBycid</a></div><divclass="ttdeci">cache_param_t * search_cacheBycid(const char cid[], cachelist_param_t *cachelist)</div><divclass="ttdoc">search a cache by cid</div><divclass="ttdef"><b>Definition:</b> cache_manager.c:151</div></div>
<divclass="ttc"id="acache__manager_8h_html_ae673ba42122433300afa3581ed4eb5af"><divclass="ttname"><ahref="cache__manager_8h.html#ae673ba42122433300afa3581ed4eb5af">gene_cache</a></div><divclass="ttdeci">cache_param_t * gene_cache(const char *targetname, int csn, char *tid, char *cid)</div><divclass="ttdoc">generate a cache</div><divclass="ttdef"><b>Definition:</b> cache_manager.c:61</div></div>
<divclass="ttc"id="acache__manager_8c_html_a86ab032b568db30c8763213f221cc760"><divclass="ttname"><ahref="cache__manager_8c.html#a86ab032b568db30c8763213f221cc760">print_allcache</a></div><divclass="ttdeci">void print_allcache(cachelist_param_t *cachelist)</div><divclass="ttdoc">print all cache parameters</div><divclass="ttdef"><b>Definition:</b> cache_manager.c:283</div></div>
<divclass="ttc"id="acache__manager_8h_html_aeb3f8c42f00448cd7b3907d8bd516dd8"><divclass="ttname"><ahref="cache__manager_8h.html#aeb3f8c42f00448cd7b3907d8bd516dd8">update_cachetid</a></div><divclass="ttdeci">void update_cachetid(const char *tid, cache_param_t *cache)</div><divclass="ttdoc">update tid of a cache</div><divclass="ttdef"><b>Definition:</b> cache_manager.c:210</div></div>
<divclass="ttc"id="acache__manager_8c_html_a3971cee032d83329cb3f23a66f0f9dd9"><divclass="ttname"><ahref="cache__manager_8c.html#a3971cee032d83329cb3f23a66f0f9dd9">search_cacheBycsn</a></div><divclass="ttdeci">cache_param_t * search_cacheBycsn(int csn, cachelist_param_t *cachelist)</div><divclass="ttdoc">search a cache by csn</div><divclass="ttdef"><b>Definition:</b> cache_manager.c:135</div></div>