<ahref="session__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="astructcachemodel__param_html"><divclass="ttname"><ahref="structcachemodel__param.html">cachemodel_param</a></div><divclass="ttdoc">Cache model parameters.</div><divclass="ttdef"><b>Definition:</b> cachemodel_manager.h:37</div></div>
<divclass="ttc"id="asession__manager_8c_html_ab06ce1e06337889daeeb3e5f26ce5023"><divclass="ttname"><ahref="session__manager_8c.html#ab06ce1e06337889daeeb3e5f26ce5023">insert_cachemodel_into_session</a></div><divclass="ttdeci">void insert_cachemodel_into_session(session_param_t *session, cachemodel_param_t *cachemodel)</div><divclass="ttdoc">insert a cache model into a session</div><divclass="ttdef"><b>Definition:</b> session_manager.c:108</div></div>
<divclass="ttc"id="astructsessionlist__param_html"><divclass="ttname"><ahref="structsessionlist__param.html">sessionlist_param</a></div><divclass="ttdoc">Session list parameters.</div><divclass="ttdef"><b>Definition:</b> session_manager.h:45</div></div>
<divclass="ttc"id="asession__manager_8c_html_abc0c61762e6d3def2bb0aec3660317bd"><divclass="ttname"><ahref="session__manager_8c.html#abc0c61762e6d3def2bb0aec3660317bd">search_session_and_channel</a></div><divclass="ttdeci">OPJ_BOOL search_session_and_channel(char cid[], sessionlist_param_t *sessionlist, session_param_t **foundsession, channel_param_t **foundchannel)</div><divclass="ttdoc">search a channel and its belonging session by channel ID</div><divclass="ttdef"><b>Definition:</b> session_manager.c:80</div></div>
<divclass="ttc"id="asession__manager_8h_html_ab06ce1e06337889daeeb3e5f26ce5023"><divclass="ttname"><ahref="session__manager_8h.html#ab06ce1e06337889daeeb3e5f26ce5023">insert_cachemodel_into_session</a></div><divclass="ttdeci">void insert_cachemodel_into_session(session_param_t *session, cachemodel_param_t *cachemodel)</div><divclass="ttdoc">insert a cache model into a session</div><divclass="ttdef"><b>Definition:</b> session_manager.c:108</div></div>
<divclass="ttc"id="asession__manager_8c_html_adf5841c3d4f97b49c02bfa9919aa5eea"><divclass="ttname"><ahref="session__manager_8c.html#adf5841c3d4f97b49c02bfa9919aa5eea">gene_session</a></div><divclass="ttdeci">session_param_t * gene_session(sessionlist_param_t *sessionlist)</div><divclass="ttdoc">generate a session under the sesion list</div><divclass="ttdef"><b>Definition:</b> session_manager.c:59</div></div>
<divclass="ttc"id="asession__manager_8h_html_abc0c61762e6d3def2bb0aec3660317bd"><divclass="ttname"><ahref="session__manager_8h.html#abc0c61762e6d3def2bb0aec3660317bd">search_session_and_channel</a></div><divclass="ttdeci">OPJ_BOOL search_session_and_channel(char cid[], sessionlist_param_t *sessionlist, session_param_t **foundsession, channel_param_t **foundchannel)</div><divclass="ttdoc">search a channel and its belonging session by channel ID</div><divclass="ttdef"><b>Definition:</b> session_manager.c:80</div></div>
<divclass="ttc"id="astructsession__param_html_a869ab9f64fc1ec57a7f223027850f8f6"><divclass="ttname"><ahref="structsession__param.html#a869ab9f64fc1ec57a7f223027850f8f6">session_param::channellist</a></div><divclass="ttdeci">channellist_param_t * channellist</div><divclass="ttdoc">channel list pointer</div><divclass="ttdef"><b>Definition:</b> session_manager.h:39</div></div>
<divclass="ttc"id="asession__manager_8h_html_a53a7e92eb661d0a8b9837689c2e09ed9"><divclass="ttname"><ahref="session__manager_8h.html#a53a7e92eb661d0a8b9837689c2e09ed9">print_allsession</a></div><divclass="ttdeci">void print_allsession(sessionlist_param_t *sessionlist)</div><divclass="ttdoc">print all sessions</div><divclass="ttdef"><b>Definition:</b> session_manager.c:186</div></div>
<divclass="ttc"id="asession__manager_8h_html_adf5841c3d4f97b49c02bfa9919aa5eea"><divclass="ttname"><ahref="session__manager_8h.html#adf5841c3d4f97b49c02bfa9919aa5eea">gene_session</a></div><divclass="ttdeci">session_param_t * gene_session(sessionlist_param_t *sessionlist)</div><divclass="ttdoc">generate a session under the sesion list</div><divclass="ttdef"><b>Definition:</b> session_manager.c:59</div></div>
<divclass="ttc"id="asession__manager_8c_html_a90a84c5d74e54bad1d6350cac56a79cc"><divclass="ttname"><ahref="session__manager_8c.html#a90a84c5d74e54bad1d6350cac56a79cc">gene_sessionlist</a></div><divclass="ttdeci">sessionlist_param_t * gene_sessionlist(void)</div><divclass="ttdoc">generate a session list</div><divclass="ttdef"><b>Definition:</b> session_manager.c:47</div></div>
<divclass="ttc"id="astructsessionlist__param_html_a74d800176ba4c7207fc7ffa0bf82f1ea"><divclass="ttname"><ahref="structsessionlist__param.html#a74d800176ba4c7207fc7ffa0bf82f1ea">sessionlist_param::last</a></div><divclass="ttdeci">session_param_t * last</div><divclass="ttdoc">last session pointer of the list</div><divclass="ttdef"><b>Definition:</b> session_manager.h:47</div></div>
<divclass="ttc"id="aopj__malloc_8c_html_a49c70931cbed786f6eef5f095bcb2917"><divclass="ttname"><ahref="opj__malloc_8c.html#a49c70931cbed786f6eef5f095bcb2917">opj_malloc</a></div><divclass="ttdeci">void * opj_malloc(size_t size)</div><divclass="ttdoc">Allocate an uninitialized memory block.</div><divclass="ttdef"><b>Definition:</b> opj_malloc.c:191</div></div>
<divclass="ttc"id="astructcachemodel__param_html_aaad2900a86415256baf4b5a9bf87494a"><divclass="ttname"><ahref="structcachemodel__param.html#aaad2900a86415256baf4b5a9bf87494a">cachemodel_param::target</a></div><divclass="ttdeci">target_param_t * target</div><divclass="ttdoc">reference pointer to the target</div><divclass="ttdef"><b>Definition:</b> cachemodel_manager.h:38</div></div>
<divclass="ttc"id="achannel__manager_8c_html_aa7cd20c99fb2c7f4e2854b5665f07d31"><divclass="ttname"><ahref="channel__manager_8c.html#aa7cd20c99fb2c7f4e2854b5665f07d31">gene_channellist</a></div><divclass="ttdeci">channellist_param_t * gene_channellist(void)</div><divclass="ttdoc">generate a channel list</div><divclass="ttdef"><b>Definition:</b> channel_manager.c:48</div></div>
<divclass="ttc"id="aopj__malloc_8c_html_a9d7d909f8dc1a2c23313c48645341e81"><divclass="ttname"><ahref="opj__malloc_8c.html#a9d7d909f8dc1a2c23313c48645341e81">opj_free</a></div><divclass="ttdeci">void opj_free(void *ptr)</div><divclass="ttdoc">Deallocates or frees a memory block.</div><divclass="ttdef"><b>Definition:</b> opj_malloc.c:246</div></div>
<divclass="ttc"id="astructchannel__param_html_a5b4e4343d21cda16eda8e12c4b6bea14"><divclass="ttname"><ahref="structchannel__param.html#a5b4e4343d21cda16eda8e12c4b6bea14">channel_param::next</a></div><divclass="ttdeci">struct channel_param * next</div><divclass="ttdoc">pointer to the next channel</div><divclass="ttdef"><b>Definition:</b> channel_manager.h:49</div></div>
<divclass="ttc"id="astructcachemodellist__param_html"><divclass="ttname"><ahref="structcachemodellist__param.html">cachemodellist_param</a></div><divclass="ttdoc">Cache model list parameters.</div><divclass="ttdef"><b>Definition:</b> cachemodel_manager.h:48</div></div>
<divclass="ttc"id="astructsessionlist__param_html_aef3ea30ea258e86ef99b9e4b7d72988e"><divclass="ttname"><ahref="structsessionlist__param.html#aef3ea30ea258e86ef99b9e4b7d72988e">sessionlist_param::first</a></div><divclass="ttdeci">session_param_t * first</div><divclass="ttdoc">first session pointer of the list</div><divclass="ttdef"><b>Definition:</b> session_manager.h:46</div></div>
<divclass="ttc"id="astructcachemodel__param_html_a6bfd52e715d76d87c19a8bbee8e84fee"><divclass="ttname"><ahref="structcachemodel__param.html#a6bfd52e715d76d87c19a8bbee8e84fee">cachemodel_param::next</a></div><divclass="ttdeci">struct cachemodel_param * next</div><divclass="ttdoc">pointer to the next cache model</div><divclass="ttdef"><b>Definition:</b> cachemodel_manager.h:44</div></div>
<divclass="ttc"id="astructchannellist__param_html"><divclass="ttname"><ahref="structchannellist__param.html">channellist_param</a></div><divclass="ttdoc">Channel list parameters.</div><divclass="ttdef"><b>Definition:</b> channel_manager.h:54</div></div>
<divclass="ttc"id="acachemodel__manager_8c_html_aa9ed9725968b7cad5746bf371185ddf6"><divclass="ttname"><ahref="cachemodel__manager_8c.html#aa9ed9725968b7cad5746bf371185ddf6">gene_cachemodellist</a></div><divclass="ttdeci">cachemodellist_param_t * gene_cachemodellist(void)</div><divclass="ttdoc">generate a cache model list</div><divclass="ttdef"><b>Definition:</b> cachemodel_manager.c:47</div></div>
<divclass="ttc"id="astructcachemodellist__param_html_ab6ea5db7ee4bc86522cb07f9f29f243c"><divclass="ttname"><ahref="structcachemodellist__param.html#ab6ea5db7ee4bc86522cb07f9f29f243c">cachemodellist_param::first</a></div><divclass="ttdeci">cachemodel_param_t * first</div><divclass="ttdoc">first cache model pointer of the list</div><divclass="ttdef"><b>Definition:</b> cachemodel_manager.h:49</div></div>
<divclass="ttc"id="astructcachemodellist__param_html_a230686ed9a04c0d53828b7450b779ea2"><divclass="ttname"><ahref="structcachemodellist__param.html#a230686ed9a04c0d53828b7450b779ea2">cachemodellist_param::last</a></div><divclass="ttdeci">cachemodel_param_t * last</div><divclass="ttdoc">last cache model pointer of the list</div><divclass="ttdef"><b>Definition:</b> cachemodel_manager.h:50</div></div>
<divclass="ttc"id="astructsession__param_html_a8919cca2326147adca004b25ee008017"><divclass="ttname"><ahref="structsession__param.html#a8919cca2326147adca004b25ee008017">session_param::next</a></div><divclass="ttdeci">struct session_param * next</div><divclass="ttdoc">pointer to the next session</div><divclass="ttdef"><b>Definition:</b> session_manager.h:41</div></div>
<divclass="ttc"id="asession__manager_8h_html_a55742588933e5da65d113e266dd4e4a8"><divclass="ttname"><ahref="session__manager_8h.html#a55742588933e5da65d113e266dd4e4a8">sessionlist_param_t</a></div><divclass="ttdeci">struct sessionlist_param sessionlist_param_t</div><divclass="ttdoc">Session list parameters.</div></div>
<divclass="ttc"id="astructsession__param_html_ab361432db60730051ef4e88f810ad282"><divclass="ttname"><ahref="structsession__param.html#ab361432db60730051ef4e88f810ad282">session_param::cachemodellist</a></div><divclass="ttdeci">cachemodellist_param_t * cachemodellist</div><divclass="ttdoc">cache list pointer</div><divclass="ttdef"><b>Definition:</b> session_manager.h:40</div></div>