compression_8h.html 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
  5. <meta http-equiv="X-UA-Compatible" content="IE=9"/>
  6. <meta name="generator" content="Doxygen 1.8.13"/>
  7. <meta name="viewport" content="width=device-width, initial-scale=1"/>
  8. <title>GRPC Core: include/grpc/compression.h File Reference</title>
  9. <link href="tabs.css" rel="stylesheet" type="text/css"/>
  10. <script type="text/javascript" src="jquery.js"></script>
  11. <script type="text/javascript" src="dynsections.js"></script>
  12. <link href="search/search.css" rel="stylesheet" type="text/css"/>
  13. <script type="text/javascript" src="search/searchdata.js"></script>
  14. <script type="text/javascript" src="search/search.js"></script>
  15. <link href="doxygen.css" rel="stylesheet" type="text/css" />
  16. </head>
  17. <body>
  18. <div id="top"><!-- do not remove this div, it is closed by doxygen! -->
  19. <div id="titlearea">
  20. <table cellspacing="0" cellpadding="0">
  21. <tbody>
  22. <tr style="height: 56px;">
  23. <td id="projectalign" style="padding-left: 0.5em;">
  24. <div id="projectname">GRPC Core
  25. &#160;<span id="projectnumber">6.0.0</span>
  26. </div>
  27. </td>
  28. </tr>
  29. </tbody>
  30. </table>
  31. </div>
  32. <!-- end header part -->
  33. <!-- Generated by Doxygen 1.8.13 -->
  34. <script type="text/javascript">
  35. var searchBox = new SearchBox("searchBox", "search",false,'Search');
  36. </script>
  37. <script type="text/javascript" src="menudata.js"></script>
  38. <script type="text/javascript" src="menu.js"></script>
  39. <script type="text/javascript">
  40. $(function() {
  41. initMenu('',true,false,'search.php','Search');
  42. $(document).ready(function() { init_search(); });
  43. });
  44. </script>
  45. <div id="main-nav"></div>
  46. <!-- window showing the filter options -->
  47. <div id="MSearchSelectWindow"
  48. onmouseover="return searchBox.OnSearchSelectShow()"
  49. onmouseout="return searchBox.OnSearchSelectHide()"
  50. onkeydown="return searchBox.OnSearchSelectKey(event)">
  51. </div>
  52. <!-- iframe showing the search results (closed by default) -->
  53. <div id="MSearchResultsWindow">
  54. <iframe src="javascript:void(0)" frameborder="0"
  55. name="MSearchResults" id="MSearchResults">
  56. </iframe>
  57. </div>
  58. <div id="nav-path" class="navpath">
  59. <ul>
  60. <li class="navelem"><a class="el" href="dir_d44c64559bbebec7f509842c48db8b23.html">include</a></li><li class="navelem"><a class="el" href="dir_9d7a14d6d9adcbe4c35dbdb88d867e2e.html">grpc</a></li> </ul>
  61. </div>
  62. </div><!-- top -->
  63. <div class="header">
  64. <div class="summary">
  65. <a href="#func-members">Functions</a> </div>
  66. <div class="headertitle">
  67. <div class="title">compression.h File Reference</div> </div>
  68. </div><!--header-->
  69. <div class="contents">
  70. <div class="textblock"><code>#include &lt;<a class="el" href="impl_2codegen_2port__platform_8h_source.html">grpc/impl/codegen/port_platform.h</a>&gt;</code><br />
  71. <code>#include &lt;stdlib.h&gt;</code><br />
  72. <code>#include &lt;<a class="el" href="compression__types_8h_source.html">grpc/impl/codegen/compression_types.h</a>&gt;</code><br />
  73. <code>#include &lt;<a class="el" href="slice_8h_source.html">grpc/slice.h</a>&gt;</code><br />
  74. </div>
  75. <p><a href="compression_8h_source.html">Go to the source code of this file.</a></p>
  76. <table class="memberdecls">
  77. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
  78. Functions</h2></td></tr>
  79. <tr class="memitem:af41160f827a3ff132755fb25658435c4"><td class="memItemLeft" align="right" valign="top"><a class="el" href="impl_2codegen_2port__platform_8h.html#a2865c3b28ea7db75be4c725adb1edc7d">GRPCAPI</a> int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="compression_8h.html#af41160f827a3ff132755fb25658435c4">grpc_compression_algorithm_is_message</a> (<a class="el" href="compression__types_8h.html#ab9de0f68bfb1ef8ed09bd00643db14c9">grpc_compression_algorithm</a> algorithm)</td></tr>
  80. <tr class="memdesc:af41160f827a3ff132755fb25658435c4"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return if an algorithm is message compression algorithm. <a href="#af41160f827a3ff132755fb25658435c4">More...</a><br /></td></tr>
  81. <tr class="separator:af41160f827a3ff132755fb25658435c4"><td class="memSeparator" colspan="2">&#160;</td></tr>
  82. <tr class="memitem:a053257ed8bdeba196b380f326897e25d"><td class="memItemLeft" align="right" valign="top"><a class="el" href="impl_2codegen_2port__platform_8h.html#a2865c3b28ea7db75be4c725adb1edc7d">GRPCAPI</a> int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="compression_8h.html#a053257ed8bdeba196b380f326897e25d">grpc_compression_algorithm_is_stream</a> (<a class="el" href="compression__types_8h.html#ab9de0f68bfb1ef8ed09bd00643db14c9">grpc_compression_algorithm</a> algorithm)</td></tr>
  83. <tr class="memdesc:a053257ed8bdeba196b380f326897e25d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return if an algorithm is stream compression algorithm. <a href="#a053257ed8bdeba196b380f326897e25d">More...</a><br /></td></tr>
  84. <tr class="separator:a053257ed8bdeba196b380f326897e25d"><td class="memSeparator" colspan="2">&#160;</td></tr>
  85. <tr class="memitem:a5054ebec22cc256853a7ac2ed61fd654"><td class="memItemLeft" align="right" valign="top"><a class="el" href="impl_2codegen_2port__platform_8h.html#a2865c3b28ea7db75be4c725adb1edc7d">GRPCAPI</a> int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="compression_8h.html#a5054ebec22cc256853a7ac2ed61fd654">grpc_compression_algorithm_parse</a> (<a class="el" href="structgrpc__slice.html">grpc_slice</a> value, <a class="el" href="compression__types_8h.html#ab9de0f68bfb1ef8ed09bd00643db14c9">grpc_compression_algorithm</a> *algorithm)</td></tr>
  86. <tr class="memdesc:a5054ebec22cc256853a7ac2ed61fd654"><td class="mdescLeft">&#160;</td><td class="mdescRight">Parses the <em>slice</em> as a grpc_compression_algorithm instance and updating <em>algorithm</em>. <a href="#a5054ebec22cc256853a7ac2ed61fd654">More...</a><br /></td></tr>
  87. <tr class="separator:a5054ebec22cc256853a7ac2ed61fd654"><td class="memSeparator" colspan="2">&#160;</td></tr>
  88. <tr class="memitem:a177f6d6330355d5ecaffb042ab1c2c8f"><td class="memItemLeft" align="right" valign="top"><a class="el" href="impl_2codegen_2port__platform_8h.html#a2865c3b28ea7db75be4c725adb1edc7d">GRPCAPI</a> int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="compression_8h.html#a177f6d6330355d5ecaffb042ab1c2c8f">grpc_compression_algorithm_name</a> (<a class="el" href="compression__types_8h.html#ab9de0f68bfb1ef8ed09bd00643db14c9">grpc_compression_algorithm</a> algorithm, const char **name)</td></tr>
  89. <tr class="memdesc:a177f6d6330355d5ecaffb042ab1c2c8f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Updates <em>name</em> with the encoding name corresponding to a valid <em>algorithm</em>. <a href="#a177f6d6330355d5ecaffb042ab1c2c8f">More...</a><br /></td></tr>
  90. <tr class="separator:a177f6d6330355d5ecaffb042ab1c2c8f"><td class="memSeparator" colspan="2">&#160;</td></tr>
  91. <tr class="memitem:adc2d1d89d880f67aacc4ce84cd72f8f3"><td class="memItemLeft" align="right" valign="top"><a class="el" href="impl_2codegen_2port__platform_8h.html#a2865c3b28ea7db75be4c725adb1edc7d">GRPCAPI</a> <a class="el" href="compression__types_8h.html#ab9de0f68bfb1ef8ed09bd00643db14c9">grpc_compression_algorithm</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="compression_8h.html#adc2d1d89d880f67aacc4ce84cd72f8f3">grpc_compression_algorithm_for_level</a> (<a class="el" href="compression__types_8h.html#a14a79ed6b5ebd7e1dda7c2684f499cc7">grpc_compression_level</a> level, uint32_t accepted_encodings)</td></tr>
  92. <tr class="memdesc:adc2d1d89d880f67aacc4ce84cd72f8f3"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the compression algorithm corresponding to <em>level</em> for the compression algorithms encoded in the <em>accepted_encodings</em> bitset. <a href="#adc2d1d89d880f67aacc4ce84cd72f8f3">More...</a><br /></td></tr>
  93. <tr class="separator:adc2d1d89d880f67aacc4ce84cd72f8f3"><td class="memSeparator" colspan="2">&#160;</td></tr>
  94. <tr class="memitem:a2eccdbe5a4d811a7c965d6d67e5cc7d8"><td class="memItemLeft" align="right" valign="top"><a class="el" href="impl_2codegen_2port__platform_8h.html#a2865c3b28ea7db75be4c725adb1edc7d">GRPCAPI</a> void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="compression_8h.html#a2eccdbe5a4d811a7c965d6d67e5cc7d8">grpc_compression_options_init</a> (<a class="el" href="structgrpc__compression__options.html">grpc_compression_options</a> *opts)</td></tr>
  95. <tr class="separator:a2eccdbe5a4d811a7c965d6d67e5cc7d8"><td class="memSeparator" colspan="2">&#160;</td></tr>
  96. <tr class="memitem:a79e61d1ac1d226b3b54b73837f28f0ff"><td class="memItemLeft" align="right" valign="top"><a class="el" href="impl_2codegen_2port__platform_8h.html#a2865c3b28ea7db75be4c725adb1edc7d">GRPCAPI</a> void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="compression_8h.html#a79e61d1ac1d226b3b54b73837f28f0ff">grpc_compression_options_enable_algorithm</a> (<a class="el" href="structgrpc__compression__options.html">grpc_compression_options</a> *opts, <a class="el" href="compression__types_8h.html#ab9de0f68bfb1ef8ed09bd00643db14c9">grpc_compression_algorithm</a> algorithm)</td></tr>
  97. <tr class="memdesc:a79e61d1ac1d226b3b54b73837f28f0ff"><td class="mdescLeft">&#160;</td><td class="mdescRight">Mark <em>algorithm</em> as enabled in <em>opts</em>. <a href="#a79e61d1ac1d226b3b54b73837f28f0ff">More...</a><br /></td></tr>
  98. <tr class="separator:a79e61d1ac1d226b3b54b73837f28f0ff"><td class="memSeparator" colspan="2">&#160;</td></tr>
  99. <tr class="memitem:a1b58d314775a3651ee2f5f2d3ab4f6d9"><td class="memItemLeft" align="right" valign="top"><a class="el" href="impl_2codegen_2port__platform_8h.html#a2865c3b28ea7db75be4c725adb1edc7d">GRPCAPI</a> void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="compression_8h.html#a1b58d314775a3651ee2f5f2d3ab4f6d9">grpc_compression_options_disable_algorithm</a> (<a class="el" href="structgrpc__compression__options.html">grpc_compression_options</a> *opts, <a class="el" href="compression__types_8h.html#ab9de0f68bfb1ef8ed09bd00643db14c9">grpc_compression_algorithm</a> algorithm)</td></tr>
  100. <tr class="memdesc:a1b58d314775a3651ee2f5f2d3ab4f6d9"><td class="mdescLeft">&#160;</td><td class="mdescRight">Mark <em>algorithm</em> as disabled in <em>opts</em>. <a href="#a1b58d314775a3651ee2f5f2d3ab4f6d9">More...</a><br /></td></tr>
  101. <tr class="separator:a1b58d314775a3651ee2f5f2d3ab4f6d9"><td class="memSeparator" colspan="2">&#160;</td></tr>
  102. <tr class="memitem:aba0dfe631311c3f49d1045694bc9b0df"><td class="memItemLeft" align="right" valign="top"><a class="el" href="impl_2codegen_2port__platform_8h.html#a2865c3b28ea7db75be4c725adb1edc7d">GRPCAPI</a> int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="compression_8h.html#aba0dfe631311c3f49d1045694bc9b0df">grpc_compression_options_is_algorithm_enabled</a> (const <a class="el" href="structgrpc__compression__options.html">grpc_compression_options</a> *opts, <a class="el" href="compression__types_8h.html#ab9de0f68bfb1ef8ed09bd00643db14c9">grpc_compression_algorithm</a> algorithm)</td></tr>
  103. <tr class="memdesc:aba0dfe631311c3f49d1045694bc9b0df"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns true if <em>algorithm</em> is marked as enabled in <em>opts</em>. <a href="#aba0dfe631311c3f49d1045694bc9b0df">More...</a><br /></td></tr>
  104. <tr class="separator:aba0dfe631311c3f49d1045694bc9b0df"><td class="memSeparator" colspan="2">&#160;</td></tr>
  105. </table>
  106. <h2 class="groupheader">Function Documentation</h2>
  107. <a id="adc2d1d89d880f67aacc4ce84cd72f8f3"></a>
  108. <h2 class="memtitle"><span class="permalink"><a href="#adc2d1d89d880f67aacc4ce84cd72f8f3">&#9670;&nbsp;</a></span>grpc_compression_algorithm_for_level()</h2>
  109. <div class="memitem">
  110. <div class="memproto">
  111. <table class="memname">
  112. <tr>
  113. <td class="memname"><a class="el" href="impl_2codegen_2port__platform_8h.html#a2865c3b28ea7db75be4c725adb1edc7d">GRPCAPI</a> <a class="el" href="compression__types_8h.html#ab9de0f68bfb1ef8ed09bd00643db14c9">grpc_compression_algorithm</a> grpc_compression_algorithm_for_level </td>
  114. <td>(</td>
  115. <td class="paramtype"><a class="el" href="compression__types_8h.html#a14a79ed6b5ebd7e1dda7c2684f499cc7">grpc_compression_level</a>&#160;</td>
  116. <td class="paramname"><em>level</em>, </td>
  117. </tr>
  118. <tr>
  119. <td class="paramkey"></td>
  120. <td></td>
  121. <td class="paramtype">uint32_t&#160;</td>
  122. <td class="paramname"><em>accepted_encodings</em>&#160;</td>
  123. </tr>
  124. <tr>
  125. <td></td>
  126. <td>)</td>
  127. <td></td><td></td>
  128. </tr>
  129. </table>
  130. </div><div class="memdoc">
  131. <p>Returns the compression algorithm corresponding to <em>level</em> for the compression algorithms encoded in the <em>accepted_encodings</em> bitset. </p>
  132. </div>
  133. </div>
  134. <a id="af41160f827a3ff132755fb25658435c4"></a>
  135. <h2 class="memtitle"><span class="permalink"><a href="#af41160f827a3ff132755fb25658435c4">&#9670;&nbsp;</a></span>grpc_compression_algorithm_is_message()</h2>
  136. <div class="memitem">
  137. <div class="memproto">
  138. <table class="memname">
  139. <tr>
  140. <td class="memname"><a class="el" href="impl_2codegen_2port__platform_8h.html#a2865c3b28ea7db75be4c725adb1edc7d">GRPCAPI</a> int grpc_compression_algorithm_is_message </td>
  141. <td>(</td>
  142. <td class="paramtype"><a class="el" href="compression__types_8h.html#ab9de0f68bfb1ef8ed09bd00643db14c9">grpc_compression_algorithm</a>&#160;</td>
  143. <td class="paramname"><em>algorithm</em></td><td>)</td>
  144. <td></td>
  145. </tr>
  146. </table>
  147. </div><div class="memdoc">
  148. <p>Return if an algorithm is message compression algorithm. </p>
  149. </div>
  150. </div>
  151. <a id="a053257ed8bdeba196b380f326897e25d"></a>
  152. <h2 class="memtitle"><span class="permalink"><a href="#a053257ed8bdeba196b380f326897e25d">&#9670;&nbsp;</a></span>grpc_compression_algorithm_is_stream()</h2>
  153. <div class="memitem">
  154. <div class="memproto">
  155. <table class="memname">
  156. <tr>
  157. <td class="memname"><a class="el" href="impl_2codegen_2port__platform_8h.html#a2865c3b28ea7db75be4c725adb1edc7d">GRPCAPI</a> int grpc_compression_algorithm_is_stream </td>
  158. <td>(</td>
  159. <td class="paramtype"><a class="el" href="compression__types_8h.html#ab9de0f68bfb1ef8ed09bd00643db14c9">grpc_compression_algorithm</a>&#160;</td>
  160. <td class="paramname"><em>algorithm</em></td><td>)</td>
  161. <td></td>
  162. </tr>
  163. </table>
  164. </div><div class="memdoc">
  165. <p>Return if an algorithm is stream compression algorithm. </p>
  166. </div>
  167. </div>
  168. <a id="a177f6d6330355d5ecaffb042ab1c2c8f"></a>
  169. <h2 class="memtitle"><span class="permalink"><a href="#a177f6d6330355d5ecaffb042ab1c2c8f">&#9670;&nbsp;</a></span>grpc_compression_algorithm_name()</h2>
  170. <div class="memitem">
  171. <div class="memproto">
  172. <table class="memname">
  173. <tr>
  174. <td class="memname"><a class="el" href="impl_2codegen_2port__platform_8h.html#a2865c3b28ea7db75be4c725adb1edc7d">GRPCAPI</a> int grpc_compression_algorithm_name </td>
  175. <td>(</td>
  176. <td class="paramtype"><a class="el" href="compression__types_8h.html#ab9de0f68bfb1ef8ed09bd00643db14c9">grpc_compression_algorithm</a>&#160;</td>
  177. <td class="paramname"><em>algorithm</em>, </td>
  178. </tr>
  179. <tr>
  180. <td class="paramkey"></td>
  181. <td></td>
  182. <td class="paramtype">const char **&#160;</td>
  183. <td class="paramname"><em>name</em>&#160;</td>
  184. </tr>
  185. <tr>
  186. <td></td>
  187. <td>)</td>
  188. <td></td><td></td>
  189. </tr>
  190. </table>
  191. </div><div class="memdoc">
  192. <p>Updates <em>name</em> with the encoding name corresponding to a valid <em>algorithm</em>. </p>
  193. <p>Note that <em>name</em> is statically allocated and must <em>not</em> be freed. Returns 1 upon success, 0 otherwise. </p>
  194. </div>
  195. </div>
  196. <a id="a5054ebec22cc256853a7ac2ed61fd654"></a>
  197. <h2 class="memtitle"><span class="permalink"><a href="#a5054ebec22cc256853a7ac2ed61fd654">&#9670;&nbsp;</a></span>grpc_compression_algorithm_parse()</h2>
  198. <div class="memitem">
  199. <div class="memproto">
  200. <table class="memname">
  201. <tr>
  202. <td class="memname"><a class="el" href="impl_2codegen_2port__platform_8h.html#a2865c3b28ea7db75be4c725adb1edc7d">GRPCAPI</a> int grpc_compression_algorithm_parse </td>
  203. <td>(</td>
  204. <td class="paramtype"><a class="el" href="structgrpc__slice.html">grpc_slice</a>&#160;</td>
  205. <td class="paramname"><em>value</em>, </td>
  206. </tr>
  207. <tr>
  208. <td class="paramkey"></td>
  209. <td></td>
  210. <td class="paramtype"><a class="el" href="compression__types_8h.html#ab9de0f68bfb1ef8ed09bd00643db14c9">grpc_compression_algorithm</a> *&#160;</td>
  211. <td class="paramname"><em>algorithm</em>&#160;</td>
  212. </tr>
  213. <tr>
  214. <td></td>
  215. <td>)</td>
  216. <td></td><td></td>
  217. </tr>
  218. </table>
  219. </div><div class="memdoc">
  220. <p>Parses the <em>slice</em> as a grpc_compression_algorithm instance and updating <em>algorithm</em>. </p>
  221. <p>Returns 1 upon success, 0 otherwise. </p>
  222. </div>
  223. </div>
  224. <a id="a1b58d314775a3651ee2f5f2d3ab4f6d9"></a>
  225. <h2 class="memtitle"><span class="permalink"><a href="#a1b58d314775a3651ee2f5f2d3ab4f6d9">&#9670;&nbsp;</a></span>grpc_compression_options_disable_algorithm()</h2>
  226. <div class="memitem">
  227. <div class="memproto">
  228. <table class="memname">
  229. <tr>
  230. <td class="memname"><a class="el" href="impl_2codegen_2port__platform_8h.html#a2865c3b28ea7db75be4c725adb1edc7d">GRPCAPI</a> void grpc_compression_options_disable_algorithm </td>
  231. <td>(</td>
  232. <td class="paramtype"><a class="el" href="structgrpc__compression__options.html">grpc_compression_options</a> *&#160;</td>
  233. <td class="paramname"><em>opts</em>, </td>
  234. </tr>
  235. <tr>
  236. <td class="paramkey"></td>
  237. <td></td>
  238. <td class="paramtype"><a class="el" href="compression__types_8h.html#ab9de0f68bfb1ef8ed09bd00643db14c9">grpc_compression_algorithm</a>&#160;</td>
  239. <td class="paramname"><em>algorithm</em>&#160;</td>
  240. </tr>
  241. <tr>
  242. <td></td>
  243. <td>)</td>
  244. <td></td><td></td>
  245. </tr>
  246. </table>
  247. </div><div class="memdoc">
  248. <p>Mark <em>algorithm</em> as disabled in <em>opts</em>. </p>
  249. </div>
  250. </div>
  251. <a id="a79e61d1ac1d226b3b54b73837f28f0ff"></a>
  252. <h2 class="memtitle"><span class="permalink"><a href="#a79e61d1ac1d226b3b54b73837f28f0ff">&#9670;&nbsp;</a></span>grpc_compression_options_enable_algorithm()</h2>
  253. <div class="memitem">
  254. <div class="memproto">
  255. <table class="memname">
  256. <tr>
  257. <td class="memname"><a class="el" href="impl_2codegen_2port__platform_8h.html#a2865c3b28ea7db75be4c725adb1edc7d">GRPCAPI</a> void grpc_compression_options_enable_algorithm </td>
  258. <td>(</td>
  259. <td class="paramtype"><a class="el" href="structgrpc__compression__options.html">grpc_compression_options</a> *&#160;</td>
  260. <td class="paramname"><em>opts</em>, </td>
  261. </tr>
  262. <tr>
  263. <td class="paramkey"></td>
  264. <td></td>
  265. <td class="paramtype"><a class="el" href="compression__types_8h.html#ab9de0f68bfb1ef8ed09bd00643db14c9">grpc_compression_algorithm</a>&#160;</td>
  266. <td class="paramname"><em>algorithm</em>&#160;</td>
  267. </tr>
  268. <tr>
  269. <td></td>
  270. <td>)</td>
  271. <td></td><td></td>
  272. </tr>
  273. </table>
  274. </div><div class="memdoc">
  275. <p>Mark <em>algorithm</em> as enabled in <em>opts</em>. </p>
  276. </div>
  277. </div>
  278. <a id="a2eccdbe5a4d811a7c965d6d67e5cc7d8"></a>
  279. <h2 class="memtitle"><span class="permalink"><a href="#a2eccdbe5a4d811a7c965d6d67e5cc7d8">&#9670;&nbsp;</a></span>grpc_compression_options_init()</h2>
  280. <div class="memitem">
  281. <div class="memproto">
  282. <table class="memname">
  283. <tr>
  284. <td class="memname"><a class="el" href="impl_2codegen_2port__platform_8h.html#a2865c3b28ea7db75be4c725adb1edc7d">GRPCAPI</a> void grpc_compression_options_init </td>
  285. <td>(</td>
  286. <td class="paramtype"><a class="el" href="structgrpc__compression__options.html">grpc_compression_options</a> *&#160;</td>
  287. <td class="paramname"><em>opts</em></td><td>)</td>
  288. <td></td>
  289. </tr>
  290. </table>
  291. </div><div class="memdoc">
  292. </div>
  293. </div>
  294. <a id="aba0dfe631311c3f49d1045694bc9b0df"></a>
  295. <h2 class="memtitle"><span class="permalink"><a href="#aba0dfe631311c3f49d1045694bc9b0df">&#9670;&nbsp;</a></span>grpc_compression_options_is_algorithm_enabled()</h2>
  296. <div class="memitem">
  297. <div class="memproto">
  298. <table class="memname">
  299. <tr>
  300. <td class="memname"><a class="el" href="impl_2codegen_2port__platform_8h.html#a2865c3b28ea7db75be4c725adb1edc7d">GRPCAPI</a> int grpc_compression_options_is_algorithm_enabled </td>
  301. <td>(</td>
  302. <td class="paramtype">const <a class="el" href="structgrpc__compression__options.html">grpc_compression_options</a> *&#160;</td>
  303. <td class="paramname"><em>opts</em>, </td>
  304. </tr>
  305. <tr>
  306. <td class="paramkey"></td>
  307. <td></td>
  308. <td class="paramtype"><a class="el" href="compression__types_8h.html#ab9de0f68bfb1ef8ed09bd00643db14c9">grpc_compression_algorithm</a>&#160;</td>
  309. <td class="paramname"><em>algorithm</em>&#160;</td>
  310. </tr>
  311. <tr>
  312. <td></td>
  313. <td>)</td>
  314. <td></td><td></td>
  315. </tr>
  316. </table>
  317. </div><div class="memdoc">
  318. <p>Returns true if <em>algorithm</em> is marked as enabled in <em>opts</em>. </p>
  319. </div>
  320. </div>
  321. </div><!-- contents -->
  322. <!-- start footer part -->
  323. <hr class="footer"/><address class="footer"><small>
  324. Generated on Fri Apr 13 2018 15:03:52 for GRPC Core by &#160;<a href="http://www.doxygen.org/index.html">
  325. <img class="footer" src="doxygen.png" alt="doxygen"/>
  326. </a> 1.8.13
  327. </small></address>
  328. </body>
  329. </html>