Sophie

Sophie

distrib > Mageia > 1 > i586 > by-pkgid > e5bf9ab66a4908454e5af29eddbd2c29 > files > 43

libzookeeper-devel-3.2.1-1.mga1.i586.rpm

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>zookeeper-3.2.1: include/zookeeper.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Generated by Doxygen 1.7.3 -->
<div id="top">
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">zookeeper-3.2.1</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
  <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>
    </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>
<div class="header">
  <div class="headertitle">
<h1>include/zookeeper.h</h1>  </div>
</div>
<div class="contents">
<a href="zookeeper_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 
<a name="l00019"></a>00019 <span class="preprocessor">#ifndef ZOOKEEPER_H_</span>
<a name="l00020"></a>00020 <span class="preprocessor"></span><span class="preprocessor">#define ZOOKEEPER_H_</span>
<a name="l00021"></a>00021 <span class="preprocessor"></span>
<a name="l00022"></a>00022 <span class="preprocessor">#include &lt;sys/time.h&gt;</span>
<a name="l00023"></a>00023 <span class="preprocessor">#include &lt;stdio.h&gt;</span>
<a name="l00024"></a>00024 
<a name="l00025"></a>00025 <span class="preprocessor">#include &quot;zookeeper_version.h&quot;</span>
<a name="l00026"></a>00026 <span class="preprocessor">#include &quot;recordio.h&quot;</span>
<a name="l00027"></a>00027 <span class="preprocessor">#include &quot;zookeeper.jute.h&quot;</span>
<a name="l00028"></a>00028 
<a name="l00059"></a>00059 <span class="comment">/* Support for building on various platforms */</span>
<a name="l00060"></a>00060 
<a name="l00061"></a>00061 <span class="comment">// on cygwin we should take care of exporting/importing symbols properly </span>
<a name="l00062"></a>00062 <span class="preprocessor">#ifdef DLL_EXPORT</span>
<a name="l00063"></a>00063 <span class="preprocessor"></span><span class="preprocessor">#    define ZOOAPI __declspec(dllexport)</span>
<a name="l00064"></a>00064 <span class="preprocessor"></span><span class="preprocessor">#else</span>
<a name="l00065"></a>00065 <span class="preprocessor"></span><span class="preprocessor">#  if defined(__CYGWIN__) &amp;&amp; !defined(USE_STATIC_LIB)</span>
<a name="l00066"></a>00066 <span class="preprocessor"></span><span class="preprocessor">#    define ZOOAPI __declspec(dllimport)</span>
<a name="l00067"></a>00067 <span class="preprocessor"></span><span class="preprocessor">#  else</span>
<a name="l00068"></a>00068 <span class="preprocessor"></span><span class="preprocessor">#    define ZOOAPI</span>
<a name="l00069"></a>00069 <span class="preprocessor"></span><span class="preprocessor">#  endif</span>
<a name="l00070"></a>00070 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00071"></a>00071 <span class="preprocessor"></span>
<a name="l00074"></a><a class="code" href="zookeeper_8h.html#abb1a0a179f313b2e44ee92369c438a4c">00074</a> <span class="keyword">enum</span> <a class="code" href="zookeeper_8h.html#abb1a0a179f313b2e44ee92369c438a4c">ZOO_ERRORS</a> {
<a name="l00075"></a><a class="code" href="zookeeper_8h.html#abb1a0a179f313b2e44ee92369c438a4ca9677bf3e4face8afd292d31ecfd4dc5d">00075</a>   <a class="code" href="zookeeper_8h.html#abb1a0a179f313b2e44ee92369c438a4ca9677bf3e4face8afd292d31ecfd4dc5d">ZOK</a> = 0, 
<a name="l00081"></a><a class="code" href="zookeeper_8h.html#abb1a0a179f313b2e44ee92369c438a4ca7c58662f7e5b1427aa3ad1bf979681e7">00081</a>   <a class="code" href="zookeeper_8h.html#abb1a0a179f313b2e44ee92369c438a4ca7c58662f7e5b1427aa3ad1bf979681e7">ZSYSTEMERROR</a> = -1,
<a name="l00082"></a><a class="code" href="zookeeper_8h.html#abb1a0a179f313b2e44ee92369c438a4ca9eabb281ab14c74db3aff9ab456fa7fe">00082</a>   <a class="code" href="zookeeper_8h.html#abb1a0a179f313b2e44ee92369c438a4ca9eabb281ab14c74db3aff9ab456fa7fe">ZRUNTIMEINCONSISTENCY</a> = -2, 
<a name="l00083"></a><a class="code" href="zookeeper_8h.html#abb1a0a179f313b2e44ee92369c438a4ca138188b6639b2a7ebe2d0e4e6555dad8">00083</a>   <a class="code" href="zookeeper_8h.html#abb1a0a179f313b2e44ee92369c438a4ca138188b6639b2a7ebe2d0e4e6555dad8">ZDATAINCONSISTENCY</a> = -3, 
<a name="l00084"></a><a class="code" href="zookeeper_8h.html#abb1a0a179f313b2e44ee92369c438a4caeb234e9a730fbad7f49e43349f22f4a1">00084</a>   <a class="code" href="zookeeper_8h.html#abb1a0a179f313b2e44ee92369c438a4caeb234e9a730fbad7f49e43349f22f4a1">ZCONNECTIONLOSS</a> = -4, 
<a name="l00085"></a><a class="code" href="zookeeper_8h.html#abb1a0a179f313b2e44ee92369c438a4ca68f884a7beb9b023ccc6f675a0c04c84">00085</a>   <a class="code" href="zookeeper_8h.html#abb1a0a179f313b2e44ee92369c438a4ca68f884a7beb9b023ccc6f675a0c04c84">ZMARSHALLINGERROR</a> = -5, 
<a name="l00086"></a><a class="code" href="zookeeper_8h.html#abb1a0a179f313b2e44ee92369c438a4ca59dbde4876cf39d0cb855749712375af">00086</a>   <a class="code" href="zookeeper_8h.html#abb1a0a179f313b2e44ee92369c438a4ca59dbde4876cf39d0cb855749712375af">ZUNIMPLEMENTED</a> = -6, 
<a name="l00087"></a><a class="code" href="zookeeper_8h.html#abb1a0a179f313b2e44ee92369c438a4ca09e4dce97bd35812cd4340f92bfc56f2">00087</a>   <a class="code" href="zookeeper_8h.html#abb1a0a179f313b2e44ee92369c438a4ca09e4dce97bd35812cd4340f92bfc56f2">ZOPERATIONTIMEOUT</a> = -7, 
<a name="l00088"></a><a class="code" href="zookeeper_8h.html#abb1a0a179f313b2e44ee92369c438a4cacf4f43d3a9aa644ce0d6fde3b466aed8">00088</a>   <a class="code" href="zookeeper_8h.html#abb1a0a179f313b2e44ee92369c438a4cacf4f43d3a9aa644ce0d6fde3b466aed8">ZBADARGUMENTS</a> = -8, 
<a name="l00089"></a><a class="code" href="zookeeper_8h.html#abb1a0a179f313b2e44ee92369c438a4ca5ba3d8e81d105c45f9cca8475eff9dbf">00089</a>   <a class="code" href="zookeeper_8h.html#abb1a0a179f313b2e44ee92369c438a4ca5ba3d8e81d105c45f9cca8475eff9dbf">ZINVALIDSTATE</a> = -9, 
<a name="l00097"></a><a class="code" href="zookeeper_8h.html#abb1a0a179f313b2e44ee92369c438a4cac22fcec5daf479703b045288a13afa67">00097</a>   <a class="code" href="zookeeper_8h.html#abb1a0a179f313b2e44ee92369c438a4cac22fcec5daf479703b045288a13afa67">ZAPIERROR</a> = -100,
<a name="l00098"></a><a class="code" href="zookeeper_8h.html#abb1a0a179f313b2e44ee92369c438a4ca18572f341d99957f2f95ccab2275c68f">00098</a>   <a class="code" href="zookeeper_8h.html#abb1a0a179f313b2e44ee92369c438a4ca18572f341d99957f2f95ccab2275c68f">ZNONODE</a> = -101, 
<a name="l00099"></a><a class="code" href="zookeeper_8h.html#abb1a0a179f313b2e44ee92369c438a4ca3930a0c2aae1bdca49bdd440c9405c00">00099</a>   <a class="code" href="zookeeper_8h.html#abb1a0a179f313b2e44ee92369c438a4ca3930a0c2aae1bdca49bdd440c9405c00">ZNOAUTH</a> = -102, 
<a name="l00100"></a><a class="code" href="zookeeper_8h.html#abb1a0a179f313b2e44ee92369c438a4ca37873fe49b1e08eec5753b5e45269a2c">00100</a>   <a class="code" href="zookeeper_8h.html#abb1a0a179f313b2e44ee92369c438a4ca37873fe49b1e08eec5753b5e45269a2c">ZBADVERSION</a> = -103, 
<a name="l00101"></a><a class="code" href="zookeeper_8h.html#abb1a0a179f313b2e44ee92369c438a4caa11331b98571065cff0c901003b05722">00101</a>   <a class="code" href="zookeeper_8h.html#abb1a0a179f313b2e44ee92369c438a4caa11331b98571065cff0c901003b05722">ZNOCHILDRENFOREPHEMERALS</a> = -108, 
<a name="l00102"></a><a class="code" href="zookeeper_8h.html#abb1a0a179f313b2e44ee92369c438a4ca1160268179c369d39072d98b4449409f">00102</a>   <a class="code" href="zookeeper_8h.html#abb1a0a179f313b2e44ee92369c438a4ca1160268179c369d39072d98b4449409f">ZNODEEXISTS</a> = -110, 
<a name="l00103"></a><a class="code" href="zookeeper_8h.html#abb1a0a179f313b2e44ee92369c438a4ca66f5ea514ccddfa39127db1f7021720a">00103</a>   <a class="code" href="zookeeper_8h.html#abb1a0a179f313b2e44ee92369c438a4ca66f5ea514ccddfa39127db1f7021720a">ZNOTEMPTY</a> = -111, 
<a name="l00104"></a><a class="code" href="zookeeper_8h.html#abb1a0a179f313b2e44ee92369c438a4ca98d749ce49260dcf034143e03836ff91">00104</a>   <a class="code" href="zookeeper_8h.html#abb1a0a179f313b2e44ee92369c438a4ca98d749ce49260dcf034143e03836ff91">ZSESSIONEXPIRED</a> = -112, 
<a name="l00105"></a><a class="code" href="zookeeper_8h.html#abb1a0a179f313b2e44ee92369c438a4cac991a5a3b3617e683710fa6f10ef6b08">00105</a>   <a class="code" href="zookeeper_8h.html#abb1a0a179f313b2e44ee92369c438a4cac991a5a3b3617e683710fa6f10ef6b08">ZINVALIDCALLBACK</a> = -113, 
<a name="l00106"></a><a class="code" href="zookeeper_8h.html#abb1a0a179f313b2e44ee92369c438a4ca0d5cdb15d20f814666d4876ba34e20d9">00106</a>   <a class="code" href="zookeeper_8h.html#abb1a0a179f313b2e44ee92369c438a4ca0d5cdb15d20f814666d4876ba34e20d9">ZINVALIDACL</a> = -114, 
<a name="l00107"></a><a class="code" href="zookeeper_8h.html#abb1a0a179f313b2e44ee92369c438a4ca77f3c8167bb517e34acdfc31d82823f5">00107</a>   <a class="code" href="zookeeper_8h.html#abb1a0a179f313b2e44ee92369c438a4ca77f3c8167bb517e34acdfc31d82823f5">ZAUTHFAILED</a> = -115, 
<a name="l00108"></a><a class="code" href="zookeeper_8h.html#abb1a0a179f313b2e44ee92369c438a4cace82a8a5ecabd1ef86a6b7d9baf8904d">00108</a>   <a class="code" href="zookeeper_8h.html#abb1a0a179f313b2e44ee92369c438a4cace82a8a5ecabd1ef86a6b7d9baf8904d">ZCLOSING</a> = -116, 
<a name="l00109"></a><a class="code" href="zookeeper_8h.html#abb1a0a179f313b2e44ee92369c438a4ca0bc307f70db60743e87a6d8947a26fd4">00109</a>   <a class="code" href="zookeeper_8h.html#abb1a0a179f313b2e44ee92369c438a4ca0bc307f70db60743e87a6d8947a26fd4">ZNOTHING</a> = -117, 
<a name="l00110"></a><a class="code" href="zookeeper_8h.html#abb1a0a179f313b2e44ee92369c438a4ca939cb9081488159221135f097bb453f5">00110</a>   <a class="code" href="zookeeper_8h.html#abb1a0a179f313b2e44ee92369c438a4ca939cb9081488159221135f097bb453f5">ZSESSIONMOVED</a> = -118 
<a name="l00111"></a>00111 };
<a name="l00112"></a>00112 
<a name="l00113"></a>00113 <span class="preprocessor">#ifdef __cplusplus</span>
<a name="l00114"></a>00114 <span class="preprocessor"></span><span class="keyword">extern</span> <span class="stringliteral">&quot;C&quot;</span> {
<a name="l00115"></a>00115 <span class="preprocessor">#endif</span>
<a name="l00116"></a>00116 <span class="preprocessor"></span>
<a name="l00120"></a>00120 <span class="keyword">typedef</span> <span class="keyword">enum</span> {ZOO_LOG_LEVEL_ERROR=1,ZOO_LOG_LEVEL_WARN=2,ZOO_LOG_LEVEL_INFO=3,ZOO_LOG_LEVEL_DEBUG=4} ZooLogLevel;
<a name="l00121"></a>00121 
<a name="l00125"></a>00125 <span class="keyword">extern</span> ZOOAPI <span class="keyword">const</span> <span class="keywordtype">int</span> ZOO_PERM_READ;
<a name="l00126"></a>00126 <span class="keyword">extern</span> ZOOAPI <span class="keyword">const</span> <span class="keywordtype">int</span> ZOO_PERM_WRITE;
<a name="l00127"></a>00127 <span class="keyword">extern</span> ZOOAPI <span class="keyword">const</span> <span class="keywordtype">int</span> ZOO_PERM_CREATE;
<a name="l00128"></a>00128 <span class="keyword">extern</span> ZOOAPI <span class="keyword">const</span> <span class="keywordtype">int</span> ZOO_PERM_DELETE;
<a name="l00129"></a>00129 <span class="keyword">extern</span> ZOOAPI <span class="keyword">const</span> <span class="keywordtype">int</span> ZOO_PERM_ADMIN;
<a name="l00130"></a>00130 <span class="keyword">extern</span> ZOOAPI <span class="keyword">const</span> <span class="keywordtype">int</span> ZOO_PERM_ALL;
<a name="l00131"></a>00131 
<a name="l00133"></a>00133 <span class="keyword">extern</span> ZOOAPI <span class="keyword">struct </span>Id <a class="code" href="zookeeper_8h.html#a1b791c9c72613592267f0272832e61d5">ZOO_ANYONE_ID_UNSAFE</a>;
<a name="l00137"></a>00137 <span class="keyword">extern</span> ZOOAPI <span class="keyword">struct </span>Id <a class="code" href="zookeeper_8h.html#a0821b8d404588c3a0e6a053e0fed5b94">ZOO_AUTH_IDS</a>;
<a name="l00138"></a>00138 
<a name="l00140"></a>00140 <span class="keyword">extern</span> ZOOAPI <span class="keyword">struct </span>ACL_vector <a class="code" href="zookeeper_8h.html#af705e7757024bed308db5f51fb66d206">ZOO_OPEN_ACL_UNSAFE</a>;
<a name="l00142"></a>00142 <span class="keyword">extern</span> ZOOAPI <span class="keyword">struct </span>ACL_vector <a class="code" href="zookeeper_8h.html#a6028ec3420071b8ede5913c88b498eb9">ZOO_READ_ACL_UNSAFE</a>;
<a name="l00144"></a>00144 <span class="keyword">extern</span> ZOOAPI <span class="keyword">struct </span>ACL_vector <a class="code" href="zookeeper_8h.html#a8952fa6cdcf5ae1ed59a516701f6f450">ZOO_CREATOR_ALL_ACL</a>;
<a name="l00145"></a>00145 
<a name="l00154"></a>00154 <span class="comment">// @{</span>
<a name="l00155"></a>00155 <span class="keyword">extern</span> ZOOAPI <span class="keyword">const</span> <span class="keywordtype">int</span> ZOOKEEPER_WRITE;
<a name="l00156"></a>00156 <span class="keyword">extern</span> ZOOAPI <span class="keyword">const</span> <span class="keywordtype">int</span> ZOOKEEPER_READ;
<a name="l00157"></a>00157 <span class="comment">// @}</span>
<a name="l00158"></a>00158 
<a name="l00165"></a>00165 <span class="comment">// @{</span>
<a name="l00166"></a>00166 <span class="keyword">extern</span> ZOOAPI <span class="keyword">const</span> <span class="keywordtype">int</span> ZOO_EPHEMERAL;
<a name="l00167"></a>00167 <span class="keyword">extern</span> ZOOAPI <span class="keyword">const</span> <span class="keywordtype">int</span> ZOO_SEQUENCE;
<a name="l00168"></a>00168 <span class="comment">// @}</span>
<a name="l00169"></a>00169 
<a name="l00175"></a>00175 <span class="comment">// @{</span>
<a name="l00176"></a>00176 <span class="keyword">extern</span> ZOOAPI <span class="keyword">const</span> <span class="keywordtype">int</span> ZOO_EXPIRED_SESSION_STATE;
<a name="l00177"></a>00177 <span class="keyword">extern</span> ZOOAPI <span class="keyword">const</span> <span class="keywordtype">int</span> ZOO_AUTH_FAILED_STATE;
<a name="l00178"></a>00178 <span class="keyword">extern</span> ZOOAPI <span class="keyword">const</span> <span class="keywordtype">int</span> ZOO_CONNECTING_STATE;
<a name="l00179"></a>00179 <span class="keyword">extern</span> ZOOAPI <span class="keyword">const</span> <span class="keywordtype">int</span> ZOO_ASSOCIATING_STATE;
<a name="l00180"></a>00180 <span class="keyword">extern</span> ZOOAPI <span class="keyword">const</span> <span class="keywordtype">int</span> ZOO_CONNECTED_STATE;
<a name="l00181"></a>00181 <span class="comment">// @}</span>
<a name="l00182"></a>00182 
<a name="l00188"></a>00188 <span class="comment">// @{</span>
<a name="l00195"></a>00195 <span class="comment"></span><span class="keyword">extern</span> ZOOAPI <span class="keyword">const</span> <span class="keywordtype">int</span> <a class="code" href="zookeeper_8h.html#a5d6848e9747568219ec887b5bd6a9311" title="a node has been created.">ZOO_CREATED_EVENT</a>;
<a name="l00202"></a>00202 <span class="keyword">extern</span> ZOOAPI <span class="keyword">const</span> <span class="keywordtype">int</span> <a class="code" href="zookeeper_8h.html#af183916e0570f387ac298a46c1d21e50" title="a node has been deleted.">ZOO_DELETED_EVENT</a>;
<a name="l00209"></a>00209 <span class="keyword">extern</span> ZOOAPI <span class="keyword">const</span> <span class="keywordtype">int</span> <a class="code" href="zookeeper_8h.html#a306c30235e0a593c1fe69c6638d2f7a5" title="a node has changed.">ZOO_CHANGED_EVENT</a>;
<a name="l00216"></a>00216 <span class="keyword">extern</span> ZOOAPI <span class="keyword">const</span> <span class="keywordtype">int</span> <a class="code" href="zookeeper_8h.html#a38921e47ffd8ba887d38a47dbc538340" title="a change as occurred in the list of children.">ZOO_CHILD_EVENT</a>;
<a name="l00222"></a>00222 <span class="keyword">extern</span> ZOOAPI <span class="keyword">const</span> <span class="keywordtype">int</span> <a class="code" href="zookeeper_8h.html#a31b6a709716ac3317f76f59e49db0e3a" title="a session has been lost.">ZOO_SESSION_EVENT</a>;
<a name="l00223"></a>00223 
<a name="l00230"></a>00230 <span class="keyword">extern</span> ZOOAPI <span class="keyword">const</span> <span class="keywordtype">int</span> <a class="code" href="zookeeper_8h.html#a10c6fbbf2c9a81209f0b971b2b563006" title="a watch has been removed.">ZOO_NOTWATCHING_EVENT</a>;
<a name="l00231"></a>00231 <span class="comment">// @}</span>
<a name="l00232"></a>00232 
<a name="l00240"></a><a class="code" href="zookeeper_8h.html#abbb713010da1056bae16baf23495d3ca">00240</a> <span class="keyword">typedef</span> <span class="keyword">struct </span>_zhandle <a class="code" href="zookeeper_8h.html#abbb713010da1056bae16baf23495d3ca" title="ZooKeeper handle.">zhandle_t</a>;
<a name="l00241"></a>00241 
<a name="l00249"></a><a class="code" href="structclientid__t.html">00249</a> <span class="keyword">typedef</span> <span class="keyword">struct </span>{
<a name="l00250"></a>00250     int64_t client_id;
<a name="l00251"></a>00251     <span class="keywordtype">char</span> passwd[16];
<a name="l00252"></a>00252 } <a class="code" href="structclientid__t.html" title="client id structure.">clientid_t</a>;
<a name="l00253"></a>00253 
<a name="l00280"></a><a class="code" href="zookeeper_8h.html#a3c087870022121ef51dd2e7c43c7cd39">00280</a> <span class="keyword">typedef</span> void (*<a class="code" href="zookeeper_8h.html#a3c087870022121ef51dd2e7c43c7cd39" title="signature of a watch function.">watcher_fn</a>)(<a class="code" href="zookeeper_8h.html#abbb713010da1056bae16baf23495d3ca" title="ZooKeeper handle.">zhandle_t</a> *zh, <span class="keywordtype">int</span> type, 
<a name="l00281"></a>00281         <span class="keywordtype">int</span> state, <span class="keyword">const</span> <span class="keywordtype">char</span> *path,<span class="keywordtype">void</span> *watcherCtx);
<a name="l00282"></a>00282 
<a name="l00311"></a>00311 ZOOAPI <a class="code" href="zookeeper_8h.html#abbb713010da1056bae16baf23495d3ca" title="ZooKeeper handle.">zhandle_t</a> *<a class="code" href="zookeeper_8h.html#a484b8767fa8f150cd15923fabafa90de" title="create a handle to used communicate with zookeeper.">zookeeper_init</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *host, <a class="code" href="zookeeper_8h.html#a3c087870022121ef51dd2e7c43c7cd39" title="signature of a watch function.">watcher_fn</a> fn,
<a name="l00312"></a>00312   <span class="keywordtype">int</span> recv_timeout, <span class="keyword">const</span> <a class="code" href="structclientid__t.html" title="client id structure.">clientid_t</a> *clientid, <span class="keywordtype">void</span> *context, <span class="keywordtype">int</span> flags);
<a name="l00313"></a>00313 
<a name="l00336"></a>00336 ZOOAPI <span class="keywordtype">int</span> <a class="code" href="zookeeper_8h.html#ad739d8cb9288daded58d4cbdede83937" title="close the zookeeper handle and free up any resources.">zookeeper_close</a>(<a class="code" href="zookeeper_8h.html#abbb713010da1056bae16baf23495d3ca" title="ZooKeeper handle.">zhandle_t</a> *zh);
<a name="l00337"></a>00337 
<a name="l00342"></a>00342 ZOOAPI <span class="keyword">const</span> <a class="code" href="structclientid__t.html" title="client id structure.">clientid_t</a> *<a class="code" href="zookeeper_8h.html#a505d6914026c3eb9c1f8671faf6e40e0" title="return the client session id, only valid if the connections is currently connected (ie...">zoo_client_id</a>(<a class="code" href="zookeeper_8h.html#abbb713010da1056bae16baf23495d3ca" title="ZooKeeper handle.">zhandle_t</a> *zh);
<a name="l00343"></a>00343 
<a name="l00344"></a>00344 ZOOAPI <span class="keywordtype">int</span> zoo_recv_timeout(<a class="code" href="zookeeper_8h.html#abbb713010da1056bae16baf23495d3ca" title="ZooKeeper handle.">zhandle_t</a> *zh);
<a name="l00345"></a>00345 
<a name="l00346"></a>00346 ZOOAPI <span class="keyword">const</span> <span class="keywordtype">void</span> *zoo_get_context(<a class="code" href="zookeeper_8h.html#abbb713010da1056bae16baf23495d3ca" title="ZooKeeper handle.">zhandle_t</a> *zh);
<a name="l00347"></a>00347 
<a name="l00348"></a>00348 ZOOAPI <span class="keywordtype">void</span> zoo_set_context(<a class="code" href="zookeeper_8h.html#abbb713010da1056bae16baf23495d3ca" title="ZooKeeper handle.">zhandle_t</a> *zh, <span class="keywordtype">void</span> *context);
<a name="l00349"></a>00349 
<a name="l00354"></a>00354 ZOOAPI <a class="code" href="zookeeper_8h.html#a3c087870022121ef51dd2e7c43c7cd39" title="signature of a watch function.">watcher_fn</a> <a class="code" href="zookeeper_8h.html#a8d2e6bf2a5c9df9e7a8408df68c87240" title="set a watcher function">zoo_set_watcher</a>(<a class="code" href="zookeeper_8h.html#abbb713010da1056bae16baf23495d3ca" title="ZooKeeper handle.">zhandle_t</a> *zh,<a class="code" href="zookeeper_8h.html#a3c087870022121ef51dd2e7c43c7cd39" title="signature of a watch function.">watcher_fn</a> newFn);
<a name="l00355"></a>00355 
<a name="l00356"></a>00356 <span class="preprocessor">#ifndef THREADED</span>
<a name="l00357"></a>00357 <span class="preprocessor"></span>
<a name="l00376"></a>00376 ZOOAPI <span class="keywordtype">int</span> <a class="code" href="zookeeper_8h.html#a56fef9c216e6dce777353e584fb6e1c1" title="Returns the events that zookeeper is interested in.">zookeeper_interest</a>(<a class="code" href="zookeeper_8h.html#abbb713010da1056bae16baf23495d3ca" title="ZooKeeper handle.">zhandle_t</a> *zh, <span class="keywordtype">int</span> *fd, <span class="keywordtype">int</span> *interest, 
<a name="l00377"></a>00377         <span class="keyword">struct</span> timeval *tv);
<a name="l00378"></a>00378 
<a name="l00396"></a>00396 ZOOAPI <span class="keywordtype">int</span> <a class="code" href="zookeeper_8h.html#a077c33ef2fa1ab1fcacc2fa62d9d2dee" title="Notifies zookeeper that an event of interest has happened.">zookeeper_process</a>(<a class="code" href="zookeeper_8h.html#abbb713010da1056bae16baf23495d3ca" title="ZooKeeper handle.">zhandle_t</a> *zh, <span class="keywordtype">int</span> events);
<a name="l00397"></a>00397 <span class="preprocessor">#endif</span>
<a name="l00398"></a>00398 <span class="preprocessor"></span>
<a name="l00416"></a><a class="code" href="zookeeper_8h.html#ae0c602c3bb94988ef46d0428211db49a">00416</a> <span class="keyword">typedef</span> void (*<a class="code" href="zookeeper_8h.html#ae0c602c3bb94988ef46d0428211db49a" title="signature of a completion function for a call that returns void.">void_completion_t</a>)(<span class="keywordtype">int</span> rc, <span class="keyword">const</span> <span class="keywordtype">void</span> *data);
<a name="l00417"></a>00417 
<a name="l00438"></a><a class="code" href="zookeeper_8h.html#a261bdb8998c8de8b96b333fa06a2b831">00438</a> <span class="keyword">typedef</span> void (*<a class="code" href="zookeeper_8h.html#a261bdb8998c8de8b96b333fa06a2b831" title="signature of a completion function that returns a Stat structure.">stat_completion_t</a>)(<span class="keywordtype">int</span> rc, <span class="keyword">const</span> <span class="keyword">struct </span>Stat *stat,
<a name="l00439"></a>00439         <span class="keyword">const</span> <span class="keywordtype">void</span> *data);
<a name="l00440"></a>00440 
<a name="l00465"></a><a class="code" href="zookeeper_8h.html#a2eaedcd3874b449281020b66aa27f239">00465</a> <span class="keyword">typedef</span> void (*<a class="code" href="zookeeper_8h.html#a2eaedcd3874b449281020b66aa27f239" title="signature of a completion function that returns data.">data_completion_t</a>)(<span class="keywordtype">int</span> rc, <span class="keyword">const</span> <span class="keywordtype">char</span> *value, <span class="keywordtype">int</span> value_len,
<a name="l00466"></a>00466         <span class="keyword">const</span> <span class="keyword">struct </span>Stat *stat, <span class="keyword">const</span> <span class="keywordtype">void</span> *data);
<a name="l00467"></a>00467 
<a name="l00489"></a><a class="code" href="zookeeper_8h.html#a151bfd8a6bd8b25c43e8c2c3275b9546">00489</a> <span class="keyword">typedef</span> void (*<a class="code" href="zookeeper_8h.html#a151bfd8a6bd8b25c43e8c2c3275b9546" title="signature of a completion function that returns a list of strings.">strings_completion_t</a>)(<span class="keywordtype">int</span> rc,
<a name="l00490"></a>00490         <span class="keyword">const</span> <span class="keyword">struct </span>String_vector *strings, <span class="keyword">const</span> <span class="keywordtype">void</span> *data);
<a name="l00491"></a>00491 
<a name="l00510"></a>00510 <span class="keyword">typedef</span> void
<a name="l00511"></a><a class="code" href="zookeeper_8h.html#acc042bba1f47cee718330179bd613ac1">00511</a>         (*<a class="code" href="zookeeper_8h.html#acc042bba1f47cee718330179bd613ac1" title="signature of a completion function that returns a list of strings.">string_completion_t</a>)(<span class="keywordtype">int</span> rc, <span class="keyword">const</span> <span class="keywordtype">char</span> *value, <span class="keyword">const</span> <span class="keywordtype">void</span> *data);
<a name="l00512"></a>00512 
<a name="l00536"></a><a class="code" href="zookeeper_8h.html#ab0273881ddd7eea98d98637b2137a2c8">00536</a> <span class="keyword">typedef</span> void (*<a class="code" href="zookeeper_8h.html#ab0273881ddd7eea98d98637b2137a2c8" title="signature of a completion function that returns an ACL.">acl_completion_t</a>)(<span class="keywordtype">int</span> rc, <span class="keyword">struct </span>ACL_vector *acl,
<a name="l00537"></a>00537         <span class="keyword">struct </span>Stat *stat, <span class="keyword">const</span> <span class="keywordtype">void</span> *data);
<a name="l00538"></a>00538 
<a name="l00544"></a>00544 ZOOAPI <span class="keywordtype">int</span> <a class="code" href="zookeeper_8h.html#a96522525031e264b6191d6d4dd0b5566" title="get the state of the zookeeper connection.">zoo_state</a>(<a class="code" href="zookeeper_8h.html#abbb713010da1056bae16baf23495d3ca" title="ZooKeeper handle.">zhandle_t</a> *zh);
<a name="l00545"></a>00545 
<a name="l00578"></a>00578 ZOOAPI <span class="keywordtype">int</span> <a class="code" href="zookeeper_8h.html#ac4644673723420167d0a89094f4fad06" title="create a node.">zoo_acreate</a>(<a class="code" href="zookeeper_8h.html#abbb713010da1056bae16baf23495d3ca" title="ZooKeeper handle.">zhandle_t</a> *zh, <span class="keyword">const</span> <span class="keywordtype">char</span> *path, <span class="keyword">const</span> <span class="keywordtype">char</span> *value, 
<a name="l00579"></a>00579         <span class="keywordtype">int</span> valuelen, <span class="keyword">const</span> <span class="keyword">struct</span> ACL_vector *acl, <span class="keywordtype">int</span> flags,
<a name="l00580"></a>00580         <a class="code" href="zookeeper_8h.html#acc042bba1f47cee718330179bd613ac1" title="signature of a completion function that returns a list of strings.">string_completion_t</a> completion, <span class="keyword">const</span> <span class="keywordtype">void</span> *data);
<a name="l00581"></a>00581 
<a name="l00605"></a>00605 ZOOAPI <span class="keywordtype">int</span> <a class="code" href="zookeeper_8h.html#a3a63a9f5fc75849fba0e0ab178dcd232" title="delete a node in zookeeper.">zoo_adelete</a>(<a class="code" href="zookeeper_8h.html#abbb713010da1056bae16baf23495d3ca" title="ZooKeeper handle.">zhandle_t</a> *zh, <span class="keyword">const</span> <span class="keywordtype">char</span> *path, <span class="keywordtype">int</span> version, 
<a name="l00606"></a>00606         <a class="code" href="zookeeper_8h.html#ae0c602c3bb94988ef46d0428211db49a" title="signature of a completion function for a call that returns void.">void_completion_t</a> completion, <span class="keyword">const</span> <span class="keywordtype">void</span> *data);
<a name="l00607"></a>00607 
<a name="l00629"></a>00629 ZOOAPI <span class="keywordtype">int</span> <a class="code" href="zookeeper_8h.html#aa171f014faccf74632e438aec9620ee9" title="checks the existence of a node in zookeeper.">zoo_aexists</a>(<a class="code" href="zookeeper_8h.html#abbb713010da1056bae16baf23495d3ca" title="ZooKeeper handle.">zhandle_t</a> *zh, <span class="keyword">const</span> <span class="keywordtype">char</span> *path, <span class="keywordtype">int</span> watch, 
<a name="l00630"></a>00630         <a class="code" href="zookeeper_8h.html#a261bdb8998c8de8b96b333fa06a2b831" title="signature of a completion function that returns a Stat structure.">stat_completion_t</a> completion, <span class="keyword">const</span> <span class="keywordtype">void</span> *data);
<a name="l00631"></a>00631 
<a name="l00661"></a>00661 ZOOAPI <span class="keywordtype">int</span> <a class="code" href="zookeeper_8h.html#a5d9b03f81ed3efa30d9ae8a163587507" title="checks the existence of a node in zookeeper.">zoo_awexists</a>(<a class="code" href="zookeeper_8h.html#abbb713010da1056bae16baf23495d3ca" title="ZooKeeper handle.">zhandle_t</a> *zh, <span class="keyword">const</span> <span class="keywordtype">char</span> *path, 
<a name="l00662"></a>00662         <a class="code" href="zookeeper_8h.html#a3c087870022121ef51dd2e7c43c7cd39" title="signature of a watch function.">watcher_fn</a> watcher, <span class="keywordtype">void</span>* watcherCtx, 
<a name="l00663"></a>00663         <a class="code" href="zookeeper_8h.html#a261bdb8998c8de8b96b333fa06a2b831" title="signature of a completion function that returns a Stat structure.">stat_completion_t</a> completion, <span class="keyword">const</span> <span class="keywordtype">void</span> *data);
<a name="l00664"></a>00664 
<a name="l00685"></a>00685 ZOOAPI <span class="keywordtype">int</span> <a class="code" href="zookeeper_8h.html#a8959afbd341ebed5785651615dcd3448" title="gets the data associated with a node.">zoo_aget</a>(<a class="code" href="zookeeper_8h.html#abbb713010da1056bae16baf23495d3ca" title="ZooKeeper handle.">zhandle_t</a> *zh, <span class="keyword">const</span> <span class="keywordtype">char</span> *path, <span class="keywordtype">int</span> watch, 
<a name="l00686"></a>00686         <a class="code" href="zookeeper_8h.html#a2eaedcd3874b449281020b66aa27f239" title="signature of a completion function that returns data.">data_completion_t</a> completion, <span class="keyword">const</span> <span class="keywordtype">void</span> *data);
<a name="l00687"></a>00687 
<a name="l00714"></a>00714 ZOOAPI <span class="keywordtype">int</span> <a class="code" href="zookeeper_8h.html#a27a5356ab2b02b5f1e0637653dc95d07" title="gets the data associated with a node.">zoo_awget</a>(<a class="code" href="zookeeper_8h.html#abbb713010da1056bae16baf23495d3ca" title="ZooKeeper handle.">zhandle_t</a> *zh, <span class="keyword">const</span> <span class="keywordtype">char</span> *path, 
<a name="l00715"></a>00715         <a class="code" href="zookeeper_8h.html#a3c087870022121ef51dd2e7c43c7cd39" title="signature of a watch function.">watcher_fn</a> watcher, <span class="keywordtype">void</span>* watcherCtx, 
<a name="l00716"></a>00716         <a class="code" href="zookeeper_8h.html#a2eaedcd3874b449281020b66aa27f239" title="signature of a completion function that returns data.">data_completion_t</a> completion, <span class="keyword">const</span> <span class="keywordtype">void</span> *data);
<a name="l00717"></a>00717 
<a name="l00744"></a>00744 ZOOAPI <span class="keywordtype">int</span> <a class="code" href="zookeeper_8h.html#a0469d9d9eda1ac92ec5228187aadd7c8" title="sets the data associated with a node.">zoo_aset</a>(<a class="code" href="zookeeper_8h.html#abbb713010da1056bae16baf23495d3ca" title="ZooKeeper handle.">zhandle_t</a> *zh, <span class="keyword">const</span> <span class="keywordtype">char</span> *path, <span class="keyword">const</span> <span class="keywordtype">char</span> *buffer, <span class="keywordtype">int</span> buflen, 
<a name="l00745"></a>00745         <span class="keywordtype">int</span> version, <a class="code" href="zookeeper_8h.html#a261bdb8998c8de8b96b333fa06a2b831" title="signature of a completion function that returns a Stat structure.">stat_completion_t</a> completion, <span class="keyword">const</span> <span class="keywordtype">void</span> *data);
<a name="l00746"></a>00746 
<a name="l00767"></a>00767 ZOOAPI <span class="keywordtype">int</span> <a class="code" href="zookeeper_8h.html#a200a306ec626cc4a841f5eee9f5c6e95" title="lists the children of a node.">zoo_aget_children</a>(<a class="code" href="zookeeper_8h.html#abbb713010da1056bae16baf23495d3ca" title="ZooKeeper handle.">zhandle_t</a> *zh, <span class="keyword">const</span> <span class="keywordtype">char</span> *path, <span class="keywordtype">int</span> watch, 
<a name="l00768"></a>00768         <a class="code" href="zookeeper_8h.html#a151bfd8a6bd8b25c43e8c2c3275b9546" title="signature of a completion function that returns a list of strings.">strings_completion_t</a> completion, <span class="keyword">const</span> <span class="keywordtype">void</span> *data);
<a name="l00769"></a>00769 
<a name="l00796"></a>00796 ZOOAPI <span class="keywordtype">int</span> <a class="code" href="zookeeper_8h.html#a7693f23caf85771212c348d3bdf72670" title="lists the children of a node.">zoo_awget_children</a>(<a class="code" href="zookeeper_8h.html#abbb713010da1056bae16baf23495d3ca" title="ZooKeeper handle.">zhandle_t</a> *zh, <span class="keyword">const</span> <span class="keywordtype">char</span> *path,
<a name="l00797"></a>00797         <a class="code" href="zookeeper_8h.html#a3c087870022121ef51dd2e7c43c7cd39" title="signature of a watch function.">watcher_fn</a> watcher, <span class="keywordtype">void</span>* watcherCtx, 
<a name="l00798"></a>00798         <a class="code" href="zookeeper_8h.html#a151bfd8a6bd8b25c43e8c2c3275b9546" title="signature of a completion function that returns a list of strings.">strings_completion_t</a> completion, <span class="keyword">const</span> <span class="keywordtype">void</span> *data);
<a name="l00799"></a>00799 
<a name="l00819"></a>00819 ZOOAPI <span class="keywordtype">int</span> <a class="code" href="zookeeper_8h.html#a6727169e54ab8c046231b01bccc1048a" title="Flush leader channel.">zoo_async</a>(<a class="code" href="zookeeper_8h.html#abbb713010da1056bae16baf23495d3ca" title="ZooKeeper handle.">zhandle_t</a> *zh, <span class="keyword">const</span> <span class="keywordtype">char</span> *path, 
<a name="l00820"></a>00820         <a class="code" href="zookeeper_8h.html#acc042bba1f47cee718330179bd613ac1" title="signature of a completion function that returns a list of strings.">string_completion_t</a> completion, <span class="keyword">const</span> <span class="keywordtype">void</span> *data);
<a name="l00821"></a>00821 
<a name="l00822"></a>00822 
<a name="l00841"></a>00841 ZOOAPI <span class="keywordtype">int</span> <a class="code" href="zookeeper_8h.html#a2949140b419b66eaf3215a149acae040" title="gets the acl associated with a node.">zoo_aget_acl</a>(<a class="code" href="zookeeper_8h.html#abbb713010da1056bae16baf23495d3ca" title="ZooKeeper handle.">zhandle_t</a> *zh, <span class="keyword">const</span> <span class="keywordtype">char</span> *path, <a class="code" href="zookeeper_8h.html#ab0273881ddd7eea98d98637b2137a2c8" title="signature of a completion function that returns an ACL.">acl_completion_t</a> completion, 
<a name="l00842"></a>00842         <span class="keyword">const</span> <span class="keywordtype">void</span> *data);
<a name="l00843"></a>00843 
<a name="l00866"></a>00866 ZOOAPI <span class="keywordtype">int</span> <a class="code" href="zookeeper_8h.html#a42e2dfbf93e0aab4146dc8811d29756f" title="sets the acl associated with a node.">zoo_aset_acl</a>(<a class="code" href="zookeeper_8h.html#abbb713010da1056bae16baf23495d3ca" title="ZooKeeper handle.">zhandle_t</a> *zh, <span class="keyword">const</span> <span class="keywordtype">char</span> *path, <span class="keywordtype">int</span> version, 
<a name="l00867"></a>00867         <span class="keyword">struct</span> ACL_vector *acl, <a class="code" href="zookeeper_8h.html#ae0c602c3bb94988ef46d0428211db49a" title="signature of a completion function for a call that returns void.">void_completion_t</a>, <span class="keyword">const</span> <span class="keywordtype">void</span> *data);
<a name="l00868"></a>00868 
<a name="l00875"></a>00875 ZOOAPI <span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="zookeeper_8h.html#a3d761ed65ee897f45a0e374ebc0f4d30" title="return an error string.">zerror</a>(<span class="keywordtype">int</span> c);
<a name="l00876"></a>00876 
<a name="l00904"></a>00904 ZOOAPI <span class="keywordtype">int</span> <a class="code" href="zookeeper_8h.html#add00e81d3cb8041ecec95249512500c2" title="specify application credentials.">zoo_add_auth</a>(<a class="code" href="zookeeper_8h.html#abbb713010da1056bae16baf23495d3ca" title="ZooKeeper handle.">zhandle_t</a> *zh,<span class="keyword">const</span> <span class="keywordtype">char</span>* scheme,<span class="keyword">const</span> <span class="keywordtype">char</span>* cert, 
<a name="l00905"></a>00905         <span class="keywordtype">int</span> certLen, <a class="code" href="zookeeper_8h.html#ae0c602c3bb94988ef46d0428211db49a" title="signature of a completion function for a call that returns void.">void_completion_t</a> completion, <span class="keyword">const</span> <span class="keywordtype">void</span> *data);
<a name="l00906"></a>00906 
<a name="l00915"></a>00915 ZOOAPI <span class="keywordtype">int</span> <a class="code" href="zookeeper_8h.html#a09c8242baaf276f46cd822a0fb053f9e" title="checks if the current zookeeper connection state can&amp;#39;t be recovered.">is_unrecoverable</a>(<a class="code" href="zookeeper_8h.html#abbb713010da1056bae16baf23495d3ca" title="ZooKeeper handle.">zhandle_t</a> *zh);
<a name="l00916"></a>00916 
<a name="l00920"></a>00920 ZOOAPI <span class="keywordtype">void</span> <a class="code" href="zookeeper_8h.html#ade881324f9377989bc721f4072df613e" title="sets the debugging level for the library">zoo_set_debug_level</a>(ZooLogLevel logLevel);
<a name="l00921"></a>00921 
<a name="l00929"></a>00929 ZOOAPI <span class="keywordtype">void</span> <a class="code" href="zookeeper_8h.html#a8c317bd06867b8ed1af5d330949677e1" title="sets the stream to be used by the library for logging">zoo_set_log_stream</a>(FILE* logStream);
<a name="l00930"></a>00930 
<a name="l00940"></a>00940 ZOOAPI <span class="keywordtype">void</span> <a class="code" href="zookeeper_8h.html#a626b763c03debdb118228e34a1b28724" title="enable/disable quorum endpoint order randomization">zoo_deterministic_conn_order</a>(<span class="keywordtype">int</span> yesOrNo);
<a name="l00941"></a>00941 
<a name="l00980"></a>00980 ZOOAPI <span class="keywordtype">int</span> <a class="code" href="zookeeper_8h.html#a3d28332b6ab383445faf838e4178ee64" title="create a node synchronously.">zoo_create</a>(<a class="code" href="zookeeper_8h.html#abbb713010da1056bae16baf23495d3ca" title="ZooKeeper handle.">zhandle_t</a> *zh, <span class="keyword">const</span> <span class="keywordtype">char</span> *path, <span class="keyword">const</span> <span class="keywordtype">char</span> *value,
<a name="l00981"></a>00981         <span class="keywordtype">int</span> valuelen, <span class="keyword">const</span> <span class="keyword">struct</span> ACL_vector *acl, <span class="keywordtype">int</span> flags,
<a name="l00982"></a>00982         <span class="keywordtype">char</span> *path_buffer, <span class="keywordtype">int</span> path_buffer_len);
<a name="l00983"></a>00983 
<a name="l01003"></a>01003 ZOOAPI <span class="keywordtype">int</span> <a class="code" href="zookeeper_8h.html#a6193efb017205069e110a79f19b6fa4b" title="delete a node in zookeeper synchronously.">zoo_delete</a>(<a class="code" href="zookeeper_8h.html#abbb713010da1056bae16baf23495d3ca" title="ZooKeeper handle.">zhandle_t</a> *zh, <span class="keyword">const</span> <span class="keywordtype">char</span> *path, <span class="keywordtype">int</span> version);
<a name="l01004"></a>01004 
<a name="l01005"></a>01005 
<a name="l01024"></a>01024 ZOOAPI <span class="keywordtype">int</span> <a class="code" href="zookeeper_8h.html#a70bb2108d1d1646a8379135630fc9195" title="checks the existence of a node in zookeeper synchronously.">zoo_exists</a>(<a class="code" href="zookeeper_8h.html#abbb713010da1056bae16baf23495d3ca" title="ZooKeeper handle.">zhandle_t</a> *zh, <span class="keyword">const</span> <span class="keywordtype">char</span> *path, <span class="keywordtype">int</span> watch, <span class="keyword">struct</span> Stat *stat);
<a name="l01025"></a>01025 
<a name="l01050"></a>01050 ZOOAPI <span class="keywordtype">int</span> <a class="code" href="zookeeper_8h.html#a098356e008bd07b3b00a1c4637f2369b" title="checks the existence of a node in zookeeper synchronously.">zoo_wexists</a>(<a class="code" href="zookeeper_8h.html#abbb713010da1056bae16baf23495d3ca" title="ZooKeeper handle.">zhandle_t</a> *zh, <span class="keyword">const</span> <span class="keywordtype">char</span> *path,
<a name="l01051"></a>01051         <a class="code" href="zookeeper_8h.html#a3c087870022121ef51dd2e7c43c7cd39" title="signature of a watch function.">watcher_fn</a> watcher, <span class="keywordtype">void</span>* watcherCtx, <span class="keyword">struct</span> Stat *stat);
<a name="l01052"></a>01052 
<a name="l01073"></a>01073 ZOOAPI <span class="keywordtype">int</span> <a class="code" href="zookeeper_8h.html#a9b2b234acbe429205757b86bb4f042f4" title="gets the data associated with a node synchronously.">zoo_get</a>(<a class="code" href="zookeeper_8h.html#abbb713010da1056bae16baf23495d3ca" title="ZooKeeper handle.">zhandle_t</a> *zh, <span class="keyword">const</span> <span class="keywordtype">char</span> *path, <span class="keywordtype">int</span> watch, <span class="keywordtype">char</span> *buffer,   
<a name="l01074"></a>01074                    <span class="keywordtype">int</span>* buffer_len, <span class="keyword">struct</span> Stat *stat);
<a name="l01075"></a>01075 
<a name="l01102"></a>01102 ZOOAPI <span class="keywordtype">int</span> <a class="code" href="zookeeper_8h.html#af359f8e1912e4b9022206740f98e79ba" title="gets the data associated with a node synchronously.">zoo_wget</a>(<a class="code" href="zookeeper_8h.html#abbb713010da1056bae16baf23495d3ca" title="ZooKeeper handle.">zhandle_t</a> *zh, <span class="keyword">const</span> <span class="keywordtype">char</span> *path, 
<a name="l01103"></a>01103         <a class="code" href="zookeeper_8h.html#a3c087870022121ef51dd2e7c43c7cd39" title="signature of a watch function.">watcher_fn</a> watcher, <span class="keywordtype">void</span>* watcherCtx, 
<a name="l01104"></a>01104         <span class="keywordtype">char</span> *buffer, <span class="keywordtype">int</span>* buffer_len, <span class="keyword">struct</span> Stat *stat);
<a name="l01105"></a>01105 
<a name="l01128"></a>01128 ZOOAPI <span class="keywordtype">int</span> <a class="code" href="zookeeper_8h.html#af726c22625275850315a3c47f4aea97a" title="sets the data associated with a node. See zoo_set2 function if you require access to the stat informa...">zoo_set</a>(<a class="code" href="zookeeper_8h.html#abbb713010da1056bae16baf23495d3ca" title="ZooKeeper handle.">zhandle_t</a> *zh, <span class="keyword">const</span> <span class="keywordtype">char</span> *path, <span class="keyword">const</span> <span class="keywordtype">char</span> *buffer,
<a name="l01129"></a>01129                    <span class="keywordtype">int</span> buflen, <span class="keywordtype">int</span> version);
<a name="l01130"></a>01130 
<a name="l01155"></a>01155 ZOOAPI <span class="keywordtype">int</span> <a class="code" href="zookeeper_8h.html#ab2e830152ae3bc578c7d6a0dc13d2d17" title="sets the data associated with a node. This function is the same as zoo_set except that it also provid...">zoo_set2</a>(<a class="code" href="zookeeper_8h.html#abbb713010da1056bae16baf23495d3ca" title="ZooKeeper handle.">zhandle_t</a> *zh, <span class="keyword">const</span> <span class="keywordtype">char</span> *path, <span class="keyword">const</span> <span class="keywordtype">char</span> *buffer,
<a name="l01156"></a>01156                    <span class="keywordtype">int</span> buflen, <span class="keywordtype">int</span> version, <span class="keyword">struct</span> Stat *stat);
<a name="l01157"></a>01157 
<a name="l01175"></a>01175 ZOOAPI <span class="keywordtype">int</span> <a class="code" href="zookeeper_8h.html#a281c9de9e479dbcc364f76dd24c2ee15" title="lists the children of a node synchronously.">zoo_get_children</a>(<a class="code" href="zookeeper_8h.html#abbb713010da1056bae16baf23495d3ca" title="ZooKeeper handle.">zhandle_t</a> *zh, <span class="keyword">const</span> <span class="keywordtype">char</span> *path, <span class="keywordtype">int</span> watch,
<a name="l01176"></a>01176                             <span class="keyword">struct</span> String_vector *strings);
<a name="l01177"></a>01177 
<a name="l01201"></a>01201 ZOOAPI <span class="keywordtype">int</span> <a class="code" href="zookeeper_8h.html#a570b704215ea13cc8ceda64ccbaf8323" title="lists the children of a node synchronously.">zoo_wget_children</a>(<a class="code" href="zookeeper_8h.html#abbb713010da1056bae16baf23495d3ca" title="ZooKeeper handle.">zhandle_t</a> *zh, <span class="keyword">const</span> <span class="keywordtype">char</span> *path, 
<a name="l01202"></a>01202         <a class="code" href="zookeeper_8h.html#a3c087870022121ef51dd2e7c43c7cd39" title="signature of a watch function.">watcher_fn</a> watcher, <span class="keywordtype">void</span>* watcherCtx,
<a name="l01203"></a>01203         <span class="keyword">struct</span> String_vector *strings);
<a name="l01204"></a>01204 
<a name="l01221"></a>01221 ZOOAPI <span class="keywordtype">int</span> <a class="code" href="zookeeper_8h.html#a2fd7d570522b02e2fe9db64b808e71e4" title="gets the acl associated with a node synchronously.">zoo_get_acl</a>(<a class="code" href="zookeeper_8h.html#abbb713010da1056bae16baf23495d3ca" title="ZooKeeper handle.">zhandle_t</a> *zh, <span class="keyword">const</span> <span class="keywordtype">char</span> *path, <span class="keyword">struct</span> ACL_vector *acl,
<a name="l01222"></a>01222                        <span class="keyword">struct</span> Stat *stat);
<a name="l01223"></a>01223 
<a name="l01242"></a>01242 ZOOAPI <span class="keywordtype">int</span> <a class="code" href="zookeeper_8h.html#a1f98236df8d40b6b37edf1bacb7d035b" title="sets the acl associated with a node synchronously.">zoo_set_acl</a>(<a class="code" href="zookeeper_8h.html#abbb713010da1056bae16baf23495d3ca" title="ZooKeeper handle.">zhandle_t</a> *zh, <span class="keyword">const</span> <span class="keywordtype">char</span> *path, <span class="keywordtype">int</span> version,
<a name="l01243"></a>01243                            <span class="keyword">const</span> <span class="keyword">struct</span> ACL_vector *acl);
<a name="l01244"></a>01244 
<a name="l01245"></a>01245 <span class="preprocessor">#ifdef __cplusplus</span>
<a name="l01246"></a>01246 <span class="preprocessor"></span>}
<a name="l01247"></a>01247 <span class="preprocessor">#endif</span>
<a name="l01248"></a>01248 <span class="preprocessor"></span>
<a name="l01249"></a>01249 <span class="preprocessor">#endif </span><span class="comment">/*ZOOKEEPER_H_*/</span>
</pre></div></div>
</div>
<hr class="footer"/><address class="footer"><small>Generated on Mon Feb 7 2011 03:42:48 for zookeeper-3.2.1 by&#160;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.3 </small></address>
</body>
</html>