Sophie

Sophie

distrib > CentOS > 6 > i386 > media > updates > by-pkgid > 5d98b2995a46d456a9243853c7259619 > files > 12

libcollection-devel-0.5.0-28.el6_0.2.i686.rpm

<!-- This comment will put IE 6, 7 and 8 in quirks mode -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>libcollection: collection_queue.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javaScript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body onload='searchBox.OnSelectItem(0);'>
<!-- Generated by Doxygen 1.6.1 -->
<script type="text/javascript"><!--
var searchBox = new SearchBox("searchBox", "search",false,'Search');
--></script>
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li><a href="annotated.html"><span>Data&nbsp;Structures</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <img id="MSearchSelect" src="search/search.png"
             onmouseover="return searchBox.OnSearchSelectShow()"
             onmouseout="return searchBox.OnSearchSelectHide()"
             alt=""/>
        <input type="text" id="MSearchField" value="Search" accesskey="S"
             onfocus="searchBox.OnSearchFieldFocus(true)" 
             onblur="searchBox.OnSearchFieldFocus(false)" 
             onkeyup="searchBox.OnSearchFieldChange(event)"/>
        <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
        </div>
      </li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="files.html"><span>File&nbsp;List</span></a></li>
    </ul>
  </div>
<h1>collection_queue.h</h1><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/*</span>
<a name="l00002"></a>00002 <span class="comment">    QUEUE</span>
<a name="l00003"></a>00003 <span class="comment"></span>
<a name="l00004"></a>00004 <span class="comment">    Header file for queue implemented using collection interface.</span>
<a name="l00005"></a>00005 <span class="comment"></span>
<a name="l00006"></a>00006 <span class="comment">    Copyright (C) Dmitri Pal &lt;dpal@redhat.com&gt; 2009</span>
<a name="l00007"></a>00007 <span class="comment"></span>
<a name="l00008"></a>00008 <span class="comment">    Collection Library is free software: you can redistribute it and/or modify</span>
<a name="l00009"></a>00009 <span class="comment">    it under the terms of the GNU Lesser General Public License as published by</span>
<a name="l00010"></a>00010 <span class="comment">    the Free Software Foundation, either version 3 of the License, or</span>
<a name="l00011"></a>00011 <span class="comment">    (at your option) any later version.</span>
<a name="l00012"></a>00012 <span class="comment"></span>
<a name="l00013"></a>00013 <span class="comment">    Collection Library is distributed in the hope that it will be useful,</span>
<a name="l00014"></a>00014 <span class="comment">    but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
<a name="l00015"></a>00015 <span class="comment">    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</span>
<a name="l00016"></a>00016 <span class="comment">    GNU Lesser General Public License for more details.</span>
<a name="l00017"></a>00017 <span class="comment"></span>
<a name="l00018"></a>00018 <span class="comment">    You should have received a copy of the GNU Lesser General Public License</span>
<a name="l00019"></a>00019 <span class="comment">    along with Collection Library.  If not, see &lt;http://www.gnu.org/licenses/&gt;.</span>
<a name="l00020"></a>00020 <span class="comment">*/</span>
<a name="l00021"></a>00021 
<a name="l00022"></a>00022 <span class="preprocessor">#ifndef COLLECTION_QUEUE_H</span>
<a name="l00023"></a>00023 <span class="preprocessor"></span><span class="preprocessor">#define COLLECTION_QUEUE_H</span>
<a name="l00024"></a>00024 <span class="preprocessor"></span>
<a name="l00025"></a>00025 <span class="preprocessor">#include &quot;collection.h&quot;</span>
<a name="l00026"></a>00026 
<a name="l00037"></a><a class="code" href="group__queue.html#ga363cef14aa70f202ec4e3e948776d29e">00037</a> <span class="preprocessor">#define COL_CLASS_QUEUE 40000</span>
<a name="l00038"></a>00038 <span class="preprocessor"></span>
<a name="l00039"></a><a class="code" href="group__queue.html#ga69c776f22e60d0f7deb93280ae5b6b2d">00039</a> <span class="preprocessor">#define COL_NAME_QUEUE  &quot;queue&quot;</span>
<a name="l00040"></a>00040 <span class="preprocessor"></span>
<a name="l00052"></a>00052 <span class="keywordtype">int</span> <a class="code" href="group__queue.html#gadbb3f1e060341de271ac37ba19de0c49" title="Create queue.">col_create_queue</a>(<span class="keyword">struct</span> <a class="code" href="structcollection__item.html" title="Opaque structure that holds one property.">collection_item</a> **queue);
<a name="l00053"></a>00053 
<a name="l00062"></a>00062 <span class="keywordtype">void</span> <a class="code" href="group__queue.html#ga386ee04ceaf97f0468182ad81d251788" title="Destroy queue.">col_destroy_queue</a>(<span class="keyword">struct</span> <a class="code" href="structcollection__item.html" title="Opaque structure that holds one property.">collection_item</a> *queue);
<a name="l00063"></a>00063 
<a name="l00096"></a>00096 <span class="keywordtype">int</span> <a class="code" href="group__queue.html#ga6155490c452060d1489d0e6c594b41aa" title="Add string to the queue.">col_enqueue_str_property</a>(<span class="keyword">struct</span> <a class="code" href="structcollection__item.html" title="Opaque structure that holds one property.">collection_item</a> *queue,
<a name="l00097"></a>00097                              <span class="keyword">const</span> <span class="keywordtype">char</span> *property,
<a name="l00098"></a>00098                              <span class="keyword">const</span> <span class="keywordtype">char</span> *<span class="keywordtype">string</span>,
<a name="l00099"></a>00099                              <span class="keywordtype">int</span> length);
<a name="l00121"></a>00121 <span class="keywordtype">int</span> <a class="code" href="group__queue.html#ga616c30e83e3e161417e6e7b2a8c9814b" title="Add binary value to the queue.">col_enqueue_binary_property</a>(<span class="keyword">struct</span> <a class="code" href="structcollection__item.html" title="Opaque structure that holds one property.">collection_item</a> *queue,
<a name="l00122"></a>00122                                 <span class="keyword">const</span> <span class="keywordtype">char</span> *property,
<a name="l00123"></a>00123                                 <span class="keywordtype">void</span> *binary_data,
<a name="l00124"></a>00124                                 <span class="keywordtype">int</span> length);
<a name="l00145"></a>00145 <span class="keywordtype">int</span> <a class="code" href="group__queue.html#gafe5b4d9e85cfc728f18e8f4b6bbc92f1" title="Add integer value to the queue.">col_enqueue_int_property</a>(<span class="keyword">struct</span> <a class="code" href="structcollection__item.html" title="Opaque structure that holds one property.">collection_item</a> *queue,
<a name="l00146"></a>00146                              <span class="keyword">const</span> <span class="keywordtype">char</span> *property,
<a name="l00147"></a>00147                              int32_t number);
<a name="l00168"></a>00168 <span class="keywordtype">int</span> <a class="code" href="group__queue.html#ga443f5626091e46b77c0a031309ec3f94" title="Add unsigned value to the queue.">col_enqueue_unsigned_property</a>(<span class="keyword">struct</span> <a class="code" href="structcollection__item.html" title="Opaque structure that holds one property.">collection_item</a> *queue,
<a name="l00169"></a>00169                                   <span class="keyword">const</span> <span class="keywordtype">char</span> *property,
<a name="l00170"></a>00170                                   uint32_t number);
<a name="l00191"></a>00191 <span class="keywordtype">int</span> <a class="code" href="group__queue.html#gab8687f8dda5931d3d699808dbd1c3d60" title="Add long integer value to the queue.">col_enqueue_long_property</a>(<span class="keyword">struct</span> <a class="code" href="structcollection__item.html" title="Opaque structure that holds one property.">collection_item</a> *queue,
<a name="l00192"></a>00192                               <span class="keyword">const</span> <span class="keywordtype">char</span> *property,
<a name="l00193"></a>00193                               int64_t number);
<a name="l00214"></a>00214 <span class="keywordtype">int</span> <a class="code" href="group__queue.html#ga016d34622f7fd18f18da1f11a43fb9cf" title="Add unsigned long value to the queue.">col_enqueue_ulong_property</a>(<span class="keyword">struct</span> <a class="code" href="structcollection__item.html" title="Opaque structure that holds one property.">collection_item</a> *queue,
<a name="l00215"></a>00215                                <span class="keyword">const</span> <span class="keywordtype">char</span> *property,
<a name="l00216"></a>00216                                uint64_t number);
<a name="l00237"></a>00237 <span class="keywordtype">int</span> <a class="code" href="group__queue.html#ga1481bf588e96e20da2fa955e39c13449" title="Add floating point value to the queue.">col_enqueue_double_property</a>(<span class="keyword">struct</span> <a class="code" href="structcollection__item.html" title="Opaque structure that holds one property.">collection_item</a> *queue,
<a name="l00238"></a>00238                                 <span class="keyword">const</span> <span class="keywordtype">char</span> *property,
<a name="l00239"></a>00239                                 <span class="keywordtype">double</span> number);
<a name="l00260"></a>00260 <span class="keywordtype">int</span> <a class="code" href="group__queue.html#ga47f60c511ab963c7efe185240f3c6dba" title="Add Boolean value to the queue.">col_enqueue_bool_property</a>(<span class="keyword">struct</span> <a class="code" href="structcollection__item.html" title="Opaque structure that holds one property.">collection_item</a> *queue,
<a name="l00261"></a>00261                               <span class="keyword">const</span> <span class="keywordtype">char</span> *property,
<a name="l00262"></a>00262                               <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> logical);
<a name="l00263"></a>00263 
<a name="l00287"></a>00287 <span class="keywordtype">int</span> <a class="code" href="group__queue.html#gada982b3a2492a3255e636714d5d83800" title="Add value of any type to the queue.">col_enqueue_any_property</a>(<span class="keyword">struct</span> <a class="code" href="structcollection__item.html" title="Opaque structure that holds one property.">collection_item</a> *queue,
<a name="l00288"></a>00288                              <span class="keyword">const</span> <span class="keywordtype">char</span> *property,
<a name="l00289"></a>00289                              <span class="keywordtype">int</span> type,
<a name="l00290"></a>00290                              <span class="keywordtype">void</span> *data,
<a name="l00291"></a>00291                              <span class="keywordtype">int</span> length);
<a name="l00292"></a>00292 
<a name="l00303"></a>00303 <span class="keywordtype">int</span> <a class="code" href="group__queue.html#gab4bbd6438dc2b04c48fa3f2017fc222e" title="Push item into the queue.">col_enqueue_item</a>(<span class="keyword">struct</span> <a class="code" href="structcollection__item.html" title="Opaque structure that holds one property.">collection_item</a> *queue,
<a name="l00304"></a>00304                      <span class="keyword">struct</span> <a class="code" href="structcollection__item.html" title="Opaque structure that holds one property.">collection_item</a> *item);
<a name="l00305"></a>00305 
<a name="l00319"></a>00319 <span class="keywordtype">int</span> <a class="code" href="group__queue.html#ga5cdfd4a8a5a53a656b3d1433d21f5820" title="Get item from the queue.">col_dequeue_item</a>(<span class="keyword">struct</span> <a class="code" href="structcollection__item.html" title="Opaque structure that holds one property.">collection_item</a> *queue,
<a name="l00320"></a>00320                      <span class="keyword">struct</span> <a class="code" href="structcollection__item.html" title="Opaque structure that holds one property.">collection_item</a> **item);
<a name="l00321"></a>00321 
<a name="l00322"></a>00322 
<a name="l00323"></a>00323 <span class="preprocessor">#endif</span>
</pre></div></div>
<!--- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&nbsp;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&nbsp;</span>Data Structures</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<hr size="1"/><address style="text-align: right;"><small>Generated on 25 Jun 2011 for libcollection by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.1 </small></address>
</body>
</html>