qpid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jr...@apache.org
Subject [50/51] [partial] qpid-site git commit: QPID-7553: Update the proton api gen script for changes to the C api docs; republish the proton master doc snapshot
Date Fri, 02 Dec 2016 23:22:55 GMT
http://git-wip-us.apache.org/repos/asf/qpid-site/blob/cd4363b2/README.md
----------------------------------------------------------------------
diff --git a/README.md b/README.md
index 98cb9c7..fb04a16 100644
--- a/README.md
+++ b/README.md
@@ -162,7 +162,7 @@ on Fedora or RHEL.
 
     $ sudo yum install cmake doxygen epydoc fop gcc graphviz java-devel \
           libxslt make python-pygments PyYAML rubygem-rdoc git \
-          pandoc-pdf python-sphinx apache-maven
+          pandoc-pdf python-sphinx maven
 
 ## Publishing your work
 

http://git-wip-us.apache.org/repos/asf/qpid-site/blob/cd4363b2/content/releases/qpid-proton-master/index.html
----------------------------------------------------------------------
diff --git a/content/releases/qpid-proton-master/index.html b/content/releases/qpid-proton-master/index.html
index 6b12653..6ceea55 100644
--- a/content/releases/qpid-proton-master/index.html
+++ b/content/releases/qpid-proton-master/index.html
@@ -124,7 +124,7 @@ https://github.com/apache/qpid-proton/blob/go1{/dir}/{file}#L{line}"/>
 incomplete.  For a smoother experience, see the <a href="/releases/qpid-proton-0.15.0/index.html">current stable
 release</a>.</p>
 
-<p>This content was generated at 12:08  on Wednesday, 13 July 2016.</p>
+<p>This content was generated at 15:15  on Friday, 02 December 2016.</p>
 
 </div>
 

http://git-wip-us.apache.org/repos/asf/qpid-site/blob/cd4363b2/content/releases/qpid-proton-master/proton/c/api/annotated.html
----------------------------------------------------------------------
diff --git a/content/releases/qpid-proton-master/proton/c/api/annotated.html b/content/releases/qpid-proton-master/proton/c/api/annotated.html
index fb8e91f..38b346e 100755
--- a/content/releases/qpid-proton-master/proton/c/api/annotated.html
+++ b/content/releases/qpid-proton-master/proton/c/api/annotated.html
@@ -95,15 +95,12 @@ $(document).ready(function(){initNavTree('annotated.html','');});
 <div class="contents">
 <div class="textblock">Here are the classes, structs, unions and interfaces with brief descriptions:</div><div class="directory">
 <table class="directory">
-<tr id="row_0_" class="even"><td class="entry"><span style="width:16px;display:inline-block;">&#160;</span><span class="icona"><span class="icon">C</span></span><a class="el" href="structpn__atom__t.html" target="_self">pn_atom_t</a></td><td class="desc"></td></tr>
-<tr id="row_1_"><td class="entry"><span style="width:16px;display:inline-block;">&#160;</span><span class="icona"><span class="icon">C</span></span><a class="el" href="structpn__buf__t.html" target="_self">pn_buf_t</a></td><td class="desc">A modifiable memory buffer </td></tr>
-<tr id="row_2_" class="even"><td class="entry"><span style="width:16px;display:inline-block;">&#160;</span><span class="icona"><span class="icon">C</span></span><a class="el" href="structpn__bytes__t.html" target="_self">pn_bytes_t</a></td><td class="desc"></td></tr>
-<tr id="row_3_"><td class="entry"><span style="width:16px;display:inline-block;">&#160;</span><span class="icona"><span class="icon">C</span></span><a class="el" href="structpn__cbuf__t.html" target="_self">pn_cbuf_t</a></td><td class="desc">A read-only memory buffer </td></tr>
-<tr id="row_4_" class="even"><td class="entry"><span style="width:16px;display:inline-block;">&#160;</span><span class="icona"><span class="icon">C</span></span><a class="el" href="structpn__class__t.html" target="_self">pn_class_t</a></td><td class="desc"></td></tr>
-<tr id="row_5_"><td class="entry"><span style="width:16px;display:inline-block;">&#160;</span><span class="icona"><span class="icon">C</span></span><a class="el" href="structpn__connection__engine__t.html" target="_self">pn_connection_engine_t</a></td><td class="desc"></td></tr>
-<tr id="row_6_" class="even"><td class="entry"><span style="width:16px;display:inline-block;">&#160;</span><span class="icona"><span class="icon">C</span></span><a class="el" href="structpn__decimal128__t.html" target="_self">pn_decimal128_t</a></td><td class="desc"></td></tr>
-<tr id="row_7_"><td class="entry"><span style="width:16px;display:inline-block;">&#160;</span><span class="icona"><span class="icon">C</span></span><a class="el" href="structpn__token__t.html" target="_self">pn_token_t</a></td><td class="desc"></td></tr>
-<tr id="row_8_" class="even"><td class="entry"><span style="width:16px;display:inline-block;">&#160;</span><span class="icona"><span class="icon">C</span></span><a class="el" href="structpn__uuid__t.html" target="_self">pn_uuid_t</a></td><td class="desc"></td></tr>
+<tr id="row_0_" class="even"><td class="entry"><span style="width:16px;display:inline-block;">&#160;</span><span class="icona"><span class="icon">C</span></span><a class="el" href="group__api__types.html#structpn__atom__t" target="_self">pn_atom_t</a></td><td class="desc">A descriminated union that holds any scalar AMQP value </td></tr>
+<tr id="row_1_"><td class="entry"><span style="width:16px;display:inline-block;">&#160;</span><span class="icona"><span class="icon">C</span></span><a class="el" href="group__api__types.html#structpn__bytes__t" target="_self">pn_bytes_t</a></td><td class="desc">A const byte buffer </td></tr>
+<tr id="row_2_" class="even"><td class="entry"><span style="width:16px;display:inline-block;">&#160;</span><span class="icona"><span class="icon">C</span></span><a class="el" href="group__connection__driver.html#structpn__connection__driver__t" target="_self">pn_connection_driver_t</a></td><td class="desc">The elements needed to drive AMQP IO and events </td></tr>
+<tr id="row_3_"><td class="entry"><span style="width:16px;display:inline-block;">&#160;</span><span class="icona"><span class="icon">C</span></span><a class="el" href="group__amqp__types.html#structpn__decimal128__t" target="_self">pn_decimal128_t</a></td><td class="desc">A 128-bit decimal floating-point number </td></tr>
+<tr id="row_4_" class="even"><td class="entry"><span style="width:16px;display:inline-block;">&#160;</span><span class="icona"><span class="icon">C</span></span><a class="el" href="group__api__types.html#structpn__rwbytes__t" target="_self">pn_rwbytes_t</a></td><td class="desc">A non-const byte buffer </td></tr>
+<tr id="row_5_"><td class="entry"><span style="width:16px;display:inline-block;">&#160;</span><span class="icona"><span class="icon">C</span></span><a class="el" href="group__amqp__types.html#structpn__uuid__t" target="_self">pn_uuid_t</a></td><td class="desc">A 16-byte universally unique identifier </td></tr>
 </table>
 </div><!-- directory -->
 </div><!-- contents -->

http://git-wip-us.apache.org/repos/asf/qpid-site/blob/cd4363b2/content/releases/qpid-proton-master/proton/c/api/annotated_dup.js
----------------------------------------------------------------------
diff --git a/content/releases/qpid-proton-master/proton/c/api/annotated_dup.js b/content/releases/qpid-proton-master/proton/c/api/annotated_dup.js
index 1e47ed9..4684661 100755
--- a/content/releases/qpid-proton-master/proton/c/api/annotated_dup.js
+++ b/content/releases/qpid-proton-master/proton/c/api/annotated_dup.js
@@ -1,12 +1,9 @@
 var annotated_dup =
 [
-    [ "pn_atom_t", "structpn__atom__t.html", "structpn__atom__t" ],
-    [ "pn_buf_t", "structpn__buf__t.html", "structpn__buf__t" ],
-    [ "pn_bytes_t", "structpn__bytes__t.html", "structpn__bytes__t" ],
-    [ "pn_cbuf_t", "structpn__cbuf__t.html", "structpn__cbuf__t" ],
-    [ "pn_class_t", "structpn__class__t.html", "structpn__class__t" ],
-    [ "pn_connection_engine_t", "structpn__connection__engine__t.html", "structpn__connection__engine__t" ],
-    [ "pn_decimal128_t", "structpn__decimal128__t.html", "structpn__decimal128__t" ],
-    [ "pn_token_t", "structpn__token__t.html", "structpn__token__t" ],
-    [ "pn_uuid_t", "structpn__uuid__t.html", "structpn__uuid__t" ]
+    [ "pn_atom_t", "group__api__types.html#structpn__atom__t", "group__api__types_structpn__atom__t" ],
+    [ "pn_bytes_t", "group__api__types.html#structpn__bytes__t", "group__api__types_structpn__bytes__t" ],
+    [ "pn_connection_driver_t", "group__connection__driver.html#structpn__connection__driver__t", "group__connection__driver_structpn__connection__driver__t" ],
+    [ "pn_decimal128_t", "group__amqp__types.html#structpn__decimal128__t", "group__amqp__types_structpn__decimal128__t" ],
+    [ "pn_rwbytes_t", "group__api__types.html#structpn__rwbytes__t", "group__api__types_structpn__rwbytes__t" ],
+    [ "pn_uuid_t", "group__amqp__types.html#structpn__uuid__t", "group__amqp__types_structpn__uuid__t" ]
 ];
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/qpid-site/blob/cd4363b2/content/releases/qpid-proton-master/proton/c/api/broker_8c-example.html
----------------------------------------------------------------------
diff --git a/content/releases/qpid-proton-master/proton/c/api/broker_8c-example.html b/content/releases/qpid-proton-master/proton/c/api/broker_8c-example.html
new file mode 100755
index 0000000..f93d582
--- /dev/null
+++ b/content/releases/qpid-proton-master/proton/c/api/broker_8c-example.html
@@ -0,0 +1,108 @@
+<!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"/>
+<meta http-equiv="X-UA-Compatible" content="IE=9"/>
+<meta name="generator" content="Doxygen 1.8.11"/>
+<title>Qpid Proton C API: broker.c</title>
+<link href="tabs.css" rel="stylesheet" type="text/css"/>
+<script type="text/javascript" src="jquery.js"></script>
+<script type="text/javascript" src="dynsections.js"></script>
+<link href="navtree.css" rel="stylesheet" type="text/css"/>
+<script type="text/javascript" src="resize.js"></script>
+<script type="text/javascript" src="navtreedata.js"></script>
+<script type="text/javascript" src="navtree.js"></script>
+<script type="text/javascript">
+  $(document).ready(initResizable);
+  $(window).load(resizeHeight);
+</script>
+<link href="search/search.css" rel="stylesheet" type="text/css"/>
+<script type="text/javascript" src="search/searchdata.js"></script>
+<script type="text/javascript" src="search/search.js"></script>
+<script type="text/javascript">
+  $(document).ready(function() { init_search(); });
+</script>
+<link href="doxygen.css" rel="stylesheet" type="text/css" />
+</head>
+<body>
+<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
+<div id="titlearea">
+<table cellspacing="0" cellpadding="0">
+ <tbody>
+ <tr style="height: 56px;">
+  <td id="projectalign" style="padding-left: 0.5em;">
+   <div id="projectname">Qpid Proton C API
+   &#160;<span id="projectnumber">master</span>
+   </div>
+  </td>
+   <td>        <div id="MSearchBox" class="MSearchBoxInactive">
+        <span class="left">
+          <img id="MSearchSelect" src="search/mag_sel.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)"/>
+          </span><span class="right">
+            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
+          </span>
+        </div>
+</td>
+ </tr>
+ </tbody>
+</table>
+</div>
+<!-- end header part -->
+<!-- Generated by Doxygen 1.8.11 -->
+<script type="text/javascript">
+var searchBox = new SearchBox("searchBox", "search",false,'Search');
+</script>
+</div><!-- top -->
+<div id="side-nav" class="ui-resizable side-nav-resizable">
+  <div id="nav-tree">
+    <div id="nav-tree-contents">
+      <div id="nav-sync" class="sync"></div>
+    </div>
+  </div>
+  <div id="splitbar" style="-moz-user-select:none;" 
+       class="ui-resizable-handle">
+  </div>
+</div>
+<script type="text/javascript">
+$(document).ready(function(){initNavTree('broker_8c-example.html','');});
+</script>
+<div id="doc-content">
+<!-- window showing the filter options -->
+<div id="MSearchSelectWindow"
+     onmouseover="return searchBox.OnSearchSelectShow()"
+     onmouseout="return searchBox.OnSearchSelectHide()"
+     onkeydown="return searchBox.OnSearchSelectKey(event)">
+</div>
+
+<!-- iframe showing the search results (closed by default) -->
+<div id="MSearchResultsWindow">
+<iframe src="javascript:void(0)" frameborder="0" 
+        name="MSearchResults" id="MSearchResults">
+</iframe>
+</div>
+
+<div class="header">
+  <div class="headertitle">
+<div class="title">broker.c</div>  </div>
+</div><!--header-->
+<div class="contents">
+<p>A simple multithreaded broker that works with the send and receive examples.<b>Requires C++11</b></p>
+<div class="fragment"><div class="line"><span class="comment">/*</span></div><div class="line"><span class="comment"> * Licensed to the Apache Software Foundation (ASF) under one</span></div><div class="line"><span class="comment"> * or more contributor license agreements.  See the NOTICE file</span></div><div class="line"><span class="comment"> * distributed with this work for additional information</span></div><div class="line"><span class="comment"> * regarding copyright ownership.  The ASF licenses this file</span></div><div class="line"><span class="comment"> * to you under the Apache License, Version 2.0 (the</span></div><div class="line"><span class="comment"> * &quot;License&quot;); you may not use this file except in compliance</span></div><div class="line"><span class="comment"> * with the License.  You may obtain a copy of the License at</span></div><div class="line"><span class="comment"> *</span></div><div class="line"><span class="comment"> *   http://www.apache.org/li
 censes/LICENSE-2.0</span></div><div class="line"><span class="comment"> *</span></div><div class="line"><span class="comment"> * Unless required by applicable law or agreed to in writing,</span></div><div class="line"><span class="comment"> * software distributed under the License is distributed on an</span></div><div class="line"><span class="comment"> * &quot;AS IS&quot; BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY</span></div><div class="line"><span class="comment"> * KIND, either express or implied.  See the License for the</span></div><div class="line"><span class="comment"> * specific language governing permissions and limitations</span></div><div class="line"><span class="comment"> * under the License.</span></div><div class="line"><span class="comment"> */</span></div><div class="line"></div><div class="line"><span class="preprocessor">#include &lt;<a class="code" href="connection__driver_8h.html">proton/connection_driver.h</a>&gt;</span></div><div class="line"><span class
 ="preprocessor">#include &lt;<a class="code" href="proactor_8h.html">proton/proactor.h</a>&gt;</span></div><div class="line"><span class="preprocessor">#include &lt;proton/engine.h&gt;</span></div><div class="line"><span class="preprocessor">#include &lt;<a class="code" href="sasl_8h.html">proton/sasl.h</a>&gt;</span></div><div class="line"><span class="preprocessor">#include &lt;<a class="code" href="transport_8h.html">proton/transport.h</a>&gt;</span></div><div class="line"><span class="preprocessor">#include &lt;<a class="code" href="url_8h.html">proton/url.h</a>&gt;</span></div><div class="line"></div><div class="line"><span class="preprocessor">#include &lt;stdio.h&gt;</span></div><div class="line"><span class="preprocessor">#include &lt;stdlib.h&gt;</span></div><div class="line"><span class="preprocessor">#include &lt;string.h&gt;</span></div><div class="line"><span class="preprocessor">#include &lt;unistd.h&gt;</span></div><div class="line"></div><div class="line"><span class
 ="comment">/* TODO aconway 2016-10-14: this example does not require libuv IO,</span></div><div class="line"><span class="comment">   it uses uv.h only for portable mutex and thread functions.</span></div><div class="line"><span class="comment">*/</span></div><div class="line"><span class="preprocessor">#include &lt;uv.h&gt;</span></div><div class="line"></div><div class="line"><span class="keywordtype">bool</span> enable_debug = <span class="keyword">false</span>;</div><div class="line"></div><div class="line"><span class="keywordtype">void</span> debug(<span class="keyword">const</span> <span class="keywordtype">char</span>* fmt, ...) {</div><div class="line">  <span class="keywordflow">if</span> (enable_debug) {</div><div class="line">    va_list(ap);</div><div class="line">    va_start(ap, fmt);</div><div class="line">    vfprintf(stderr, fmt, ap);</div><div class="line">    fputc(<span class="charliteral">&#39;\n&#39;</span>, stderr);</div><div class="line">    fflush(stderr);<
 /div><div class="line">  }</div><div class="line">}</div><div class="line"></div><div class="line"><span class="keywordtype">void</span> check(<span class="keywordtype">int</span> err, <span class="keyword">const</span> <span class="keywordtype">char</span>* s) {</div><div class="line">  <span class="keywordflow">if</span> (err != 0) {</div><div class="line">    perror(s);</div><div class="line">    exit(1);</div><div class="line">  }</div><div class="line">}</div><div class="line"></div><div class="line"><span class="keywordtype">void</span> pcheck(<span class="keywordtype">int</span> err, <span class="keyword">const</span> <span class="keywordtype">char</span>* s) {</div><div class="line">  <span class="keywordflow">if</span> (err != 0) {</div><div class="line">    fprintf(stderr, <span class="stringliteral">&quot;%s: %s&quot;</span>, s, <a name="a0"></a><a class="code" href="group__error.html#gac6b84f09fac8e82bd41a62212d4d8f64">pn_code</a>(err));</div><div class="line">    exit(1
 );</div><div class="line">  }</div><div class="line">}</div><div class="line"></div><div class="line"><span class="comment">/* Simple re-sizable vector that acts as a queue */</span></div><div class="line"><span class="preprocessor">#define VEC(T) struct { T* data; size_t len, cap; }</span></div><div class="line"></div><div class="line"><span class="preprocessor">#define VEC_INIT(V)                             \</span></div><div class="line"><span class="preprocessor">  do {                                          \</span></div><div class="line"><span class="preprocessor">    V.len = 0;                                  \</span></div><div class="line"><span class="preprocessor">    V.cap = 16;                                 \</span></div><div class="line"><span class="preprocessor">    void **vp = (void**)&amp;V.data;                \</span></div><div class="line"><span class="preprocessor">    *vp = malloc(V.cap * sizeof(*V.data));      \</span></div><div class="line"><span class=
 "preprocessor">  } while(0)</span></div><div class="line"></div><div class="line"><span class="preprocessor">#define VEC_FINAL(V) free(V.data)</span></div><div class="line"></div><div class="line"><span class="preprocessor">#define VEC_PUSH(V, X)                                  \</span></div><div class="line"><span class="preprocessor">  do {                                                  \</span></div><div class="line"><span class="preprocessor">    if (V.len == V.cap) {                               \</span></div><div class="line"><span class="preprocessor">      V.cap *= 2;                                       \</span></div><div class="line"><span class="preprocessor">      void **vp = (void**)&amp;V.data;                      \</span></div><div class="line"><span class="preprocessor">      *vp = realloc(V.data, V.cap * sizeof(*V.data));   \</span></div><div class="line"><span class="preprocessor">    }                                                   \</span></div><div clas
 s="line"><span class="preprocessor">    V.data[V.len++] = X;                                \</span></div><div class="line"><span class="preprocessor">  } while(0)                                            \</span></div><div class="line"><span class="preprocessor"></span></div><div class="line"><span class="preprocessor">#define VEC_POP(V)                                              \</span></div><div class="line"><span class="preprocessor">  do {                                                          \</span></div><div class="line"><span class="preprocessor">    if (V.len &gt; 0)                                              \</span></div><div class="line"><span class="preprocessor">      memmove(V.data, V.data+1, (--V.len)*sizeof(*V.data));     \</span></div><div class="line"><span class="preprocessor">  } while(0)</span></div><div class="line"></div><div class="line"><span class="comment">/* Simple thread-safe queue implementation */</span></div><div class="line"><span class="
 keyword">typedef</span> <span class="keyword">struct </span>queue_t {</div><div class="line">  uv_mutex_t lock;</div><div class="line">  <span class="keywordtype">char</span>* name;</div><div class="line">  VEC(<a name="_a1"></a><a class="code" href="group__api__types.html#structpn__rwbytes__t">pn_rwbytes_t</a>) messages;   <span class="comment">/* Messages on the queue_t */</span></div><div class="line">  VEC(<a class="code" href="group__connection.html#ga886351d81ff3a977a284a206526c5aff">pn_connection_t</a>*) waiting; <span class="comment">/* Connections waiting to send messages from this queue */</span></div><div class="line">  <span class="keyword">struct </span>queue_t *next;            <span class="comment">/* Next queue in chain */</span></div><div class="line">  <span class="keywordtype">size_t</span> sent;                     <span class="comment">/* Count of messages sent, used as delivery tag */</span></div><div class="line">} queue_t;</div><div class="line"></div><div cl
 ass="line"><span class="keyword">static</span> <span class="keywordtype">void</span> queue_init(queue_t *q, <span class="keyword">const</span> <span class="keywordtype">char</span>* name, queue_t *next) {</div><div class="line">  debug(<span class="stringliteral">&quot;created queue %s&quot;</span>, name);</div><div class="line">  uv_mutex_init(&amp;q-&gt;lock);</div><div class="line">  q-&gt;name = strdup(name);</div><div class="line">  VEC_INIT(q-&gt;messages);</div><div class="line">  VEC_INIT(q-&gt;waiting);</div><div class="line">  q-&gt;next = next;</div><div class="line">  q-&gt;sent = 0;</div><div class="line">}</div><div class="line"></div><div class="line"><span class="keyword">static</span> <span class="keywordtype">void</span> queue_destroy(queue_t *q) {</div><div class="line">  uv_mutex_destroy(&amp;q-&gt;lock);</div><div class="line">  free(q-&gt;name);</div><div class="line">  <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> i = 0; i &lt; 
 q-&gt;messages.len; ++i)</div><div class="line">    free(q-&gt;messages.data[i].start);</div><div class="line">  VEC_FINAL(q-&gt;messages);</div><div class="line">  <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> i = 0; i &lt; q-&gt;waiting.len; ++i)</div><div class="line">    pn_decref(q-&gt;waiting.data[i]);</div><div class="line">  VEC_FINAL(q-&gt;waiting);</div><div class="line">}</div><div class="line"></div><div class="line"><span class="comment">/* Send a message on s, or record s as eating if no messages.</span></div><div class="line"><span class="comment">   Called in s dispatch loop, assumes s has credit.</span></div><div class="line"><span class="comment">*/</span></div><div class="line"><span class="keyword">static</span> <span class="keywordtype">void</span> queue_send(queue_t *q, <a class="code" href="group__link.html#ga89dad3aa7934329a7ff467c636687bc0">pn_link_t</a> *s) {</div><div class="line">  <a class="code" href="group__api__types.ht
 ml#structpn__rwbytes__t">pn_rwbytes_t</a> m = { 0 };</div><div class="line">  <span class="keywordtype">size_t</span> tag = 0;</div><div class="line">  uv_mutex_lock(&amp;q-&gt;lock);</div><div class="line">  <span class="keywordflow">if</span> (q-&gt;messages.len == 0) { <span class="comment">/* Empty, record connection as waiting */</span></div><div class="line">    debug(<span class="stringliteral">&quot;queue is empty %s&quot;</span>, q-&gt;name);</div><div class="line">    <span class="comment">/* Record connection for wake-up if not already on the list. */</span></div><div class="line">    <a class="code" href="group__connection.html#ga886351d81ff3a977a284a206526c5aff">pn_connection_t</a> *c = <a name="a2"></a><a class="code" href="group__session.html#gaa45a8aa758334528a86cb7914ebe8545">pn_session_connection</a>(<a name="a3"></a><a class="code" href="group__link.html#gac63e43305fb1a5e3b14399a9ddc8f24d">pn_link_session</a>(s));</div><div class="line">    <span class="keywordtyp
 e">size_t</span> i = 0;</div><div class="line">    <span class="keywordflow">for</span> (; i &lt; q-&gt;waiting.len &amp;&amp; q-&gt;waiting.data[i] != c; ++i)</div><div class="line">      ;</div><div class="line">    <span class="keywordflow">if</span> (i == q-&gt;waiting.len) {</div><div class="line">      VEC_PUSH(q-&gt;waiting, c);</div><div class="line">    }</div><div class="line">  } <span class="keywordflow">else</span> {</div><div class="line">    debug(<span class="stringliteral">&quot;sending from queue %s&quot;</span>, q-&gt;name);</div><div class="line">    m = q-&gt;messages.data[0];</div><div class="line">    VEC_POP(q-&gt;messages);</div><div class="line">    tag = ++q-&gt;sent;</div><div class="line">  }</div><div class="line">  uv_mutex_unlock(&amp;q-&gt;lock);</div><div class="line">  <span class="keywordflow">if</span> (m.<a name="a4"></a>start) {</div><div class="line">    <a class="code" href="group__delivery.html#gacdfce854066c0a4ff4db9f9a0478f340">pn_delivery
 _t</a> *d = <a name="a5"></a><a class="code" href="group__delivery.html#ga6a7ef2e317b4ed292cafbb358f0ba6ad">pn_delivery</a>(s, <a name="a6"></a><a class="code" href="group__delivery.html#gaea4522ac1fef9228fb6c743d2a36fd27">pn_dtag</a>((<span class="keywordtype">char</span>*)&amp;tag, <span class="keyword">sizeof</span>(tag)));</div><div class="line">    <a name="a7"></a><a class="code" href="group__link.html#gaa825fac21730f3f9fff37d156e5f88e9">pn_link_send</a>(s, m.start, m.<a name="a8"></a>size);</div><div class="line">    <a name="a9"></a><a class="code" href="group__link.html#ga93824a3859c37463e44458cd2f63d31f">pn_link_advance</a>(s);</div><div class="line">    <a name="a10"></a><a class="code" href="group__delivery.html#ga98c275fd7158e8b9d7d48d70503d68df">pn_delivery_settle</a>(d);  <span class="comment">/* Pre-settled: unreliable, there will bea no ack/ */</span></div><div class="line">    free(m.start);</div><div class="line">  }</div><div class="line">}</div><div class="line"
 ></div><div class="line"><span class="comment">/* Data associated with each broker connection */</span></div><div class="line"><span class="keyword">typedef</span> <span class="keyword">struct </span>broker_data_t {</div><div class="line">  <span class="keywordtype">bool</span> check_queues;          <span class="comment">/* Check senders on the connection for available data in queues. */</span></div><div class="line">} broker_data_t;</div><div class="line"></div><div class="line"><span class="comment">/* Use the context pointer as a boolean flag to indicate we need to check queues */</span></div><div class="line"><span class="keywordtype">void</span> pn_connection_set_check_queues(<a class="code" href="group__connection.html#ga886351d81ff3a977a284a206526c5aff">pn_connection_t</a> *c, <span class="keywordtype">bool</span> check) {</div><div class="line">  <a name="a11"></a><a class="code" href="group__connection.html#gad3203b366cb1ff5becd1778a8dd6b1a6">pn_connection_set_context</a>(
 c, (<span class="keywordtype">void</span>*)check);</div><div class="line">}</div><div class="line"></div><div class="line"><span class="keywordtype">bool</span> pn_connection_get_check_queues(<a class="code" href="group__connection.html#ga886351d81ff3a977a284a206526c5aff">pn_connection_t</a> *c) {</div><div class="line">  <span class="keywordflow">return</span> (<span class="keywordtype">bool</span>)<a name="a12"></a><a class="code" href="group__connection.html#ga50613e6c09186dc3f1a2f36238c61f07">pn_connection_get_context</a>(c);</div><div class="line">}</div><div class="line"></div><div class="line"><span class="comment">/* Put a message on the queue, called in receiver dispatch loop.</span></div><div class="line"><span class="comment">   If the queue was previously empty, notify waiting senders.</span></div><div class="line"><span class="comment">*/</span></div><div class="line"><span class="keyword">static</span> <span class="keywordtype">void</span> queue_receive(<a class="code"
  href="group__proactor.html#gabba42c7929dfceb9d296535bad0c93dc">pn_proactor_t</a> *d, queue_t *q, <a class="code" href="group__api__types.html#structpn__rwbytes__t">pn_rwbytes_t</a> m) {</div><div class="line">  debug(<span class="stringliteral">&quot;received to queue %s&quot;</span>, q-&gt;name);</div><div class="line">  uv_mutex_lock(&amp;q-&gt;lock);</div><div class="line">  VEC_PUSH(q-&gt;messages, m);</div><div class="line">  <span class="keywordflow">if</span> (q-&gt;messages.len == 1) { <span class="comment">/* Was empty, notify waiting connections */</span></div><div class="line">    <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> i = 0; i &lt; q-&gt;waiting.len; ++i) {</div><div class="line">      <a class="code" href="group__connection.html#ga886351d81ff3a977a284a206526c5aff">pn_connection_t</a> *c = q-&gt;waiting.data[i];</div><div class="line">      pn_connection_set_check_queues(c, <span class="keyword">true</span>);</div><div class="line"
 >      <a name="a13"></a><a class="code" href="group__proactor.html#ga2e5c9fddae8d7aa07fc93438c5ae2d86">pn_connection_wake</a>(c); <span class="comment">/* Wake the connection */</span></div><div class="line">    }</div><div class="line">    q-&gt;waiting.len = 0;</div><div class="line">  }</div><div class="line">  uv_mutex_unlock(&amp;q-&gt;lock);</div><div class="line">}</div><div class="line"></div><div class="line"><span class="comment">/* Thread safe set of queues */</span></div><div class="line"><span class="keyword">typedef</span> <span class="keyword">struct </span>queues_t {</div><div class="line">  uv_mutex_t lock;</div><div class="line">  queue_t *queues;</div><div class="line">  <span class="keywordtype">size_t</span> sent;</div><div class="line">} queues_t;</div><div class="line"></div><div class="line"><span class="keywordtype">void</span> queues_init(queues_t *qs) {</div><div class="line">  uv_mutex_init(&amp;qs-&gt;lock);</div><div class="line">  qs-&gt;queues = NULL
 ;</div><div class="line">}</div><div class="line"></div><div class="line"><span class="keywordtype">void</span> queues_destroy(queues_t *qs) {</div><div class="line">  <span class="keywordflow">for</span> (queue_t *q = qs-&gt;queues; q; q = q-&gt;next) {</div><div class="line">    queue_destroy(q);</div><div class="line">    free(q);</div><div class="line">  }</div><div class="line">  uv_mutex_destroy(&amp;qs-&gt;lock);</div><div class="line">}</div><div class="line"></div><div class="line">queue_t* queues_get(queues_t *qs, <span class="keyword">const</span> <span class="keywordtype">char</span>* name) {</div><div class="line">  uv_mutex_lock(&amp;qs-&gt;lock);</div><div class="line">  queue_t *q;</div><div class="line">  <span class="keywordflow">for</span> (q = qs-&gt;queues; q &amp;&amp; strcmp(q-&gt;name, name) != 0; q = q-&gt;next)</div><div class="line">    ;</div><div class="line">  <span class="keywordflow">if</span> (!q) {</div><div class="line">    q = (queue_t*)malloc(<sp
 an class="keyword">sizeof</span>(queue_t));</div><div class="line">    queue_init(q, name, qs-&gt;queues);</div><div class="line">    qs-&gt;queues = q;</div><div class="line">  }</div><div class="line">  uv_mutex_unlock(&amp;qs-&gt;lock);</div><div class="line">  <span class="keywordflow">return</span> q;</div><div class="line">}</div><div class="line"></div><div class="line"><span class="comment">/* The broker implementation */</span></div><div class="line"><span class="keyword">typedef</span> <span class="keyword">struct </span>broker_t {</div><div class="line">  <a class="code" href="group__proactor.html#gabba42c7929dfceb9d296535bad0c93dc">pn_proactor_t</a> *proactor;</div><div class="line">  queues_t queues;</div><div class="line">  <span class="keyword">const</span> <span class="keywordtype">char</span> *container_id;     <span class="comment">/* AMQP container-id */</span></div><div class="line">  <span class="keywordtype">size_t</span> threads;</div><div class="line">  <a cl
 ass="code" href="group__api__types.html#ga9a701bc6dc9af9f42c3f4679172a723c">pn_millis_t</a> heartbeat;</div><div class="line">  <span class="keywordtype">bool</span> finished;</div><div class="line">} broker_t;</div><div class="line"></div><div class="line"><span class="keywordtype">void</span> broker_init(broker_t *b, <span class="keyword">const</span> <span class="keywordtype">char</span> *container_id, <span class="keywordtype">size_t</span> threads, <a class="code" href="group__api__types.html#ga9a701bc6dc9af9f42c3f4679172a723c">pn_millis_t</a> heartbeat) {</div><div class="line">  memset(b, 0, <span class="keyword">sizeof</span>(*b));</div><div class="line">  b-&gt;proactor = <a name="a14"></a><a class="code" href="group__proactor.html#ga9d77772be7805709c87eeb01b06d67e2">pn_proactor</a>();</div><div class="line">  queues_init(&amp;b-&gt;queues);</div><div class="line">  b-&gt;container_id = container_id;</div><div class="line">  b-&gt;threads = threads;</div><div class="line"> 
  b-&gt;heartbeat = 0;</div><div class="line">}</div><div class="line"></div><div class="line"><span class="keywordtype">void</span> broker_stop(broker_t *b) {</div><div class="line">  <span class="comment">/* In this broker an interrupt stops a thread, stopping all threads stops the broker */</span></div><div class="line">  <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> i = 0; i &lt; b-&gt;threads; ++i)</div><div class="line">    <a name="a15"></a><a class="code" href="group__proactor.html#gaff37a5b9d3d822ad9a961dae5155ebdb">pn_proactor_interrupt</a>(b-&gt;proactor);</div><div class="line">}</div><div class="line"></div><div class="line"><span class="comment">/* Try to send if link is sender and has credit */</span></div><div class="line"><span class="keyword">static</span> <span class="keywordtype">void</span> link_send(broker_t *b, <a class="code" href="group__link.html#ga89dad3aa7934329a7ff467c636687bc0">pn_link_t</a> *s) {</div><div class="line">  
 <span class="keywordflow">if</span> (<a name="a16"></a><a class="code" href="group__link.html#ga7c48ef214568267839aea04ed337926b">pn_link_is_sender</a>(s) &amp;&amp; <a name="a17"></a><a class="code" href="group__link.html#ga55428637f3b8c446efd5fea3f26c932d">pn_link_credit</a>(s) &gt; 0) {</div><div class="line">    <span class="keyword">const</span> <span class="keywordtype">char</span> *qname = <a name="a18"></a><a class="code" href="group__terminus.html#ga3507b6cfe260a2bfaae9321235db7c9a">pn_terminus_get_address</a>(<a name="a19"></a><a class="code" href="group__link.html#ga2c8985a9d44a813ab1739a91ae3708a3">pn_link_source</a>(s));</div><div class="line">    queue_t *q = queues_get(&amp;b-&gt;queues, qname);</div><div class="line">    queue_send(q, s);</div><div class="line">  }</div><div class="line">}</div><div class="line"></div><div class="line"><span class="keyword">static</span> <span class="keywordtype">void</span> queue_unsub(queue_t *q, <a class="code" href="group__connec
 tion.html#ga886351d81ff3a977a284a206526c5aff">pn_connection_t</a> *c) {</div><div class="line">  uv_mutex_lock(&amp;q-&gt;lock);</div><div class="line">  <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> i = 0; i &lt; q-&gt;waiting.len; ++i) {</div><div class="line">    <span class="keywordflow">if</span> (q-&gt;waiting.data[i] == c){</div><div class="line">      q-&gt;waiting.data[i] = q-&gt;waiting.data[0]; <span class="comment">/* save old [0] */</span></div><div class="line">      VEC_POP(q-&gt;waiting);</div><div class="line">      <span class="keywordflow">break</span>;</div><div class="line">    }</div><div class="line">  }</div><div class="line">  uv_mutex_unlock(&amp;q-&gt;lock);</div><div class="line">}</div><div class="line"></div><div class="line"><span class="comment">/* Unsubscribe from the queue of interest to this link. */</span></div><div class="line"><span class="keyword">static</span> <span class="keywordtype">void</span> link_unsub(bro
 ker_t *b, <a class="code" href="group__link.html#ga89dad3aa7934329a7ff467c636687bc0">pn_link_t</a> *s) {</div><div class="line">  <span class="keywordflow">if</span> (<a class="code" href="group__link.html#ga7c48ef214568267839aea04ed337926b">pn_link_is_sender</a>(s)) {</div><div class="line">    <span class="keyword">const</span> <span class="keywordtype">char</span> *qname = <a class="code" href="group__terminus.html#ga3507b6cfe260a2bfaae9321235db7c9a">pn_terminus_get_address</a>(<a class="code" href="group__link.html#ga2c8985a9d44a813ab1739a91ae3708a3">pn_link_source</a>(s));</div><div class="line">    <span class="keywordflow">if</span> (qname) {</div><div class="line">      queue_t *q = queues_get(&amp;b-&gt;queues, qname);</div><div class="line">      queue_unsub(q, <a class="code" href="group__session.html#gaa45a8aa758334528a86cb7914ebe8545">pn_session_connection</a>(<a class="code" href="group__link.html#gac63e43305fb1a5e3b14399a9ddc8f24d">pn_link_session</a>(s)));</div><div 
 class="line">    }</div><div class="line">  }</div><div class="line">}</div><div class="line"></div><div class="line"><span class="comment">/* Called in connection&#39;s event loop when a connection is woken for messages.*/</span></div><div class="line"><span class="keyword">static</span> <span class="keywordtype">void</span> connection_unsub(broker_t *b, <a class="code" href="group__connection.html#ga886351d81ff3a977a284a206526c5aff">pn_connection_t</a> *c) {</div><div class="line">  <span class="keywordflow">for</span> (<a class="code" href="group__link.html#ga89dad3aa7934329a7ff467c636687bc0">pn_link_t</a> *l = <a name="a20"></a><a class="code" href="group__link.html#ga7c9434c40eb653f007ff5721e2ebf73e">pn_link_head</a>(c, 0); l != NULL; l = <a name="a21"></a><a class="code" href="group__link.html#ga9b2a9cfa00dfdae4e01bf75483433925">pn_link_next</a>(l, 0))</div><div class="line">    link_unsub(b, l);</div><div class="line">}</div><div class="line"></div><div class="line"><span cla
 ss="keyword">static</span> <span class="keywordtype">void</span> session_unsub(broker_t *b, <a class="code" href="group__session.html#ga38ccb93b8f5c2892adafce5d5f0fbcd9">pn_session_t</a> *ssn) {</div><div class="line">  <a class="code" href="group__connection.html#ga886351d81ff3a977a284a206526c5aff">pn_connection_t</a> *c = <a class="code" href="group__session.html#gaa45a8aa758334528a86cb7914ebe8545">pn_session_connection</a>(ssn);</div><div class="line">  <span class="keywordflow">for</span> (<a class="code" href="group__link.html#ga89dad3aa7934329a7ff467c636687bc0">pn_link_t</a> *l = <a class="code" href="group__link.html#ga7c9434c40eb653f007ff5721e2ebf73e">pn_link_head</a>(c, 0); l != NULL; l = <a class="code" href="group__link.html#ga9b2a9cfa00dfdae4e01bf75483433925">pn_link_next</a>(l, 0)) {</div><div class="line">    <span class="keywordflow">if</span> (<a class="code" href="group__link.html#gac63e43305fb1a5e3b14399a9ddc8f24d">pn_link_session</a>(l) == ssn)</div><div class="li
 ne">      link_unsub(b, l);</div><div class="line">  }</div><div class="line">}</div><div class="line"></div><div class="line"><span class="keyword">static</span> <span class="keywordtype">void</span> check_condition(<a class="code" href="group__event.html#ga87f3028b4888632bbd56fb71ac737ae8">pn_event_t</a> *e, <a class="code" href="group__condition.html#ga11eb7db7d2c205169fe3d47c996a95a5">pn_condition_t</a> *cond) {</div><div class="line">  <span class="keywordflow">if</span> (<a name="a22"></a><a class="code" href="group__condition.html#ga112611a7a4087e050c476a430db2cfb9">pn_condition_is_set</a>(cond)) {</div><div class="line">    <span class="keyword">const</span> <span class="keywordtype">char</span> *ename = e ? <a name="a23"></a><a class="code" href="group__event.html#ga3a85c046c11ce692c23b9566b022d54b">pn_event_type_name</a>(<a name="a24"></a><a class="code" href="group__event.html#gacaea54ca51885933b4987c131a3d1b0d">pn_event_type</a>(e)) : <span class="stringliteral">&quot;UN
 KNOWN&quot;</span>;</div><div class="line">    fprintf(stderr, <span class="stringliteral">&quot;%s: %s: %s\n&quot;</span>, ename,</div><div class="line">            <a name="a25"></a><a class="code" href="group__condition.html#ga05b0d374d90f11d9ebbf818662569689">pn_condition_get_name</a>(cond), <a name="a26"></a><a class="code" href="group__condition.html#gaabebb65bfcf47b6f7d83ab6fb0153bb8">pn_condition_get_description</a>(cond));</div><div class="line">  }</div><div class="line">}</div><div class="line"></div><div class="line"><span class="keyword">const</span> <span class="keywordtype">int</span> WINDOW=10;            <span class="comment">/* Incoming credit window */</span></div><div class="line"></div><div class="line"><span class="keyword">static</span> <span class="keywordtype">void</span> handle(broker_t* b, <a class="code" href="group__event.html#ga87f3028b4888632bbd56fb71ac737ae8">pn_event_t</a>* e) {</div><div class="line">  <a class="code" href="group__connection.html#ga
 886351d81ff3a977a284a206526c5aff">pn_connection_t</a> *c = <a name="a27"></a><a class="code" href="group__event.html#ga4f2c6a0fdf86a43e7e9874fcd2ccaf52">pn_event_connection</a>(e);</div><div class="line"></div><div class="line">  <span class="keywordflow">switch</span> (<a class="code" href="group__event.html#gacaea54ca51885933b4987c131a3d1b0d">pn_event_type</a>(e)) {</div><div class="line"></div><div class="line">   <span class="keywordflow">case</span> <a name="a28"></a><a class="code" href="group__event.html#gga4876e2eed24a4d4e4c52b99842103cdaa0602b15957883e7d00ccdff4abca992c">PN_LISTENER_ACCEPT</a>:</div><div class="line">    <a name="a29"></a><a class="code" href="group__proactor.html#ga76bcf4efdfa82fff28318e1afad083dc">pn_listener_accept</a>(<a name="a30"></a><a class="code" href="group__proactor.html#gad9ea34f659b8bd2d0089fb43fa468300">pn_event_listener</a>(e), <a name="a31"></a><a class="code" href="group__connection.html#gaa9e59c468ec0568b1528f5f83c4b301d">pn_connection</a>
 ());</div><div class="line">    <span class="keywordflow">break</span>;</div><div class="line"></div><div class="line">   <span class="keywordflow">case</span> <a name="a32"></a><a class="code" href="group__event.html#gga4876e2eed24a4d4e4c52b99842103cdaa182e571a0310028514bce66a41063a6e">PN_CONNECTION_INIT</a>: </div><div class="line">     <a name="a33"></a><a class="code" href="group__connection.html#gac4a34e0b1fc5665b26ae47a80a422a1a">pn_connection_set_container</a>(c, b-&gt;container_id);</div><div class="line">     <span class="keywordflow">break</span>;</div><div class="line"></div><div class="line">   <span class="keywordflow">case</span> <a name="a34"></a><a class="code" href="group__event.html#gga4876e2eed24a4d4e4c52b99842103cdaaf61aa79ca82b3a8f5017dc735843fae5">PN_CONNECTION_BOUND</a>: {</div><div class="line">     <span class="comment">/* Turn off security */</span></div><div class="line">     <a class="code" href="group__transport.html#gac26eda05f649bbf0399f3d8d78d12fa8">p
 n_transport_t</a> *t = <a name="a35"></a><a class="code" href="group__connection.html#gad8bd46661ca997b9b2c2c38cb6983c59">pn_connection_transport</a>(c);</div><div class="line">     <a name="a36"></a><a class="code" href="group__transport.html#ga285b4cced59c665ae178adf26128d3fc">pn_transport_require_auth</a>(t, <span class="keyword">false</span>);</div><div class="line">     <a name="a37"></a><a class="code" href="group__sasl.html#ga73299a6a22e141e7911a739590032625">pn_sasl_allowed_mechs</a>(<a name="a38"></a><a class="code" href="group__sasl.html#ga7968e80e2fe9360fc14cf865dd1ac21c">pn_sasl</a>(t), <span class="stringliteral">&quot;ANONYMOUS&quot;</span>);</div><div class="line">     <a name="a39"></a><a class="code" href="group__transport.html#gafb1c98602d17524eb40e48bf610362d7">pn_transport_set_idle_timeout</a>(t, 2 * b-&gt;heartbeat);</div><div class="line">   }</div><div class="line">   <span class="keywordflow">case</span> <a name="a40"></a><a class="code" href="group__event.ht
 ml#gga4876e2eed24a4d4e4c52b99842103cdaad48bce685db553740fa71cc36473b5cc">PN_CONNECTION_REMOTE_OPEN</a>: {</div><div class="line">     <a name="a41"></a><a class="code" href="group__connection.html#ga4c0a2d40bb95202477ccc5aaa7456670">pn_connection_open</a>(<a class="code" href="group__event.html#ga4f2c6a0fdf86a43e7e9874fcd2ccaf52">pn_event_connection</a>(e)); <span class="comment">/* Complete the open */</span></div><div class="line">     <span class="keywordflow">break</span>;</div><div class="line">   }</div><div class="line">   <span class="keywordflow">case</span> <a name="a42"></a><a class="code" href="group__event.html#gga4876e2eed24a4d4e4c52b99842103cdaa28a2bfee806bbc1fe31499c8eec39db0">PN_CONNECTION_WAKE</a>: {</div><div class="line">     <span class="keywordflow">if</span> (pn_connection_get_check_queues(c)) {</div><div class="line">       pn_connection_set_check_queues(c, <span class="keyword">false</span>);</div><div class="line">       <span class="keywordtype">int</span>
  flags = <a name="a43"></a><a class="code" href="group__connection.html#ga0c3bf54f0991944a2f6eea36b561fa2b">PN_LOCAL_ACTIVE</a>&amp;<a name="a44"></a><a class="code" href="group__connection.html#gad96220f2886c21a4f2eebc9487f53a87">PN_REMOTE_ACTIVE</a>;</div><div class="line">       <span class="keywordflow">for</span> (<a class="code" href="group__link.html#ga89dad3aa7934329a7ff467c636687bc0">pn_link_t</a> *l = <a class="code" href="group__link.html#ga7c9434c40eb653f007ff5721e2ebf73e">pn_link_head</a>(c, flags); l != NULL; l = <a class="code" href="group__link.html#ga9b2a9cfa00dfdae4e01bf75483433925">pn_link_next</a>(l, flags))</div><div class="line">         link_send(b, l);</div><div class="line">     }</div><div class="line">     <span class="keywordflow">break</span>;</div><div class="line">   }</div><div class="line">   <span class="keywordflow">case</span> <a name="a45"></a><a class="code" href="group__event.html#gga4876e2eed24a4d4e4c52b99842103cdaaf67df046bea45df34aea863d9541
 e806">PN_SESSION_REMOTE_OPEN</a>: {</div><div class="line">     <a name="a46"></a><a class="code" href="group__session.html#ga2b345eada2c15249caaefaa894d1aae3">pn_session_open</a>(<a name="a47"></a><a class="code" href="group__event.html#gaf4af0bfbe0e0a8e432f0e803df14ecb5">pn_event_session</a>(e));</div><div class="line">     <span class="keywordflow">break</span>;</div><div class="line">   }</div><div class="line">   <span class="keywordflow">case</span> <a name="a48"></a><a class="code" href="group__event.html#gga4876e2eed24a4d4e4c52b99842103cdaa45edb44a6cc7908b5032944e08925307">PN_LINK_REMOTE_OPEN</a>: {</div><div class="line">     <a class="code" href="group__link.html#ga89dad3aa7934329a7ff467c636687bc0">pn_link_t</a> *l = <a name="a49"></a><a class="code" href="group__event.html#ga75f230ef55f03a1f943df79279f8d111">pn_event_link</a>(e);</div><div class="line">     <span class="keywordflow">if</span> (<a class="code" href="group__link.html#ga7c48ef214568267839aea04ed337926b">pn_l
 ink_is_sender</a>(l)) {</div><div class="line">       <span class="keyword">const</span> <span class="keywordtype">char</span> *source = <a class="code" href="group__terminus.html#ga3507b6cfe260a2bfaae9321235db7c9a">pn_terminus_get_address</a>(<a name="a50"></a><a class="code" href="group__link.html#gadf6b8ff6223465f21a481e9287f60671">pn_link_remote_source</a>(l));</div><div class="line">       <a name="a51"></a><a class="code" href="group__terminus.html#ga0603db45f03fcef0ef18f4f89ebf3de1">pn_terminus_set_address</a>(<a class="code" href="group__link.html#ga2c8985a9d44a813ab1739a91ae3708a3">pn_link_source</a>(l), source);</div><div class="line">     } <span class="keywordflow">else</span> {</div><div class="line">       <span class="keyword">const</span> <span class="keywordtype">char</span>* target = <a class="code" href="group__terminus.html#ga3507b6cfe260a2bfaae9321235db7c9a">pn_terminus_get_address</a>(<a name="a52"></a><a class="code" href="group__link.html#gabf61668a66ae189dbb
 4820da6ee30d90">pn_link_remote_target</a>(l));</div><div class="line">       <a class="code" href="group__terminus.html#ga0603db45f03fcef0ef18f4f89ebf3de1">pn_terminus_set_address</a>(<a name="a53"></a><a class="code" href="group__link.html#ga997c85388b9fb30151ea3b40b946e958">pn_link_target</a>(l), target);</div><div class="line">       <a name="a54"></a><a class="code" href="group__link.html#gafec44cf1c79ec03f3ac009e1879e71a9">pn_link_flow</a>(l, WINDOW);</div><div class="line">     }</div><div class="line">     <a name="a55"></a><a class="code" href="group__link.html#gaabaca3f5d03970a122240eebc588add6">pn_link_open</a>(l);</div><div class="line">     <span class="keywordflow">break</span>;</div><div class="line">   }</div><div class="line">   <span class="keywordflow">case</span> <a name="a56"></a><a class="code" href="group__event.html#gga4876e2eed24a4d4e4c52b99842103cdaa4eaecc54c07cdc9b0df7b1d536a7dc3f">PN_LINK_FLOW</a>: {</div><div class="line">     link_send(b, <a class="code"
  href="group__event.html#ga75f230ef55f03a1f943df79279f8d111">pn_event_link</a>(e));</div><div class="line">     <span class="keywordflow">break</span>;</div><div class="line">   }</div><div class="line">   <span class="keywordflow">case</span> <a name="a57"></a><a class="code" href="group__event.html#gga4876e2eed24a4d4e4c52b99842103cdaa70bbfc163d85732b5652dc70fb3330fe">PN_DELIVERY</a>: {</div><div class="line">     <a class="code" href="group__delivery.html#gacdfce854066c0a4ff4db9f9a0478f340">pn_delivery_t</a> *d = <a name="a58"></a><a class="code" href="group__event.html#ga10fa6f53bdabe0851ebb2d8a0bf6a52c">pn_event_delivery</a>(e);</div><div class="line">     <a class="code" href="group__link.html#ga89dad3aa7934329a7ff467c636687bc0">pn_link_t</a> *r = <a name="a59"></a><a class="code" href="group__delivery.html#gad3dd82fe9a649d70d4f3430c34699638">pn_delivery_link</a>(d);</div><div class="line">     <span class="keywordflow">if</span> (<a name="a60"></a><a class="code" href="group__
 link.html#gae7045dd02f2c9450ff8737e005628d81">pn_link_is_receiver</a>(r) &amp;&amp;</div><div class="line">         <a name="a61"></a><a class="code" href="group__delivery.html#ga13364206124b653b90f5ee3ddae9ff35">pn_delivery_readable</a>(d) &amp;&amp; !<a name="a62"></a><a class="code" href="group__delivery.html#ga23c7b3c678228ccb21378e7c8ec9a72d">pn_delivery_partial</a>(d))</div><div class="line">     {</div><div class="line">       <span class="keywordtype">size_t</span> size = <a name="a63"></a><a class="code" href="group__delivery.html#ga17523835dbc8d1906bd71df69d09cc40">pn_delivery_pending</a>(d);</div><div class="line">       <span class="comment">/* The broker does not decode the message, just forwards it. */</span></div><div class="line">       <a class="code" href="group__api__types.html#structpn__rwbytes__t">pn_rwbytes_t</a> m = { size, (<span class="keywordtype">char</span>*)malloc(size) };</div><div class="line">       <a name="a64"></a><a class="code" href="group__link.
 html#ga06c97ce7396973dca0d311567f25f95a">pn_link_recv</a>(r, m.start, m.size);</div><div class="line">       <span class="keyword">const</span> <span class="keywordtype">char</span> *qname = <a class="code" href="group__terminus.html#ga3507b6cfe260a2bfaae9321235db7c9a">pn_terminus_get_address</a>(<a class="code" href="group__link.html#ga997c85388b9fb30151ea3b40b946e958">pn_link_target</a>(r));</div><div class="line">       queue_receive(b-&gt;proactor, queues_get(&amp;b-&gt;queues, qname), m);</div><div class="line">       <a name="a65"></a><a class="code" href="group__delivery.html#ga570c54003c2ba18b84405737925e5176">pn_delivery_update</a>(d, <a name="a66"></a><a class="code" href="group__delivery.html#gac64952b813a707586c6b3898e09552e4">PN_ACCEPTED</a>);</div><div class="line">       <a class="code" href="group__delivery.html#ga98c275fd7158e8b9d7d48d70503d68df">pn_delivery_settle</a>(d);</div><div class="line">       <a class="code" href="group__link.html#gafec44cf1c79ec03f3ac009e
 1879e71a9">pn_link_flow</a>(r, WINDOW - <a class="code" href="group__link.html#ga55428637f3b8c446efd5fea3f26c932d">pn_link_credit</a>(r));</div><div class="line">     }</div><div class="line">     <span class="keywordflow">break</span>;</div><div class="line">   }</div><div class="line"></div><div class="line">   <span class="keywordflow">case</span> <a name="a67"></a><a class="code" href="group__event.html#gga4876e2eed24a4d4e4c52b99842103cdaa1ca722ce3c0b2c13a33636cded8430ba">PN_TRANSPORT_CLOSED</a>:</div><div class="line">    connection_unsub(b, <a class="code" href="group__event.html#ga4f2c6a0fdf86a43e7e9874fcd2ccaf52">pn_event_connection</a>(e));</div><div class="line">    check_condition(e, <a name="a68"></a><a class="code" href="group__transport.html#gac458d9fdb684f9501e89b96fc51f5c34">pn_transport_condition</a>(<a name="a69"></a><a class="code" href="group__event.html#ga14525ae84870388141898bbf57f2b151">pn_event_transport</a>(e)));</div><div class="line">    <span class="keywo
 rdflow">break</span>;</div><div class="line"></div><div class="line">   <span class="keywordflow">case</span> <a name="a70"></a><a class="code" href="group__event.html#gga4876e2eed24a4d4e4c52b99842103cdaa1252529cf9f03d214c9b4fea5cf11b2f">PN_CONNECTION_REMOTE_CLOSE</a>:</div><div class="line">    check_condition(e, <a name="a71"></a><a class="code" href="group__connection.html#ga72a362389b99d8e891bf2e4fb4290754">pn_connection_remote_condition</a>(<a class="code" href="group__event.html#ga4f2c6a0fdf86a43e7e9874fcd2ccaf52">pn_event_connection</a>(e)));</div><div class="line">    connection_unsub(b, <a class="code" href="group__event.html#ga4f2c6a0fdf86a43e7e9874fcd2ccaf52">pn_event_connection</a>(e));</div><div class="line">    <a name="a72"></a><a class="code" href="group__connection.html#gac25afdf810ad188b2cb3bf31a7482ca0">pn_connection_close</a>(<a class="code" href="group__event.html#ga4f2c6a0fdf86a43e7e9874fcd2ccaf52">pn_event_connection</a>(e));</div><div class="line">    <span c
 lass="keywordflow">break</span>;</div><div class="line"></div><div class="line">   <span class="keywordflow">case</span> <a name="a73"></a><a class="code" href="group__event.html#gga4876e2eed24a4d4e4c52b99842103cdaa3410075b825c59b8f4efdcddf5a5b135">PN_SESSION_REMOTE_CLOSE</a>:</div><div class="line">    check_condition(e, <a name="a74"></a><a class="code" href="group__session.html#gae21b3fda1567bad1f8a8fe162ffaeece">pn_session_remote_condition</a>(<a class="code" href="group__event.html#gaf4af0bfbe0e0a8e432f0e803df14ecb5">pn_event_session</a>(e)));</div><div class="line">    session_unsub(b, <a class="code" href="group__event.html#gaf4af0bfbe0e0a8e432f0e803df14ecb5">pn_event_session</a>(e));</div><div class="line">    <a name="a75"></a><a class="code" href="group__session.html#ga12e5c4e71b0df4087d16ccc8b63b42b5">pn_session_close</a>(<a class="code" href="group__event.html#gaf4af0bfbe0e0a8e432f0e803df14ecb5">pn_event_session</a>(e));</div><div class="line">    <a name="a76"></a><a cl
 ass="code" href="group__session.html#ga0f95b5177494a68991d75444c2f6f812">pn_session_free</a>(<a class="code" href="group__event.html#gaf4af0bfbe0e0a8e432f0e803df14ecb5">pn_event_session</a>(e));</div><div class="line">    <span class="keywordflow">break</span>;</div><div class="line"></div><div class="line">   <span class="keywordflow">case</span> <a name="a77"></a><a class="code" href="group__event.html#gga4876e2eed24a4d4e4c52b99842103cdaa1153f0108be071c31210dd1cd3e40a1f">PN_LINK_REMOTE_CLOSE</a>:</div><div class="line">    check_condition(e, <a name="a78"></a><a class="code" href="group__link.html#ga97dc5133125c9b7e4afbb1b76e6efe7b">pn_link_remote_condition</a>(<a class="code" href="group__event.html#ga75f230ef55f03a1f943df79279f8d111">pn_event_link</a>(e)));</div><div class="line">    link_unsub(b, <a class="code" href="group__event.html#ga75f230ef55f03a1f943df79279f8d111">pn_event_link</a>(e));</div><div class="line">    <a name="a79"></a><a class="code" href="group__link.html#g
 a4851693eb6a16fd9ab61e2df6f00770d">pn_link_close</a>(<a class="code" href="group__event.html#ga75f230ef55f03a1f943df79279f8d111">pn_event_link</a>(e));</div><div class="line">    <a name="a80"></a><a class="code" href="group__link.html#gadd3b8899fe023d3506fb88d228d6b1b7">pn_link_free</a>(<a class="code" href="group__event.html#ga75f230ef55f03a1f943df79279f8d111">pn_event_link</a>(e));</div><div class="line">    <span class="keywordflow">break</span>;</div><div class="line"></div><div class="line">   <span class="keywordflow">case</span> <a name="a81"></a><a class="code" href="group__event.html#gga4876e2eed24a4d4e4c52b99842103cdaad5920df168cd28daaf253cad789d8aca">PN_LISTENER_CLOSE</a>:</div><div class="line">    check_condition(e, <a name="a82"></a><a class="code" href="group__proactor.html#ga6dba0fded7ca1718397151c62e65535b">pn_listener_condition</a>(<a class="code" href="group__proactor.html#gad9ea34f659b8bd2d0089fb43fa468300">pn_event_listener</a>(e)));</div><div class="line">    
 <span class="keywordflow">break</span>;</div><div class="line"></div><div class="line">   <span class="keywordflow">case</span> <a name="a83"></a><a class="code" href="group__event.html#gga4876e2eed24a4d4e4c52b99842103cdaa894e93f167ef39e28a07c9cdf6b1181b">PN_PROACTOR_INACTIVE</a>: <span class="comment">/* listener and all connections closed */</span></div><div class="line">    broker_stop(b);</div><div class="line">    <span class="keywordflow">break</span>;</div><div class="line"></div><div class="line">   <span class="keywordflow">case</span> <a name="a84"></a><a class="code" href="group__event.html#gga4876e2eed24a4d4e4c52b99842103cdaaee05826a80e94b5b86c4544e4715f499">PN_PROACTOR_INTERRUPT</a>:</div><div class="line">    b-&gt;finished = <span class="keyword">true</span>;</div><div class="line">    <span class="keywordflow">break</span>;</div><div class="line"></div><div class="line">   <span class="keywordflow">default</span>:</div><div class="line">    <span class="keywordflow">
 break</span>;</div><div class="line">  }</div><div class="line">}</div><div class="line"></div><div class="line"><span class="keyword">static</span> <span class="keywordtype">void</span> broker_thread(<span class="keywordtype">void</span> *void_broker) {</div><div class="line">  broker_t *b = (broker_t*)void_broker;</div><div class="line">  <span class="keywordflow">do</span> {</div><div class="line">    <a class="code" href="group__event.html#ga6bc581dfeaa8e8d46d07d37229d565c9">pn_event_batch_t</a> *events = <a name="a85"></a><a class="code" href="group__proactor.html#ga56f5830965c20d3dbfc63e795eb243c4">pn_proactor_wait</a>(b-&gt;proactor);</div><div class="line">    <a class="code" href="group__event.html#ga87f3028b4888632bbd56fb71ac737ae8">pn_event_t</a> *e;</div><div class="line">    <span class="keywordflow">while</span> ((e = <a name="a86"></a><a class="code" href="group__event.html#gac3fbf151357d3101ac294cb675348c76">pn_event_batch_next</a>(events))) {</div><div class="line">
       handle(b, e);</div><div class="line">    }</div><div class="line">    <a name="a87"></a><a class="code" href="group__proactor.html#gab45680de5c02690a1f1ad1a3c70e9d65">pn_proactor_done</a>(b-&gt;proactor, events);</div><div class="line">  } <span class="keywordflow">while</span>(!b-&gt;finished);</div><div class="line">}</div><div class="line"></div><div class="line"><span class="keyword">static</span> <span class="keywordtype">void</span> usage(<span class="keyword">const</span> <span class="keywordtype">char</span> *arg0) {</div><div class="line">  fprintf(stderr, <span class="stringliteral">&quot;Usage: %s [-d] [-a url] [-t thread-count]\n&quot;</span>, arg0);</div><div class="line">  exit(1);</div><div class="line">}</div><div class="line"></div><div class="line"><span class="keywordtype">int</span> main(<span class="keywordtype">int</span> argc, <span class="keywordtype">char</span> **argv) {</div><div class="line">  <span class="comment">/* Command line options */</span><
 /div><div class="line">  <span class="keywordtype">char</span> *urlstr = NULL;</div><div class="line">  <span class="keywordtype">char</span> container_id[256];</div><div class="line">  <span class="comment">/* Default container-id is program:pid */</span></div><div class="line">  snprintf(container_id, <span class="keyword">sizeof</span>(container_id), <span class="stringliteral">&quot;%s:%d&quot;</span>, argv[0], getpid());</div><div class="line">  <span class="keywordtype">size_t</span> nthreads = 4;</div><div class="line">  <a class="code" href="group__api__types.html#ga9a701bc6dc9af9f42c3f4679172a723c">pn_millis_t</a> heartbeat = 0;</div><div class="line">  <span class="keywordtype">int</span> opt;</div><div class="line">  <span class="keywordflow">while</span> ((opt = getopt(argc, argv, <span class="stringliteral">&quot;a:t:dh:c:&quot;</span>)) != -1) {</div><div class="line">    <span class="keywordflow">switch</span> (opt) {</div><div class="line">     <span class="keywordfl
 ow">case</span> <span class="charliteral">&#39;a&#39;</span>: urlstr = optarg; <span class="keywordflow">break</span>;</div><div class="line">     <span class="keywordflow">case</span> <span class="charliteral">&#39;t&#39;</span>: nthreads = atoi(optarg); <span class="keywordflow">break</span>;</div><div class="line">     <span class="keywordflow">case</span> <span class="charliteral">&#39;d&#39;</span>: enable_debug = <span class="keyword">true</span>; <span class="keywordflow">break</span>;</div><div class="line">     <span class="keywordflow">case</span> <span class="charliteral">&#39;h&#39;</span>: heartbeat = atoi(optarg); <span class="keywordflow">break</span>;</div><div class="line">     <span class="keywordflow">case</span> <span class="charliteral">&#39;c&#39;</span>: strncpy(container_id, optarg, <span class="keyword">sizeof</span>(container_id)); <span class="keywordflow">break</span>;</div><div class="line">     <span class="keywordflow">default</span>: usage(argv[0]); <
 span class="keywordflow">break</span>;</div><div class="line">    }</div><div class="line">  }</div><div class="line">  <span class="keywordflow">if</span> (optind &lt; argc)</div><div class="line">    usage(argv[0]);</div><div class="line"></div><div class="line">  broker_t b;</div><div class="line">  broker_init(&amp;b, container_id, nthreads, heartbeat);</div><div class="line"></div><div class="line">  <span class="comment">/* Parse the URL or use default values */</span></div><div class="line">  <a class="code" href="group__url.html#gafbe4340c29b1abd7394767456ad3b8ea">pn_url_t</a> *url = urlstr ? <a name="a88"></a><a class="code" href="group__url.html#gaaa9f2f29b90525fbf73739cae8b84776">pn_url_parse</a>(urlstr) : NULL;</div><div class="line">  <span class="comment">/* Listen on IPv6 wildcard. On systems that do not set IPV6ONLY by default,</span></div><div class="line"><span class="comment">     this will also listen for mapped IPv4 on the same port.</span></div><div class="line
 "><span class="comment">  */</span></div><div class="line">  <span class="keyword">const</span> <span class="keywordtype">char</span> *host = url ? pn_url_get_host(url) : <span class="stringliteral">&quot;::&quot;</span>;</div><div class="line">  <span class="keyword">const</span> <span class="keywordtype">char</span> *port = url ? pn_url_get_port(url) : <span class="stringliteral">&quot;amqp&quot;</span>;</div><div class="line">  <a name="a89"></a><a class="code" href="group__proactor.html#ga68300a70c58a825564d5b4ee5d147696">pn_proactor_listen</a>(b.proactor, <a name="a90"></a><a class="code" href="group__proactor.html#gaaaf34821f3d29274ec41e7ce71022540">pn_listener</a>(), host, port, 16);</div><div class="line">  printf(<span class="stringliteral">&quot;listening on &#39;%s:%s&#39; %zd threads\n&quot;</span>, host, port, b.threads);</div><div class="line"></div><div class="line">  <span class="keywordflow">if</span> (url) <a name="a91"></a><a class="code" href="group__url.html#gab
 65d8b2c49f5e3f720cea8a3c1a1e6d1">pn_url_free</a>(url);</div><div class="line">  <span class="keywordflow">if</span> (b.threads &lt;= 0) {</div><div class="line">    fprintf(stderr, <span class="stringliteral">&quot;invalid value -t %zu, threads must be &gt; 0\n&quot;</span>, b.threads);</div><div class="line">    exit(1);</div><div class="line">  }</div><div class="line">  <span class="comment">/* Start n-1 threads and use main thread */</span></div><div class="line">  uv_thread_t* threads = (uv_thread_t*)calloc(<span class="keyword">sizeof</span>(uv_thread_t), b.threads);</div><div class="line">  <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> i = 0; i &lt; b.threads-1; ++i) {</div><div class="line">    check(uv_thread_create(&amp;threads[i], broker_thread, &amp;b), <span class="stringliteral">&quot;pthread_create&quot;</span>);</div><div class="line">  }</div><div class="line">  broker_thread(&amp;b);            <span class="comment">/* Use the main t
 hread too. */</span></div><div class="line">  <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> i = 0; i &lt; b.threads-1; ++i) {</div><div class="line">    check(uv_thread_join(&amp;threads[i]), <span class="stringliteral">&quot;pthread_join&quot;</span>);</div><div class="line">  }</div><div class="line">  <a name="a92"></a><a class="code" href="group__proactor.html#ga10fa443c109cee057a3c30e69f93fcef">pn_proactor_free</a>(b.proactor);</div><div class="line">  free(threads);</div><div class="line">  <span class="keywordflow">return</span> 0;</div><div class="line">}</div></div><!-- fragment --> </div><!-- contents -->
+</div><!-- doc-content -->
+<!-- start footer part -->
+<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
+  <ul>
+    <li class="footer">Generated by
+    <a href="http://www.doxygen.org/index.html">
+    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.11 </li>
+  </ul>
+</div>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/qpid-site/blob/cd4363b2/content/releases/qpid-proton-master/proton/c/api/cid_8h_source.html
----------------------------------------------------------------------
diff --git a/content/releases/qpid-proton-master/proton/c/api/cid_8h_source.html b/content/releases/qpid-proton-master/proton/c/api/cid_8h_source.html
index f473ef9..c7eec7f 100755
--- a/content/releases/qpid-proton-master/proton/c/api/cid_8h_source.html
+++ b/content/releases/qpid-proton-master/proton/c/api/cid_8h_source.html
@@ -93,7 +93,7 @@ $(document).ready(function(){initNavTree('cid_8h_source.html','');});
 <div class="title">cid.h</div>  </div>
 </div><!--header-->
 <div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="preprocessor">#ifndef PROTON_CID_H</span></div><div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="preprocessor">#define PROTON_CID_H 1</span></div><div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment">/*</span></div><div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment"> * Licensed to the Apache Software Foundation (ASF) under one</span></div><div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment"> * or more contributor license agreements.  See the NOTICE file</span></div><div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment"> * distributed wi
 th this work for additional information</span></div><div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment"> * regarding copyright ownership.  The ASF licenses this file</span></div><div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="comment"> * to you under the Apache License, Version 2.0 (the</span></div><div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="comment"> * &quot;License&quot;); you may not use this file except in compliance</span></div><div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="comment"> * with the License.  You may obtain a copy of the License at</span></div><div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="comment"> *   http://www.apache.org/licens
 es/LICENSE-2.0</span></div><div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="comment"> * Unless required by applicable law or agreed to in writing,</span></div><div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="comment"> * software distributed under the License is distributed on an</span></div><div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="comment"> * &quot;AS IS&quot; BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY</span></div><div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="comment"> * KIND, either express or implied.  See the License for the</span></div><div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="comment"> * specific language governing permissions and limita
 tions</span></div><div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="comment"> * under the License.</span></div><div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="comment"> */</span></div><div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;</div><div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;<span class="keyword">typedef</span> <span class="keyword">enum</span> {</div><div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;  CID_pn_object = 1,</div><div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;  CID_pn_void,</div><div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;  CID_pn_weakref,</div><div class="line"><a name="l00028"></a><span class="lineno">   28</span
 >&#160;</div><div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;  CID_pn_string,</div><div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;  CID_pn_list,</div><div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;  CID_pn_map,</div><div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;  CID_pn_hash,</div><div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;  CID_pn_record,</div><div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;</div><div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;  CID_pn_collector,</div><div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;  CID_pn_event,</div><div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;</div><div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;  CID_pn_encoder,</div><div class="line"><a
  name="l00039"></a><span class="lineno">   39</span>&#160;  CID_pn_decoder,</div><div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;  CID_pn_data,</div><div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;</div><div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;  CID_pn_connection,</div><div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;  CID_pn_session,</div><div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;  CID_pn_link,</div><div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;  CID_pn_delivery,</div><div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;  CID_pn_transport,</div><div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;</div><div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;  CID_pn_message,</div><div class="line"><a name="l00049"></a><s
 pan class="lineno">   49</span>&#160;</div><div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;  CID_pn_reactor,</div><div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;  CID_pn_handler,</div><div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;  CID_pn_timer,</div><div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;  CID_pn_task,</div><div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;</div><div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;  CID_pn_io,</div><div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;  CID_pn_selector,</div><div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;  CID_pn_selectable,</div><div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;</div><div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;  CID_p
 n_url</div><div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;} pn_cid_t;</div><div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;</div><div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;<span class="preprocessor">#endif </span><span class="comment">/* cid.h */</span><span class="preprocessor"></span></div></div><!-- fragment --></div><!-- contents -->
+<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="preprocessor">#ifndef PROTON_CID_H</span></div><div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="preprocessor">#define PROTON_CID_H 1</span></div><div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;</div><div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment">/*</span></div><div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment"> * Licensed to the Apache Software Foundation (ASF) under one</span></div><div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment"> * or more contributor license agreements.  See the NOTICE file</span></div><div class="line"><a name="l00008
 "></a><span class="lineno">    8</span>&#160;<span class="comment"> * distributed with this work for additional information</span></div><div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="comment"> * regarding copyright ownership.  The ASF licenses this file</span></div><div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="comment"> * to you under the Apache License, Version 2.0 (the</span></div><div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="comment"> * &quot;License&quot;); you may not use this file except in compliance</span></div><div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="comment"> * with the License.  You may obtain a copy of the License at</span></div><div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00014"></a><span clas
 s="lineno">   14</span>&#160;<span class="comment"> *   http://www.apache.org/licenses/LICENSE-2.0</span></div><div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="comment"> * Unless required by applicable law or agreed to in writing,</span></div><div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="comment"> * software distributed under the License is distributed on an</span></div><div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="comment"> * &quot;AS IS&quot; BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY</span></div><div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="comment"> * KIND, either express or implied.  See the License for the</span></div><div class="line"><a name="l00020"></a><span class="lineno">   20</sp
 an>&#160;<span class="comment"> * specific language governing permissions and limitations</span></div><div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="comment"> * under the License.</span></div><div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;<span class="comment"> */</span></div><div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;</div><div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;<span class="keyword">typedef</span> <span class="keyword">enum</span> {</div><div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;  CID_pn_object = 1,</div><div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;  CID_pn_void,</div><div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;  CID_pn_w
 eakref,</div><div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;</div><div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;  CID_pn_string,</div><div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;  CID_pn_list,</div><div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;  CID_pn_map,</div><div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;  CID_pn_hash,</div><div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;  CID_pn_record,</div><div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;</div><div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;  CID_pn_collector,</div><div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;  CID_pn_event,</div><div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;</div><div class="line"><a name="l00043"></
 a><span class="lineno">   43</span>&#160;  CID_pn_encoder,</div><div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;  CID_pn_decoder,</div><div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;  CID_pn_data,</div><div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;</div><div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;  CID_pn_connection,</div><div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;  CID_pn_session,</div><div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;  CID_pn_link,</div><div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;  CID_pn_delivery,</div><div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;  CID_pn_transport,</div><div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;</div><div class="line"><a name="l00053"></a><span class="lineno
 ">   53</span>&#160;  CID_pn_message,</div><div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;</div><div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;  CID_pn_reactor,</div><div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;  CID_pn_handler,</div><div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;  CID_pn_timer,</div><div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;  CID_pn_task,</div><div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;</div><div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;  CID_pn_io,</div><div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;  CID_pn_selector,</div><div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;  CID_pn_selectable,</div><div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;</div><
 div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;  CID_pn_url,</div><div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;</div><div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;  CID_pn_listener,</div><div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;  CID_pn_proactor</div><div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;} pn_cid_t;</div><div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;</div><div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;<span class="preprocessor">#endif </span><span class="comment">/* cid.h */</span><span class="preprocessor"></span></div></div><!-- fragment --></div><!-- contents -->
 </div><!-- doc-content -->
 <!-- start footer part -->
 <div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->

http://git-wip-us.apache.org/repos/asf/qpid-site/blob/cd4363b2/content/releases/qpid-proton-master/proton/c/api/classes.html
----------------------------------------------------------------------
diff --git a/content/releases/qpid-proton-master/proton/c/api/classes.html b/content/releases/qpid-proton-master/proton/c/api/classes.html
index 8a4165f..e45371e 100755
--- a/content/releases/qpid-proton-master/proton/c/api/classes.html
+++ b/content/releases/qpid-proton-master/proton/c/api/classes.html
@@ -93,15 +93,23 @@ $(document).ready(function(){initNavTree('classes.html','');});
 <div class="title">Class Index</div>  </div>
 </div><!--header-->
 <div class="contents">
-<div class="qindex"><a class="qindex" href="#letter_P">P</a></div>
+<div class="qindex"><a class="qindex" href="#letter_A">A</a>&#160;|&#160;<a class="qindex" href="#letter_B">B</a>&#160;|&#160;<a class="qindex" href="#letter_C">C</a>&#160;|&#160;<a class="qindex" href="#letter_D">D</a>&#160;|&#160;<a class="qindex" href="#letter_R">R</a>&#160;|&#160;<a class="qindex" href="#letter_U">U</a></div>
 <table class="classindex">
-<tr><td rowspan="2" valign="bottom"><a name="letter_p"></a><table border="0" cellspacing="0" cellpadding="0"><tr><td><div class="ah">&#160;&#160;p&#160;&#160;</div></td></tr></table>
-</td><td valign="top"><a class="el" href="structpn__buf__t.html">pn_buf_t</a>&#160;&#160;&#160;</td><td valign="top"><a class="el" href="structpn__class__t.html">pn_class_t</a>&#160;&#160;&#160;</td><td valign="top"><a class="el" href="structpn__token__t.html">pn_token_t</a>&#160;&#160;&#160;</td></tr>
-<tr><td valign="top"><a class="el" href="structpn__bytes__t.html">pn_bytes_t</a>&#160;&#160;&#160;</td><td valign="top"><a class="el" href="structpn__connection__engine__t.html">pn_connection_engine_t</a>&#160;&#160;&#160;</td><td valign="top"><a class="el" href="structpn__uuid__t.html">pn_uuid_t</a>&#160;&#160;&#160;</td></tr>
-<tr><td valign="top"><a class="el" href="structpn__atom__t.html">pn_atom_t</a>&#160;&#160;&#160;</td><td valign="top"><a class="el" href="structpn__cbuf__t.html">pn_cbuf_t</a>&#160;&#160;&#160;</td><td valign="top"><a class="el" href="structpn__decimal128__t.html">pn_decimal128_t</a>&#160;&#160;&#160;</td><td></td></tr>
+<tr><td rowspan="2" valign="bottom"><a name="letter_a"></a><table border="0" cellspacing="0" cellpadding="0"><tr><td><div class="ah">&#160;&#160;a&#160;&#160;</div></td></tr></table>
+</td><td rowspan="2" valign="bottom"><a name="letter_c"></a><table border="0" cellspacing="0" cellpadding="0"><tr><td><div class="ah">&#160;&#160;c&#160;&#160;</div></td></tr></table>
+</td><td rowspan="2" valign="bottom"><a name="letter_r"></a><table border="0" cellspacing="0" cellpadding="0"><tr><td><div class="ah">&#160;&#160;r&#160;&#160;</div></td></tr></table>
+</td><td></td></tr>
+<tr><td></td></tr>
+<tr><td valign="top"><a class="el" href="group__api__types.html#structpn__atom__t">pn_atom_t</a>&#160;&#160;&#160;</td><td valign="top"><a class="el" href="group__connection__driver.html#structpn__connection__driver__t">pn_connection_driver_t</a>&#160;&#160;&#160;</td><td valign="top"><a class="el" href="group__api__types.html#structpn__rwbytes__t">pn_rwbytes_t</a>&#160;&#160;&#160;</td><td></td></tr>
+<tr><td rowspan="2" valign="bottom"><a name="letter_b"></a><table border="0" cellspacing="0" cellpadding="0"><tr><td><div class="ah">&#160;&#160;b&#160;&#160;</div></td></tr></table>
+</td><td rowspan="2" valign="bottom"><a name="letter_d"></a><table border="0" cellspacing="0" cellpadding="0"><tr><td><div class="ah">&#160;&#160;d&#160;&#160;</div></td></tr></table>
+</td><td rowspan="2" valign="bottom"><a name="letter_u"></a><table border="0" cellspacing="0" cellpadding="0"><tr><td><div class="ah">&#160;&#160;u&#160;&#160;</div></td></tr></table>
+</td><td></td></tr>
+<tr><td></td></tr>
+<tr><td valign="top"><a class="el" href="group__api__types.html#structpn__bytes__t">pn_bytes_t</a>&#160;&#160;&#160;</td><td valign="top"><a class="el" href="group__amqp__types.html#structpn__decimal128__t">pn_decimal128_t</a>&#160;&#160;&#160;</td><td valign="top"><a class="el" href="group__amqp__types.html#structpn__uuid__t">pn_uuid_t</a>&#160;&#160;&#160;</td><td></td></tr>
 <tr><td></td><td></td><td></td><td></td></tr>
 </table>
-<div class="qindex"><a class="qindex" href="#letter_P">P</a></div>
+<div class="qindex"><a class="qindex" href="#letter_A">A</a>&#160;|&#160;<a class="qindex" href="#letter_B">B</a>&#160;|&#160;<a class="qindex" href="#letter_C">C</a>&#160;|&#160;<a class="qindex" href="#letter_D">D</a>&#160;|&#160;<a class="qindex" href="#letter_R">R</a>&#160;|&#160;<a class="qindex" href="#letter_U">U</a></div>
 </div><!-- contents -->
 </div><!-- doc-content -->
 <!-- start footer part -->


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org


Mime
View raw message