blob: f7a27c52ba204b30772b71167cc3db3b47e6a0b4 [file] [log] [blame]
<!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.6"/>
<title>GRPC Core: src/core/channel/channel_stack.h Source File</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="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
$(document).ready(function() { searchBox.OnSelectItem(0); });
</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 style="padding-left: 0.5em;">
<div id="projectname">GRPC Core
&#160;<span id="projectnumber">0.10.0.0</span>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.6 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<div id="navrow1" class="tabs">
<ul class="tablist">
<li><a href="index.html"><span>Main&#160;Page</span></a></li>
<li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
<li class="current"><a href="files.html"><span>Files</span></a></li>
<li>
<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>
</li>
</ul>
</div>
<div id="navrow2" class="tabs2">
<ul class="tablist">
<li><a href="files.html"><span>File&#160;List</span></a></li>
<li><a href="globals.html"><span>Globals</span></a></li>
</ul>
</div>
<!-- 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">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Data Structures</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Macros</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark">&#160;</span>Pages</a></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 id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="dir_aebb8dcc11953d78e620bbef0b9e2183.html">core</a></li><li class="navelem"><a class="el" href="dir_8aa15e76222df75340b2e23e43efb3e2.html">channel</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="headertitle">
<div class="title">channel_stack.h</div> </div>
</div><!--header-->
<div class="contents">
<a href="channel__stack_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span>&#160;<span class="comment">/*</span></div>
<div class="line"><a name="l00002"></a><span class="lineno"> 2</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00003"></a><span class="lineno"> 3</span>&#160;<span class="comment"> * Copyright 2015, Google Inc.</span></div>
<div class="line"><a name="l00004"></a><span class="lineno"> 4</span>&#160;<span class="comment"> * All rights reserved.</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"> * Redistribution and use in source and binary forms, with or without</span></div>
<div class="line"><a name="l00007"></a><span class="lineno"> 7</span>&#160;<span class="comment"> * modification, are permitted provided that the following conditions are</span></div>
<div class="line"><a name="l00008"></a><span class="lineno"> 8</span>&#160;<span class="comment"> * met:</span></div>
<div class="line"><a name="l00009"></a><span class="lineno"> 9</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00010"></a><span class="lineno"> 10</span>&#160;<span class="comment"> * * Redistributions of source code must retain the above copyright</span></div>
<div class="line"><a name="l00011"></a><span class="lineno"> 11</span>&#160;<span class="comment"> * notice, this list of conditions and the following disclaimer.</span></div>
<div class="line"><a name="l00012"></a><span class="lineno"> 12</span>&#160;<span class="comment"> * * Redistributions in binary form must reproduce the above</span></div>
<div class="line"><a name="l00013"></a><span class="lineno"> 13</span>&#160;<span class="comment"> * copyright notice, this list of conditions and the following disclaimer</span></div>
<div class="line"><a name="l00014"></a><span class="lineno"> 14</span>&#160;<span class="comment"> * in the documentation and/or other materials provided with the</span></div>
<div class="line"><a name="l00015"></a><span class="lineno"> 15</span>&#160;<span class="comment"> * distribution.</span></div>
<div class="line"><a name="l00016"></a><span class="lineno"> 16</span>&#160;<span class="comment"> * * Neither the name of Google Inc. nor the names of its</span></div>
<div class="line"><a name="l00017"></a><span class="lineno"> 17</span>&#160;<span class="comment"> * contributors may be used to endorse or promote products derived from</span></div>
<div class="line"><a name="l00018"></a><span class="lineno"> 18</span>&#160;<span class="comment"> * this software without specific prior written permission.</span></div>
<div class="line"><a name="l00019"></a><span class="lineno"> 19</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00020"></a><span class="lineno"> 20</span>&#160;<span class="comment"> * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS</span></div>
<div class="line"><a name="l00021"></a><span class="lineno"> 21</span>&#160;<span class="comment"> * &quot;AS IS&quot; AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT</span></div>
<div class="line"><a name="l00022"></a><span class="lineno"> 22</span>&#160;<span class="comment"> * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR</span></div>
<div class="line"><a name="l00023"></a><span class="lineno"> 23</span>&#160;<span class="comment"> * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT</span></div>
<div class="line"><a name="l00024"></a><span class="lineno"> 24</span>&#160;<span class="comment"> * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,</span></div>
<div class="line"><a name="l00025"></a><span class="lineno"> 25</span>&#160;<span class="comment"> * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT</span></div>
<div class="line"><a name="l00026"></a><span class="lineno"> 26</span>&#160;<span class="comment"> * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,</span></div>
<div class="line"><a name="l00027"></a><span class="lineno"> 27</span>&#160;<span class="comment"> * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY</span></div>
<div class="line"><a name="l00028"></a><span class="lineno"> 28</span>&#160;<span class="comment"> * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT</span></div>
<div class="line"><a name="l00029"></a><span class="lineno"> 29</span>&#160;<span class="comment"> * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE</span></div>
<div class="line"><a name="l00030"></a><span class="lineno"> 30</span>&#160;<span class="comment"> * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.</span></div>
<div class="line"><a name="l00031"></a><span class="lineno"> 31</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00032"></a><span class="lineno"> 32</span>&#160;<span class="comment"> */</span></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;<span class="preprocessor">#ifndef GRPC_INTERNAL_CORE_CHANNEL_CHANNEL_STACK_H</span></div>
<div class="line"><a name="l00035"></a><span class="lineno"> 35</span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define GRPC_INTERNAL_CORE_CHANNEL_CHANNEL_STACK_H</span></div>
<div class="line"><a name="l00036"></a><span class="lineno"> 36</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00037"></a><span class="lineno"> 37</span>&#160;<span class="comment">/* A channel filter defines how operations on a channel are implemented.</span></div>
<div class="line"><a name="l00038"></a><span class="lineno"> 38</span>&#160;<span class="comment"> Channel filters are chained together to create full channels, and if those</span></div>
<div class="line"><a name="l00039"></a><span class="lineno"> 39</span>&#160;<span class="comment"> chains are linear, then channel stacks provide a mechanism to minimize</span></div>
<div class="line"><a name="l00040"></a><span class="lineno"> 40</span>&#160;<span class="comment"> allocations for that chain.</span></div>
<div class="line"><a name="l00041"></a><span class="lineno"> 41</span>&#160;<span class="comment"> Call stacks are created by channel stacks and represent the per-call data</span></div>
<div class="line"><a name="l00042"></a><span class="lineno"> 42</span>&#160;<span class="comment"> for that stack. */</span></div>
<div class="line"><a name="l00043"></a><span class="lineno"> 43</span>&#160;</div>
<div class="line"><a name="l00044"></a><span class="lineno"> 44</span>&#160;<span class="preprocessor">#include &lt;stddef.h&gt;</span></div>
<div class="line"><a name="l00045"></a><span class="lineno"> 45</span>&#160;</div>
<div class="line"><a name="l00046"></a><span class="lineno"> 46</span>&#160;<span class="preprocessor">#include &lt;<a class="code" href="grpc_8h.html">grpc/grpc.h</a>&gt;</span></div>
<div class="line"><a name="l00047"></a><span class="lineno"> 47</span>&#160;<span class="preprocessor">#include &lt;<a class="code" href="log_8h.html">grpc/support/log.h</a>&gt;</span></div>
<div class="line"><a name="l00048"></a><span class="lineno"> 48</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="trace_8h.html">src/core/debug/trace.h</a>&quot;</span></div>
<div class="line"><a name="l00049"></a><span class="lineno"> 49</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="transport_8h.html">src/core/transport/transport.h</a>&quot;</span></div>
<div class="line"><a name="l00050"></a><span class="lineno"> 50</span>&#160;</div>
<div class="line"><a name="l00051"></a><span class="lineno"><a class="line" href="channel__stack_8h.html#aea7892e6dfe1fbf098a7d6deea46d4ca"> 51</a></span>&#160;<span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="structgrpc__channel__element.html">grpc_channel_element</a> <a class="code" href="structgrpc__channel__element.html">grpc_channel_element</a>;</div>
<div class="line"><a name="l00052"></a><span class="lineno"><a class="line" href="channel__stack_8h.html#ad4b0603b98c350dc4bfdcc2ba95d5401"> 52</a></span>&#160;<span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="structgrpc__call__element.html">grpc_call_element</a> <a class="code" href="structgrpc__call__element.html">grpc_call_element</a>;</div>
<div class="line"><a name="l00053"></a><span class="lineno"> 53</span>&#160;</div>
<div class="line"><a name="l00054"></a><span class="lineno"> 54</span>&#160;<span class="comment">/* Channel filters specify:</span></div>
<div class="line"><a name="l00055"></a><span class="lineno"> 55</span>&#160;<span class="comment"> 1. the amount of memory needed in the channel &amp; call (via the sizeof_XXX</span></div>
<div class="line"><a name="l00056"></a><span class="lineno"> 56</span>&#160;<span class="comment"> members)</span></div>
<div class="line"><a name="l00057"></a><span class="lineno"> 57</span>&#160;<span class="comment"> 2. functions to initialize and destroy channel &amp; call data</span></div>
<div class="line"><a name="l00058"></a><span class="lineno"> 58</span>&#160;<span class="comment"> (init_XXX, destroy_XXX)</span></div>
<div class="line"><a name="l00059"></a><span class="lineno"> 59</span>&#160;<span class="comment"> 3. functions to implement call operations and channel operations (call_op,</span></div>
<div class="line"><a name="l00060"></a><span class="lineno"> 60</span>&#160;<span class="comment"> channel_op)</span></div>
<div class="line"><a name="l00061"></a><span class="lineno"> 61</span>&#160;<span class="comment"> 4. a name, which is useful when debugging</span></div>
<div class="line"><a name="l00062"></a><span class="lineno"> 62</span>&#160;<span class="comment"></span></div>
<div class="line"><a name="l00063"></a><span class="lineno"> 63</span>&#160;<span class="comment"> Members are laid out in approximate frequency of use order. */</span></div>
<div class="line"><a name="l00064"></a><span class="lineno"><a class="line" href="structgrpc__channel__filter.html"> 64</a></span>&#160;<span class="keyword">typedef</span> <span class="keyword">struct </span>{</div>
<div class="line"><a name="l00065"></a><span class="lineno"> 65</span>&#160; <span class="comment">/* Called to eg. send/receive data on a call.</span></div>
<div class="line"><a name="l00066"></a><span class="lineno"> 66</span>&#160;<span class="comment"> See grpc_call_next_op on how to call the next element in the stack */</span></div>
<div class="line"><a name="l00067"></a><span class="lineno"><a class="line" href="structgrpc__channel__filter.html#a089c1e5997b329703ccaaf633722a6c5"> 67</a></span>&#160; void (*start_transport_stream_op)(<a class="code" href="structgrpc__call__element.html">grpc_call_element</a> *elem,</div>
<div class="line"><a name="l00068"></a><span class="lineno"> 68</span>&#160; <a class="code" href="structgrpc__transport__stream__op.html">grpc_transport_stream_op</a> *op);</div>
<div class="line"><a name="l00069"></a><span class="lineno"> 69</span>&#160; <span class="comment">/* Called to handle channel level operations - e.g. new calls, or transport</span></div>
<div class="line"><a name="l00070"></a><span class="lineno"> 70</span>&#160;<span class="comment"> closure.</span></div>
<div class="line"><a name="l00071"></a><span class="lineno"> 71</span>&#160;<span class="comment"> See grpc_channel_next_op on how to call the next element in the stack */</span></div>
<div class="line"><a name="l00072"></a><span class="lineno"><a class="line" href="structgrpc__channel__filter.html#aa3508daf2442c8bc11529d0295798819"> 72</a></span>&#160; void (*start_transport_op)(<a class="code" href="structgrpc__channel__element.html">grpc_channel_element</a> *elem, <a class="code" href="structgrpc__transport__op.html">grpc_transport_op</a> *op);</div>
<div class="line"><a name="l00073"></a><span class="lineno"> 73</span>&#160;</div>
<div class="line"><a name="l00074"></a><span class="lineno"> 74</span>&#160; <span class="comment">/* sizeof(per call data) */</span></div>
<div class="line"><a name="l00075"></a><span class="lineno"><a class="line" href="structgrpc__channel__filter.html#afcdf09a04565aee37bf4ddf4b7ed69cc"> 75</a></span>&#160; <span class="keywordtype">size_t</span> <a class="code" href="structgrpc__channel__filter.html#afcdf09a04565aee37bf4ddf4b7ed69cc">sizeof_call_data</a>;</div>
<div class="line"><a name="l00076"></a><span class="lineno"> 76</span>&#160; <span class="comment">/* Initialize per call data.</span></div>
<div class="line"><a name="l00077"></a><span class="lineno"> 77</span>&#160;<span class="comment"> elem is initialized at the start of the call, and elem-&gt;call_data is what</span></div>
<div class="line"><a name="l00078"></a><span class="lineno"> 78</span>&#160;<span class="comment"> needs initializing.</span></div>
<div class="line"><a name="l00079"></a><span class="lineno"> 79</span>&#160;<span class="comment"> The filter does not need to do any chaining.</span></div>
<div class="line"><a name="l00080"></a><span class="lineno"> 80</span>&#160;<span class="comment"> server_transport_data is an opaque pointer. If it is NULL, this call is</span></div>
<div class="line"><a name="l00081"></a><span class="lineno"> 81</span>&#160;<span class="comment"> on a client; if it is non-NULL, then it points to memory owned by the</span></div>
<div class="line"><a name="l00082"></a><span class="lineno"> 82</span>&#160;<span class="comment"> transport and is on the server. Most filters want to ignore this</span></div>
<div class="line"><a name="l00083"></a><span class="lineno"> 83</span>&#160;<span class="comment"> argument.*/</span></div>
<div class="line"><a name="l00084"></a><span class="lineno"><a class="line" href="structgrpc__channel__filter.html#aea34a13bc660ba869d4c18ed6cd21c2b"> 84</a></span>&#160; void (*init_call_elem)(<a class="code" href="structgrpc__call__element.html">grpc_call_element</a> *elem,</div>
<div class="line"><a name="l00085"></a><span class="lineno"> 85</span>&#160; <span class="keyword">const</span> <span class="keywordtype">void</span> *server_transport_data,</div>
<div class="line"><a name="l00086"></a><span class="lineno"> 86</span>&#160; <a class="code" href="structgrpc__transport__stream__op.html">grpc_transport_stream_op</a> *initial_op);</div>
<div class="line"><a name="l00087"></a><span class="lineno"> 87</span>&#160; <span class="comment">/* Destroy per call data.</span></div>
<div class="line"><a name="l00088"></a><span class="lineno"> 88</span>&#160;<span class="comment"> The filter does not need to do any chaining */</span></div>
<div class="line"><a name="l00089"></a><span class="lineno"><a class="line" href="structgrpc__channel__filter.html#a347e5451860788a084735e66b1684312"> 89</a></span>&#160; void (*destroy_call_elem)(<a class="code" href="structgrpc__call__element.html">grpc_call_element</a> *elem);</div>
<div class="line"><a name="l00090"></a><span class="lineno"> 90</span>&#160;</div>
<div class="line"><a name="l00091"></a><span class="lineno"> 91</span>&#160; <span class="comment">/* sizeof(per channel data) */</span></div>
<div class="line"><a name="l00092"></a><span class="lineno"><a class="line" href="structgrpc__channel__filter.html#ac63b36f8c895f18f68ee1d8a862f18a4"> 92</a></span>&#160; <span class="keywordtype">size_t</span> <a class="code" href="structgrpc__channel__filter.html#ac63b36f8c895f18f68ee1d8a862f18a4">sizeof_channel_data</a>;</div>
<div class="line"><a name="l00093"></a><span class="lineno"> 93</span>&#160; <span class="comment">/* Initialize per-channel data.</span></div>
<div class="line"><a name="l00094"></a><span class="lineno"> 94</span>&#160;<span class="comment"> elem is initialized at the start of the call, and elem-&gt;channel_data is</span></div>
<div class="line"><a name="l00095"></a><span class="lineno"> 95</span>&#160;<span class="comment"> what needs initializing.</span></div>
<div class="line"><a name="l00096"></a><span class="lineno"> 96</span>&#160;<span class="comment"> is_first, is_last designate this elements position in the stack, and are</span></div>
<div class="line"><a name="l00097"></a><span class="lineno"> 97</span>&#160;<span class="comment"> useful for asserting correct configuration by upper layer code.</span></div>
<div class="line"><a name="l00098"></a><span class="lineno"> 98</span>&#160;<span class="comment"> The filter does not need to do any chaining */</span></div>
<div class="line"><a name="l00099"></a><span class="lineno"><a class="line" href="structgrpc__channel__filter.html#a7171b1634e5a7d42880f68ae1a4f875a"> 99</a></span>&#160; void (*init_channel_elem)(<a class="code" href="structgrpc__channel__element.html">grpc_channel_element</a> *elem, <a class="code" href="structgrpc__channel.html">grpc_channel</a> *master,</div>
<div class="line"><a name="l00100"></a><span class="lineno"> 100</span>&#160; <span class="keyword">const</span> <a class="code" href="structgrpc__channel__args.html">grpc_channel_args</a> *args,</div>
<div class="line"><a name="l00101"></a><span class="lineno"> 101</span>&#160; <a class="code" href="structgrpc__mdctx.html">grpc_mdctx</a> *metadata_context, <span class="keywordtype">int</span> is_first,</div>
<div class="line"><a name="l00102"></a><span class="lineno"> 102</span>&#160; <span class="keywordtype">int</span> is_last);</div>
<div class="line"><a name="l00103"></a><span class="lineno"> 103</span>&#160; <span class="comment">/* Destroy per channel data.</span></div>
<div class="line"><a name="l00104"></a><span class="lineno"> 104</span>&#160;<span class="comment"> The filter does not need to do any chaining */</span></div>
<div class="line"><a name="l00105"></a><span class="lineno"><a class="line" href="structgrpc__channel__filter.html#a7ab39b0d83fd44c9e3be4b930e6b60e2"> 105</a></span>&#160; void (*destroy_channel_elem)(<a class="code" href="structgrpc__channel__element.html">grpc_channel_element</a> *elem);</div>
<div class="line"><a name="l00106"></a><span class="lineno"> 106</span>&#160;</div>
<div class="line"><a name="l00107"></a><span class="lineno"> 107</span>&#160; <span class="comment">/* Implement grpc_call_get_peer() */</span></div>
<div class="line"><a name="l00108"></a><span class="lineno"><a class="line" href="structgrpc__channel__filter.html#a6ddcbc355118eca15b48ee15476d2ace"> 108</a></span>&#160; <span class="keywordtype">char</span> *(*get_peer)(<a class="code" href="structgrpc__call__element.html">grpc_call_element</a> *elem);</div>
<div class="line"><a name="l00109"></a><span class="lineno"> 109</span>&#160;</div>
<div class="line"><a name="l00110"></a><span class="lineno"> 110</span>&#160; <span class="comment">/* The name of this filter */</span></div>
<div class="line"><a name="l00111"></a><span class="lineno"><a class="line" href="structgrpc__channel__filter.html#afbf60f6f8b73c26026f266f4fc32fda6"> 111</a></span>&#160; <span class="keyword">const</span> <span class="keywordtype">char</span> *<a class="code" href="structgrpc__channel__filter.html#afbf60f6f8b73c26026f266f4fc32fda6">name</a>;</div>
<div class="line"><a name="l00112"></a><span class="lineno"> 112</span>&#160;} <a class="code" href="structgrpc__channel__filter.html">grpc_channel_filter</a>;</div>
<div class="line"><a name="l00113"></a><span class="lineno"> 113</span>&#160;</div>
<div class="line"><a name="l00114"></a><span class="lineno"> 114</span>&#160;<span class="comment">/* A channel_element tracks its filter and the filter requested memory within</span></div>
<div class="line"><a name="l00115"></a><span class="lineno"> 115</span>&#160;<span class="comment"> a channel allocation */</span></div>
<div class="line"><a name="l00116"></a><span class="lineno"><a class="line" href="structgrpc__channel__element.html"> 116</a></span>&#160;<span class="keyword">struct </span><a class="code" href="structgrpc__channel__element.html">grpc_channel_element</a> {</div>
<div class="line"><a name="l00117"></a><span class="lineno"><a class="line" href="structgrpc__channel__element.html#a3f80663d58f2e206836e18fa7ce5aec3"> 117</a></span>&#160; <span class="keyword">const</span> <a class="code" href="structgrpc__channel__filter.html">grpc_channel_filter</a> *<a class="code" href="structgrpc__channel__element.html#a3f80663d58f2e206836e18fa7ce5aec3">filter</a>;</div>
<div class="line"><a name="l00118"></a><span class="lineno"><a class="line" href="structgrpc__channel__element.html#af498fd50d8b3667b3e20395e341a858d"> 118</a></span>&#160; <span class="keywordtype">void</span> *<a class="code" href="structgrpc__channel__element.html#af498fd50d8b3667b3e20395e341a858d">channel_data</a>;</div>
<div class="line"><a name="l00119"></a><span class="lineno"> 119</span>&#160;};</div>
<div class="line"><a name="l00120"></a><span class="lineno"> 120</span>&#160;</div>
<div class="line"><a name="l00121"></a><span class="lineno"> 121</span>&#160;<span class="comment">/* A call_element tracks its filter, the filter requested memory within</span></div>
<div class="line"><a name="l00122"></a><span class="lineno"> 122</span>&#160;<span class="comment"> a channel allocation, and the filter requested memory within a call</span></div>
<div class="line"><a name="l00123"></a><span class="lineno"> 123</span>&#160;<span class="comment"> allocation */</span></div>
<div class="line"><a name="l00124"></a><span class="lineno"><a class="line" href="structgrpc__call__element.html"> 124</a></span>&#160;<span class="keyword">struct </span><a class="code" href="structgrpc__call__element.html">grpc_call_element</a> {</div>
<div class="line"><a name="l00125"></a><span class="lineno"><a class="line" href="structgrpc__call__element.html#aac551ff2d3e8df1b3d39495eb7f160a8"> 125</a></span>&#160; <span class="keyword">const</span> <a class="code" href="structgrpc__channel__filter.html">grpc_channel_filter</a> *<a class="code" href="structgrpc__call__element.html#aac551ff2d3e8df1b3d39495eb7f160a8">filter</a>;</div>
<div class="line"><a name="l00126"></a><span class="lineno"><a class="line" href="structgrpc__call__element.html#ad74abaaf7860b7dd8f2fef1e2141a27b"> 126</a></span>&#160; <span class="keywordtype">void</span> *<a class="code" href="structgrpc__call__element.html#ad74abaaf7860b7dd8f2fef1e2141a27b">channel_data</a>;</div>
<div class="line"><a name="l00127"></a><span class="lineno"><a class="line" href="structgrpc__call__element.html#a30f78246a0caa0615e4b48d3091b8c04"> 127</a></span>&#160; <span class="keywordtype">void</span> *<a class="code" href="structgrpc__call__element.html#a30f78246a0caa0615e4b48d3091b8c04">call_data</a>;</div>
<div class="line"><a name="l00128"></a><span class="lineno"> 128</span>&#160;};</div>
<div class="line"><a name="l00129"></a><span class="lineno"> 129</span>&#160;</div>
<div class="line"><a name="l00130"></a><span class="lineno"> 130</span>&#160;<span class="comment">/* A channel stack tracks a set of related filters for one channel, and</span></div>
<div class="line"><a name="l00131"></a><span class="lineno"> 131</span>&#160;<span class="comment"> guarantees they live within a single malloc() allocation */</span></div>
<div class="line"><a name="l00132"></a><span class="lineno"><a class="line" href="structgrpc__channel__stack.html"> 132</a></span>&#160;<span class="keyword">typedef</span> <span class="keyword">struct </span>{</div>
<div class="line"><a name="l00133"></a><span class="lineno"><a class="line" href="structgrpc__channel__stack.html#ad15f03f108b390c70244d9d862011f67"> 133</a></span>&#160; <span class="keywordtype">size_t</span> <a class="code" href="structgrpc__channel__stack.html#ad15f03f108b390c70244d9d862011f67">count</a>;</div>
<div class="line"><a name="l00134"></a><span class="lineno"> 134</span>&#160; <span class="comment">/* Memory required for a call stack (computed at channel stack</span></div>
<div class="line"><a name="l00135"></a><span class="lineno"> 135</span>&#160;<span class="comment"> initialization) */</span></div>
<div class="line"><a name="l00136"></a><span class="lineno"><a class="line" href="structgrpc__channel__stack.html#a1fc6184d7523f318b00ed1d5dd2562c2"> 136</a></span>&#160; <span class="keywordtype">size_t</span> <a class="code" href="structgrpc__channel__stack.html#a1fc6184d7523f318b00ed1d5dd2562c2">call_stack_size</a>;</div>
<div class="line"><a name="l00137"></a><span class="lineno"> 137</span>&#160;} <a class="code" href="structgrpc__channel__stack.html">grpc_channel_stack</a>;</div>
<div class="line"><a name="l00138"></a><span class="lineno"> 138</span>&#160;</div>
<div class="line"><a name="l00139"></a><span class="lineno"> 139</span>&#160;<span class="comment">/* A call stack tracks a set of related filters for one call, and guarantees</span></div>
<div class="line"><a name="l00140"></a><span class="lineno"> 140</span>&#160;<span class="comment"> they live within a single malloc() allocation */</span></div>
<div class="line"><a name="l00141"></a><span class="lineno"><a class="line" href="structgrpc__call__stack.html#a145db8509ca1a7e0da0d80e60ad0072a"> 141</a></span>&#160;<span class="keyword">typedef</span> <span class="keyword">struct </span>{ <span class="keywordtype">size_t</span> <a class="code" href="structgrpc__call__stack.html#a145db8509ca1a7e0da0d80e60ad0072a">count</a>; } <a class="code" href="structgrpc__call__stack.html">grpc_call_stack</a>;</div>
<div class="line"><a name="l00142"></a><span class="lineno"> 142</span>&#160;</div>
<div class="line"><a name="l00143"></a><span class="lineno"> 143</span>&#160;<span class="comment">/* Get a channel element given a channel stack and its index */</span></div>
<div class="line"><a name="l00144"></a><span class="lineno"> 144</span>&#160;<a class="code" href="structgrpc__channel__element.html">grpc_channel_element</a> *<a class="code" href="channel__stack_8h.html#a85cb9b511c9a4f222ec27d8459cb7c40">grpc_channel_stack_element</a>(<a class="code" href="structgrpc__channel__stack.html">grpc_channel_stack</a> *stack,</div>
<div class="line"><a name="l00145"></a><span class="lineno"> 145</span>&#160; <span class="keywordtype">size_t</span> i);</div>
<div class="line"><a name="l00146"></a><span class="lineno"> 146</span>&#160;<span class="comment">/* Get the last channel element in a channel stack */</span></div>
<div class="line"><a name="l00147"></a><span class="lineno"> 147</span>&#160;<a class="code" href="structgrpc__channel__element.html">grpc_channel_element</a> *<a class="code" href="channel__stack_8h.html#a1245cdffecb56b7eb11d189327dc29b0">grpc_channel_stack_last_element</a>(</div>
<div class="line"><a name="l00148"></a><span class="lineno"> 148</span>&#160; <a class="code" href="structgrpc__channel__stack.html">grpc_channel_stack</a> *stack);</div>
<div class="line"><a name="l00149"></a><span class="lineno"> 149</span>&#160;<span class="comment">/* Get a call stack element given a call stack and an index */</span></div>
<div class="line"><a name="l00150"></a><span class="lineno"> 150</span>&#160;<a class="code" href="structgrpc__call__element.html">grpc_call_element</a> *<a class="code" href="channel__stack_8h.html#adbba36449dd62d534cadc0de6c25bb17">grpc_call_stack_element</a>(<a class="code" href="structgrpc__call__stack.html">grpc_call_stack</a> *stack, <span class="keywordtype">size_t</span> i);</div>
<div class="line"><a name="l00151"></a><span class="lineno"> 151</span>&#160;</div>
<div class="line"><a name="l00152"></a><span class="lineno"> 152</span>&#160;<span class="comment">/* Determine memory required for a channel stack containing a set of filters */</span></div>
<div class="line"><a name="l00153"></a><span class="lineno"> 153</span>&#160;<span class="keywordtype">size_t</span> <a class="code" href="channel__stack_8h.html#a7593e5b07a422db70484cfb66264dd1b">grpc_channel_stack_size</a>(<span class="keyword">const</span> <a class="code" href="structgrpc__channel__filter.html">grpc_channel_filter</a> **filters,</div>
<div class="line"><a name="l00154"></a><span class="lineno"> 154</span>&#160; <span class="keywordtype">size_t</span> filter_count);</div>
<div class="line"><a name="l00155"></a><span class="lineno"> 155</span>&#160;<span class="comment">/* Initialize a channel stack given some filters */</span></div>
<div class="line"><a name="l00156"></a><span class="lineno"> 156</span>&#160;<span class="keywordtype">void</span> <a class="code" href="channel__stack_8h.html#a9dfbcf853676b70efa84cf8777a7b928">grpc_channel_stack_init</a>(<span class="keyword">const</span> <a class="code" href="structgrpc__channel__filter.html">grpc_channel_filter</a> **filters,</div>
<div class="line"><a name="l00157"></a><span class="lineno"> 157</span>&#160; <span class="keywordtype">size_t</span> filter_count, <a class="code" href="structgrpc__channel.html">grpc_channel</a> *master,</div>
<div class="line"><a name="l00158"></a><span class="lineno"> 158</span>&#160; <span class="keyword">const</span> <a class="code" href="structgrpc__channel__args.html">grpc_channel_args</a> *args,</div>
<div class="line"><a name="l00159"></a><span class="lineno"> 159</span>&#160; <a class="code" href="structgrpc__mdctx.html">grpc_mdctx</a> *metadata_context,</div>
<div class="line"><a name="l00160"></a><span class="lineno"> 160</span>&#160; <a class="code" href="structgrpc__channel__stack.html">grpc_channel_stack</a> *stack);</div>
<div class="line"><a name="l00161"></a><span class="lineno"> 161</span>&#160;<span class="comment">/* Destroy a channel stack */</span></div>
<div class="line"><a name="l00162"></a><span class="lineno"> 162</span>&#160;<span class="keywordtype">void</span> <a class="code" href="channel__stack_8h.html#ad06f3ee4d872888e99778e5faa610764">grpc_channel_stack_destroy</a>(<a class="code" href="structgrpc__channel__stack.html">grpc_channel_stack</a> *stack);</div>
<div class="line"><a name="l00163"></a><span class="lineno"> 163</span>&#160;</div>
<div class="line"><a name="l00164"></a><span class="lineno"> 164</span>&#160;<span class="comment">/* Initialize a call stack given a channel stack. transport_server_data is</span></div>
<div class="line"><a name="l00165"></a><span class="lineno"> 165</span>&#160;<span class="comment"> expected to be NULL on a client, or an opaque transport owned pointer on the</span></div>
<div class="line"><a name="l00166"></a><span class="lineno"> 166</span>&#160;<span class="comment"> server. */</span></div>
<div class="line"><a name="l00167"></a><span class="lineno"> 167</span>&#160;<span class="keywordtype">void</span> <a class="code" href="channel__stack_8h.html#ac7f3085338ed96593ca7c814cd6d705d">grpc_call_stack_init</a>(<a class="code" href="structgrpc__channel__stack.html">grpc_channel_stack</a> *channel_stack,</div>
<div class="line"><a name="l00168"></a><span class="lineno"> 168</span>&#160; <span class="keyword">const</span> <span class="keywordtype">void</span> *transport_server_data,</div>
<div class="line"><a name="l00169"></a><span class="lineno"> 169</span>&#160; <a class="code" href="structgrpc__transport__stream__op.html">grpc_transport_stream_op</a> *initial_op,</div>
<div class="line"><a name="l00170"></a><span class="lineno"> 170</span>&#160; <a class="code" href="structgrpc__call__stack.html">grpc_call_stack</a> *call_stack);</div>
<div class="line"><a name="l00171"></a><span class="lineno"> 171</span>&#160;<span class="comment">/* Destroy a call stack */</span></div>
<div class="line"><a name="l00172"></a><span class="lineno"> 172</span>&#160;<span class="keywordtype">void</span> <a class="code" href="channel__stack_8h.html#a441c43095f765c200e679230a11c6116">grpc_call_stack_destroy</a>(<a class="code" href="structgrpc__call__stack.html">grpc_call_stack</a> *stack);</div>
<div class="line"><a name="l00173"></a><span class="lineno"> 173</span>&#160;</div>
<div class="line"><a name="l00174"></a><span class="lineno"> 174</span>&#160;<span class="comment">/* Call the next operation in a call stack */</span></div>
<div class="line"><a name="l00175"></a><span class="lineno"> 175</span>&#160;<span class="keywordtype">void</span> <a class="code" href="channel__stack_8h.html#af52cb36e243fc3bfb81ebca882346ce9">grpc_call_next_op</a>(<a class="code" href="structgrpc__call__element.html">grpc_call_element</a> *elem, <a class="code" href="structgrpc__transport__stream__op.html">grpc_transport_stream_op</a> *op);</div>
<div class="line"><a name="l00176"></a><span class="lineno"> 176</span>&#160;<span class="comment">/* Call the next operation (depending on call directionality) in a channel</span></div>
<div class="line"><a name="l00177"></a><span class="lineno"> 177</span>&#160;<span class="comment"> stack */</span></div>
<div class="line"><a name="l00178"></a><span class="lineno"> 178</span>&#160;<span class="keywordtype">void</span> <a class="code" href="channel__stack_8h.html#aea7eceb60c0e94465c4baea314c0ebd9">grpc_channel_next_op</a>(<a class="code" href="structgrpc__channel__element.html">grpc_channel_element</a> *elem, <a class="code" href="structgrpc__transport__op.html">grpc_transport_op</a> *op);</div>
<div class="line"><a name="l00179"></a><span class="lineno"> 179</span>&#160;<span class="comment">/* Pass through a request to get_peer to the next child element */</span></div>
<div class="line"><a name="l00180"></a><span class="lineno"> 180</span>&#160;<span class="keywordtype">char</span> *<a class="code" href="channel__stack_8h.html#a40c122e470335bb7a6edf1e0a31fc801">grpc_call_next_get_peer</a>(<a class="code" href="structgrpc__call__element.html">grpc_call_element</a> *elem);</div>
<div class="line"><a name="l00181"></a><span class="lineno"> 181</span>&#160;</div>
<div class="line"><a name="l00182"></a><span class="lineno"> 182</span>&#160;<span class="comment">/* Given the top element of a channel stack, get the channel stack itself */</span></div>
<div class="line"><a name="l00183"></a><span class="lineno"> 183</span>&#160;<a class="code" href="structgrpc__channel__stack.html">grpc_channel_stack</a> *<a class="code" href="channel__stack_8h.html#a5fd8b3503ac2f8193509e2ce02ef9406">grpc_channel_stack_from_top_element</a>(</div>
<div class="line"><a name="l00184"></a><span class="lineno"> 184</span>&#160; <a class="code" href="structgrpc__channel__element.html">grpc_channel_element</a> *elem);</div>
<div class="line"><a name="l00185"></a><span class="lineno"> 185</span>&#160;<span class="comment">/* Given the top element of a call stack, get the call stack itself */</span></div>
<div class="line"><a name="l00186"></a><span class="lineno"> 186</span>&#160;<a class="code" href="structgrpc__call__stack.html">grpc_call_stack</a> *<a class="code" href="channel__stack_8h.html#a90d6131bc8142e1516618bd2e4daf58c">grpc_call_stack_from_top_element</a>(<a class="code" href="structgrpc__call__element.html">grpc_call_element</a> *elem);</div>
<div class="line"><a name="l00187"></a><span class="lineno"> 187</span>&#160;</div>
<div class="line"><a name="l00188"></a><span class="lineno"> 188</span>&#160;<span class="keywordtype">void</span> <a class="code" href="channel__stack_8h.html#aa821d8d1e991cb36c971c6524d2ea5ee">grpc_call_log_op</a>(<span class="keywordtype">char</span> *file, <span class="keywordtype">int</span> line, <a class="code" href="log_8h.html#af10334b4085ac6985a2af9c08478ad48">gpr_log_severity</a> severity,</div>
<div class="line"><a name="l00189"></a><span class="lineno"> 189</span>&#160; <a class="code" href="structgrpc__call__element.html">grpc_call_element</a> *elem, <a class="code" href="structgrpc__transport__stream__op.html">grpc_transport_stream_op</a> *op);</div>
<div class="line"><a name="l00190"></a><span class="lineno"> 190</span>&#160;</div>
<div class="line"><a name="l00191"></a><span class="lineno"> 191</span>&#160;<span class="keywordtype">void</span> <a class="code" href="channel__stack_8h.html#a7127b6c0b4d14c70e23e65875c7b6bc5">grpc_call_element_send_cancel</a>(<a class="code" href="structgrpc__call__element.html">grpc_call_element</a> *cur_elem);</div>
<div class="line"><a name="l00192"></a><span class="lineno"> 192</span>&#160;</div>
<div class="line"><a name="l00193"></a><span class="lineno"> 193</span>&#160;<span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="channel__stack_8h.html#a7ee4da676e51ccc09f1e53fbf4d7e0d4">grpc_trace_channel</a>;</div>
<div class="line"><a name="l00194"></a><span class="lineno"> 194</span>&#160;</div>
<div class="line"><a name="l00195"></a><span class="lineno"><a class="line" href="channel__stack_8h.html#a933b113b310801b8f916dade1569dbc3"> 195</a></span>&#160;<span class="preprocessor">#define GRPC_CALL_LOG_OP(sev, elem, op) \</span></div>
<div class="line"><a name="l00196"></a><span class="lineno"> 196</span>&#160;<span class="preprocessor"> if (grpc_trace_channel) grpc_call_log_op(sev, elem, op)</span></div>
<div class="line"><a name="l00197"></a><span class="lineno"> 197</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00198"></a><span class="lineno"> 198</span>&#160;<span class="preprocessor">#endif </span><span class="comment">/* GRPC_INTERNAL_CORE_CHANNEL_CHANNEL_STACK_H */</span><span class="preprocessor"></span></div>
<div class="ttc" id="structgrpc__channel__filter_html"><div class="ttname"><a href="structgrpc__channel__filter.html">grpc_channel_filter</a></div><div class="ttdef"><b>Definition:</b> channel_stack.h:64</div></div>
<div class="ttc" id="structgrpc__call__stack_html_a145db8509ca1a7e0da0d80e60ad0072a"><div class="ttname"><a href="structgrpc__call__stack.html#a145db8509ca1a7e0da0d80e60ad0072a">grpc_call_stack::count</a></div><div class="ttdeci">size_t count</div><div class="ttdef"><b>Definition:</b> channel_stack.h:141</div></div>
<div class="ttc" id="structgrpc__channel__stack_html"><div class="ttname"><a href="structgrpc__channel__stack.html">grpc_channel_stack</a></div><div class="ttdef"><b>Definition:</b> channel_stack.h:132</div></div>
<div class="ttc" id="trace_8h_html"><div class="ttname"><a href="trace_8h.html">trace.h</a></div></div>
<div class="ttc" id="channel__stack_8h_html_ac7f3085338ed96593ca7c814cd6d705d"><div class="ttname"><a href="channel__stack_8h.html#ac7f3085338ed96593ca7c814cd6d705d">grpc_call_stack_init</a></div><div class="ttdeci">void grpc_call_stack_init(grpc_channel_stack *channel_stack, const void *transport_server_data, grpc_transport_stream_op *initial_op, grpc_call_stack *call_stack)</div><div class="ttdef"><b>Definition:</b> channel_stack.c:151</div></div>
<div class="ttc" id="channel__stack_8h_html_a40c122e470335bb7a6edf1e0a31fc801"><div class="ttname"><a href="channel__stack_8h.html#a40c122e470335bb7a6edf1e0a31fc801">grpc_call_next_get_peer</a></div><div class="ttdeci">char * grpc_call_next_get_peer(grpc_call_element *elem)</div><div class="ttdef"><b>Definition:</b> channel_stack.c:194</div></div>
<div class="ttc" id="channel__stack_8h_html_a7ee4da676e51ccc09f1e53fbf4d7e0d4"><div class="ttname"><a href="channel__stack_8h.html#a7ee4da676e51ccc09f1e53fbf4d7e0d4">grpc_trace_channel</a></div><div class="ttdeci">int grpc_trace_channel</div><div class="ttdef"><b>Definition:</b> channel_stack.c:40</div></div>
<div class="ttc" id="transport_8h_html"><div class="ttname"><a href="transport_8h.html">transport.h</a></div></div>
<div class="ttc" id="structgrpc__channel__args_html"><div class="ttname"><a href="structgrpc__channel__args.html">grpc_channel_args</a></div><div class="ttdoc">An array of arguments that can be passed around. </div><div class="ttdef"><b>Definition:</b> grpc.h:113</div></div>
<div class="ttc" id="structgrpc__channel_html"><div class="ttname"><a href="structgrpc__channel.html">grpc_channel</a></div><div class="ttdef"><b>Definition:</b> channel.c:61</div></div>
<div class="ttc" id="structgrpc__channel__filter_html_ac63b36f8c895f18f68ee1d8a862f18a4"><div class="ttname"><a href="structgrpc__channel__filter.html#ac63b36f8c895f18f68ee1d8a862f18a4">grpc_channel_filter::sizeof_channel_data</a></div><div class="ttdeci">size_t sizeof_channel_data</div><div class="ttdef"><b>Definition:</b> channel_stack.h:92</div></div>
<div class="ttc" id="structgrpc__transport__stream__op_html"><div class="ttname"><a href="structgrpc__transport__stream__op.html">grpc_transport_stream_op</a></div><div class="ttdef"><b>Definition:</b> transport.h:66</div></div>
<div class="ttc" id="channel__stack_8h_html_af52cb36e243fc3bfb81ebca882346ce9"><div class="ttname"><a href="channel__stack_8h.html#af52cb36e243fc3bfb81ebca882346ce9">grpc_call_next_op</a></div><div class="ttdeci">void grpc_call_next_op(grpc_call_element *elem, grpc_transport_stream_op *op)</div><div class="ttdef"><b>Definition:</b> channel_stack.c:189</div></div>
<div class="ttc" id="structgrpc__channel__stack_html_ad15f03f108b390c70244d9d862011f67"><div class="ttname"><a href="structgrpc__channel__stack.html#ad15f03f108b390c70244d9d862011f67">grpc_channel_stack::count</a></div><div class="ttdeci">size_t count</div><div class="ttdef"><b>Definition:</b> channel_stack.h:133</div></div>
<div class="ttc" id="channel__stack_8h_html_a9dfbcf853676b70efa84cf8777a7b928"><div class="ttname"><a href="channel__stack_8h.html#a9dfbcf853676b70efa84cf8777a7b928">grpc_channel_stack_init</a></div><div class="ttdeci">void grpc_channel_stack_init(const grpc_channel_filter **filters, size_t filter_count, grpc_channel *master, const grpc_channel_args *args, grpc_mdctx *metadata_context, grpc_channel_stack *stack)</div><div class="ttdef"><b>Definition:</b> channel_stack.c:104</div></div>
<div class="ttc" id="channel__stack_8h_html_a5fd8b3503ac2f8193509e2ce02ef9406"><div class="ttname"><a href="channel__stack_8h.html#a5fd8b3503ac2f8193509e2ce02ef9406">grpc_channel_stack_from_top_element</a></div><div class="ttdeci">grpc_channel_stack * grpc_channel_stack_from_top_element(grpc_channel_element *elem)</div><div class="ttdef"><b>Definition:</b> channel_stack.c:204</div></div>
<div class="ttc" id="structgrpc__channel__filter_html_afcdf09a04565aee37bf4ddf4b7ed69cc"><div class="ttname"><a href="structgrpc__channel__filter.html#afcdf09a04565aee37bf4ddf4b7ed69cc">grpc_channel_filter::sizeof_call_data</a></div><div class="ttdeci">size_t sizeof_call_data</div><div class="ttdef"><b>Definition:</b> channel_stack.h:75</div></div>
<div class="ttc" id="channel__stack_8h_html_a7127b6c0b4d14c70e23e65875c7b6bc5"><div class="ttname"><a href="channel__stack_8h.html#a7127b6c0b4d14c70e23e65875c7b6bc5">grpc_call_element_send_cancel</a></div><div class="ttdeci">void grpc_call_element_send_cancel(grpc_call_element *cur_elem)</div><div class="ttdef"><b>Definition:</b> channel_stack.c:215</div></div>
<div class="ttc" id="structgrpc__channel__element_html_af498fd50d8b3667b3e20395e341a858d"><div class="ttname"><a href="structgrpc__channel__element.html#af498fd50d8b3667b3e20395e341a858d">grpc_channel_element::channel_data</a></div><div class="ttdeci">void * channel_data</div><div class="ttdef"><b>Definition:</b> channel_stack.h:118</div></div>
<div class="ttc" id="structgrpc__channel__element_html_a3f80663d58f2e206836e18fa7ce5aec3"><div class="ttname"><a href="structgrpc__channel__element.html#a3f80663d58f2e206836e18fa7ce5aec3">grpc_channel_element::filter</a></div><div class="ttdeci">const grpc_channel_filter * filter</div><div class="ttdef"><b>Definition:</b> channel_stack.h:117</div></div>
<div class="ttc" id="log_8h_html_af10334b4085ac6985a2af9c08478ad48"><div class="ttname"><a href="log_8h.html#af10334b4085ac6985a2af9c08478ad48">gpr_log_severity</a></div><div class="ttdeci">gpr_log_severity</div><div class="ttdef"><b>Definition:</b> log.h:56</div></div>
<div class="ttc" id="channel__stack_8h_html_ad06f3ee4d872888e99778e5faa610764"><div class="ttname"><a href="channel__stack_8h.html#ad06f3ee4d872888e99778e5faa610764">grpc_channel_stack_destroy</a></div><div class="ttdeci">void grpc_channel_stack_destroy(grpc_channel_stack *stack)</div><div class="ttdef"><b>Definition:</b> channel_stack.c:140</div></div>
<div class="ttc" id="channel__stack_8h_html_a90d6131bc8142e1516618bd2e4daf58c"><div class="ttname"><a href="channel__stack_8h.html#a90d6131bc8142e1516618bd2e4daf58c">grpc_call_stack_from_top_element</a></div><div class="ttdeci">grpc_call_stack * grpc_call_stack_from_top_element(grpc_call_element *elem)</div><div class="ttdef"><b>Definition:</b> channel_stack.c:210</div></div>
<div class="ttc" id="structgrpc__mdctx_html"><div class="ttname"><a href="structgrpc__mdctx.html">grpc_mdctx</a></div><div class="ttdef"><b>Definition:</b> metadata.c:98</div></div>
<div class="ttc" id="structgrpc__call__element_html_aac551ff2d3e8df1b3d39495eb7f160a8"><div class="ttname"><a href="structgrpc__call__element.html#aac551ff2d3e8df1b3d39495eb7f160a8">grpc_call_element::filter</a></div><div class="ttdeci">const grpc_channel_filter * filter</div><div class="ttdef"><b>Definition:</b> channel_stack.h:125</div></div>
<div class="ttc" id="channel__stack_8h_html_a7593e5b07a422db70484cfb66264dd1b"><div class="ttname"><a href="channel__stack_8h.html#a7593e5b07a422db70484cfb66264dd1b">grpc_channel_stack_size</a></div><div class="ttdeci">size_t grpc_channel_stack_size(const grpc_channel_filter **filters, size_t filter_count)</div><div class="ttdef"><b>Definition:</b> channel_stack.c:62</div></div>
<div class="ttc" id="channel__stack_8h_html_a441c43095f765c200e679230a11c6116"><div class="ttname"><a href="channel__stack_8h.html#a441c43095f765c200e679230a11c6116">grpc_call_stack_destroy</a></div><div class="ttdeci">void grpc_call_stack_destroy(grpc_call_stack *stack)</div><div class="ttdef"><b>Definition:</b> channel_stack.c:178</div></div>
<div class="ttc" id="channel__stack_8h_html_aea7eceb60c0e94465c4baea314c0ebd9"><div class="ttname"><a href="channel__stack_8h.html#aea7eceb60c0e94465c4baea314c0ebd9">grpc_channel_next_op</a></div><div class="ttdeci">void grpc_channel_next_op(grpc_channel_element *elem, grpc_transport_op *op)</div><div class="ttdef"><b>Definition:</b> channel_stack.c:199</div></div>
<div class="ttc" id="channel__stack_8h_html_aa821d8d1e991cb36c971c6524d2ea5ee"><div class="ttname"><a href="channel__stack_8h.html#aa821d8d1e991cb36c971c6524d2ea5ee">grpc_call_log_op</a></div><div class="ttdeci">void grpc_call_log_op(char *file, int line, gpr_log_severity severity, grpc_call_element *elem, grpc_transport_stream_op *op)</div><div class="ttdef"><b>Definition:</b> transport_op_string.c:161</div></div>
<div class="ttc" id="structgrpc__call__element_html_a30f78246a0caa0615e4b48d3091b8c04"><div class="ttname"><a href="structgrpc__call__element.html#a30f78246a0caa0615e4b48d3091b8c04">grpc_call_element::call_data</a></div><div class="ttdeci">void * call_data</div><div class="ttdef"><b>Definition:</b> channel_stack.h:127</div></div>
<div class="ttc" id="structgrpc__call__stack_html"><div class="ttname"><a href="structgrpc__call__stack.html">grpc_call_stack</a></div><div class="ttdef"><b>Definition:</b> channel_stack.h:141</div></div>
<div class="ttc" id="structgrpc__channel__element_html"><div class="ttname"><a href="structgrpc__channel__element.html">grpc_channel_element</a></div><div class="ttdef"><b>Definition:</b> channel_stack.h:116</div></div>
<div class="ttc" id="channel__stack_8h_html_a1245cdffecb56b7eb11d189327dc29b0"><div class="ttname"><a href="channel__stack_8h.html#a1245cdffecb56b7eb11d189327dc29b0">grpc_channel_stack_last_element</a></div><div class="ttdeci">grpc_channel_element * grpc_channel_stack_last_element(grpc_channel_stack *stack)</div><div class="ttdef"><b>Definition:</b> channel_stack.c:94</div></div>
<div class="ttc" id="structgrpc__call__element_html"><div class="ttname"><a href="structgrpc__call__element.html">grpc_call_element</a></div><div class="ttdef"><b>Definition:</b> channel_stack.h:124</div></div>
<div class="ttc" id="channel__stack_8h_html_adbba36449dd62d534cadc0de6c25bb17"><div class="ttname"><a href="channel__stack_8h.html#adbba36449dd62d534cadc0de6c25bb17">grpc_call_stack_element</a></div><div class="ttdeci">grpc_call_element * grpc_call_stack_element(grpc_call_stack *stack, size_t i)</div><div class="ttdef"><b>Definition:</b> channel_stack.c:99</div></div>
<div class="ttc" id="structgrpc__channel__stack_html_a1fc6184d7523f318b00ed1d5dd2562c2"><div class="ttname"><a href="structgrpc__channel__stack.html#a1fc6184d7523f318b00ed1d5dd2562c2">grpc_channel_stack::call_stack_size</a></div><div class="ttdeci">size_t call_stack_size</div><div class="ttdef"><b>Definition:</b> channel_stack.h:136</div></div>
<div class="ttc" id="log_8h_html"><div class="ttname"><a href="log_8h.html">log.h</a></div></div>
<div class="ttc" id="grpc_8h_html"><div class="ttname"><a href="grpc_8h.html">grpc.h</a></div></div>
<div class="ttc" id="structgrpc__channel__filter_html_afbf60f6f8b73c26026f266f4fc32fda6"><div class="ttname"><a href="structgrpc__channel__filter.html#afbf60f6f8b73c26026f266f4fc32fda6">grpc_channel_filter::name</a></div><div class="ttdeci">const char * name</div><div class="ttdef"><b>Definition:</b> channel_stack.h:111</div></div>
<div class="ttc" id="structgrpc__call__element_html_ad74abaaf7860b7dd8f2fef1e2141a27b"><div class="ttname"><a href="structgrpc__call__element.html#ad74abaaf7860b7dd8f2fef1e2141a27b">grpc_call_element::channel_data</a></div><div class="ttdeci">void * channel_data</div><div class="ttdef"><b>Definition:</b> channel_stack.h:126</div></div>
<div class="ttc" id="channel__stack_8h_html_a85cb9b511c9a4f222ec27d8459cb7c40"><div class="ttname"><a href="channel__stack_8h.html#a85cb9b511c9a4f222ec27d8459cb7c40">grpc_channel_stack_element</a></div><div class="ttdeci">grpc_channel_element * grpc_channel_stack_element(grpc_channel_stack *stack, size_t i)</div><div class="ttdef"><b>Definition:</b> channel_stack.c:89</div></div>
<div class="ttc" id="structgrpc__transport__op_html"><div class="ttname"><a href="structgrpc__transport__op.html">grpc_transport_op</a></div><div class="ttdoc">Transport op: a set of operations to perform on a transport as a whole. </div><div class="ttdef"><b>Definition:</b> transport.h:90</div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Wed Aug 5 2015 08:17:07 for GRPC Core by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.6
</small></address>
</body>
</html>