|
@@ -100,23 +100,23 @@ extern "C" {
|
|
|
/**
|
|
|
* @name Debug levels
|
|
|
*/
|
|
|
-typedef enum {LOG_LEVEL_ERROR=1,LOG_LEVEL_WARN=2,LOG_LEVEL_INFO=3,LOG_LEVEL_DEBUG=4} ZooLogLevel;
|
|
|
+typedef enum {ZOO_LOG_LEVEL_ERROR=1,ZOO_LOG_LEVEL_WARN=2,ZOO_LOG_LEVEL_INFO=3,ZOO_LOG_LEVEL_DEBUG=4} ZooLogLevel;
|
|
|
/**
|
|
|
* @name ACL Consts
|
|
|
*/
|
|
|
-extern ZOOAPI const int PERM_READ;
|
|
|
-extern ZOOAPI const int PERM_WRITE;
|
|
|
-extern ZOOAPI const int PERM_CREATE;
|
|
|
-extern ZOOAPI const int PERM_DELETE;
|
|
|
-extern ZOOAPI const int PERM_ADMIN;
|
|
|
-extern ZOOAPI const int PERM_ALL;
|
|
|
+extern ZOOAPI const int ZOO_PERM_READ;
|
|
|
+extern ZOOAPI const int ZOO_PERM_WRITE;
|
|
|
+extern ZOOAPI const int ZOO_PERM_CREATE;
|
|
|
+extern ZOOAPI const int ZOO_PERM_DELETE;
|
|
|
+extern ZOOAPI const int ZOO_PERM_ADMIN;
|
|
|
+extern ZOOAPI const int ZOO_PERM_ALL;
|
|
|
|
|
|
-extern ZOOAPI struct Id ANYONE_ID_UNSAFE;
|
|
|
-extern ZOOAPI struct Id AUTH_IDS;
|
|
|
+extern ZOOAPI struct Id ZOO_ANYONE_ID_UNSAFE;
|
|
|
+extern ZOOAPI struct Id ZOO_AUTH_IDS;
|
|
|
|
|
|
-extern ZOOAPI struct ACL_vector OPEN_ACL_UNSAFE;
|
|
|
-extern ZOOAPI struct ACL_vector READ_ACL_UNSAFE;
|
|
|
-extern ZOOAPI struct ACL_vector CREATOR_ALL_ACL;
|
|
|
+extern ZOOAPI struct ACL_vector ZOO_OPEN_ACL_UNSAFE;
|
|
|
+extern ZOOAPI struct ACL_vector ZOO_READ_ACL_UNSAFE;
|
|
|
+extern ZOOAPI struct ACL_vector ZOO_CREATOR_ALL_ACL;
|
|
|
|
|
|
/**
|
|
|
* @name Interest Consts
|
|
@@ -138,23 +138,23 @@ extern ZOOAPI const int ZOOKEEPER_READ;
|
|
|
* be ORed together to combine effects.
|
|
|
*/
|
|
|
// @{
|
|
|
-extern ZOOAPI const int EPHEMERAL;
|
|
|
-extern ZOOAPI const int SEQUENCE;
|
|
|
+extern ZOOAPI const int ZOO_EPHEMERAL;
|
|
|
+extern ZOOAPI const int ZOO_SEQUENCE;
|
|
|
// @}
|
|
|
|
|
|
/**
|
|
|
* @name State Consts
|
|
|
* These constants represent the states of a zookeeper connection. They are
|
|
|
* possible parameters of the watcher callback. If a connection moves from
|
|
|
- * the CONNECTED_STATE to the CONNECTING_STATE, all outstanding watches will
|
|
|
- * be removed.
|
|
|
+ * the ZOO_CONNECTED_STATE to the ZOO_CONNECTING_STATE, all outstanding
|
|
|
+ * watches will be removed.
|
|
|
*/
|
|
|
// @{
|
|
|
-extern ZOOAPI const int EXPIRED_SESSION_STATE;
|
|
|
-extern ZOOAPI const int AUTH_FAILED_STATE;
|
|
|
-extern ZOOAPI const int CONNECTING_STATE;
|
|
|
-extern ZOOAPI const int ASSOCIATING_STATE;
|
|
|
-extern ZOOAPI const int CONNECTED_STATE;
|
|
|
+extern ZOOAPI const int ZOO_EXPIRED_SESSION_STATE;
|
|
|
+extern ZOOAPI const int ZOO_AUTH_FAILED_STATE;
|
|
|
+extern ZOOAPI const int ZOO_CONNECTING_STATE;
|
|
|
+extern ZOOAPI const int ZOO_ASSOCIATING_STATE;
|
|
|
+extern ZOOAPI const int ZOO_CONNECTED_STATE;
|
|
|
// @}
|
|
|
|
|
|
/**
|
|
@@ -169,34 +169,34 @@ extern ZOOAPI const int CONNECTED_STATE;
|
|
|
* This is only generated by watches on non-existent nodes. These watches
|
|
|
* are set using \ref zoo_exists.
|
|
|
*/
|
|
|
-extern ZOOAPI const int CREATED_EVENT;
|
|
|
+extern ZOOAPI const int ZOO_CREATED_EVENT;
|
|
|
/**
|
|
|
* \brief a node has been deleted.
|
|
|
*
|
|
|
* This is only generated by watches on nodes. These watches
|
|
|
* are set using \ref zoo_exists and \ref zoo_get.
|
|
|
*/
|
|
|
-extern ZOOAPI const int DELETED_EVENT;
|
|
|
+extern ZOOAPI const int ZOO_DELETED_EVENT;
|
|
|
/**
|
|
|
* \brief a node has changed.
|
|
|
*
|
|
|
* This is only generated by watches on nodes. These watches
|
|
|
* are set using \ref zoo_exists and \ref zoo_get.
|
|
|
*/
|
|
|
-extern ZOOAPI const int CHANGED_EVENT;
|
|
|
+extern ZOOAPI const int ZOO_CHANGED_EVENT;
|
|
|
/**
|
|
|
* \brief a change as occurred in the list of children.
|
|
|
*
|
|
|
* This is only generated by watches on the child list of a node. These watches
|
|
|
* are set using \ref zoo_get_children.
|
|
|
*/
|
|
|
-extern ZOOAPI const int CHILD_EVENT;
|
|
|
+extern ZOOAPI const int ZOO_CHILD_EVENT;
|
|
|
/**
|
|
|
* \brief a session has been lost.
|
|
|
*
|
|
|
* This is generated when a client loses contact or reconnects with a server.
|
|
|
*/
|
|
|
-extern ZOOAPI const int SESSION_EVENT;
|
|
|
+extern ZOOAPI const int ZOO_SESSION_EVENT;
|
|
|
|
|
|
/**
|
|
|
* \brief a watch has been removed.
|
|
@@ -204,7 +204,7 @@ extern ZOOAPI const int SESSION_EVENT;
|
|
|
* This is generated when the server for some reason, probably a resource
|
|
|
* constraint, will no longer watch a node for a client.
|
|
|
*/
|
|
|
-extern ZOOAPI const int NOTWATCHING_EVENT;
|
|
|
+extern ZOOAPI const int ZOO_NOTWATCHING_EVENT;
|
|
|
// @}
|
|
|
|
|
|
/**
|
|
@@ -249,10 +249,10 @@ typedef struct {
|
|
|
*
|
|
|
* \param zh zookeeper handle
|
|
|
* \param type event type. This is one of the *_EVENT constants.
|
|
|
- * \param state connection state. If the type is SESSION_EVENT, the state value
|
|
|
+ * \param state connection state. If the type is ZOO_SESSION_EVENT, the state value
|
|
|
* will be one of the *_STATE constants, otherwise -1.
|
|
|
* \param path znode path for which the watcher is triggered. NULL if the event
|
|
|
- * type is SESSION_EVENT
|
|
|
+ * type is ZOO_SESSION_EVENT
|
|
|
* \param watcherCtx watcher context.
|
|
|
*/
|
|
|
typedef void (*watcher_fn)(zhandle_t *zh, int type,
|
|
@@ -336,7 +336,7 @@ ZOOAPI watcher_fn zoo_set_watcher(zhandle_t *zh,watcher_fn newFn);
|
|
|
* \return a result code.
|
|
|
* ZOK - success
|
|
|
* ZBADARGUMENTS - invalid input parameters
|
|
|
- * ZINVALIDSTATE - zhandle state is either SESSION_EXPIRED_STATE or AUTH_FAILED_STATE
|
|
|
+ * ZINVALIDSTATE - zhandle state is either ZOO_SESSION_EXPIRED_STATE or ZOO_AUTH_FAILED_STATE
|
|
|
* ZCONNECTIONLOSS - a network error occured while attempting to establish
|
|
|
* a connection to the server
|
|
|
* ZMARSHALLINGERROR - failed to marshall a request; possibly, out of memory
|
|
@@ -355,7 +355,7 @@ ZOOAPI int zookeeper_interest(zhandle_t *zh, int *fd, int *interest,
|
|
|
* \return a result code.
|
|
|
* ZOK - success
|
|
|
* ZBADARGUMENTS - invalid input parameters
|
|
|
- * ZINVALIDSTATE - zhandle state is either SESSION_EXPIRED_STATE or AUTH_FAILED_STATE
|
|
|
+ * ZINVALIDSTATE - zhandle state is either ZOO_SESSION_EXPIRED_STATE or ZOO_AUTH_FAILED_STATE
|
|
|
* ZCONNECTIONLOSS - a network error occured while attempting to send request to server
|
|
|
* ZSESSIONEXPIRED - connection attempt failed -- the session's expired
|
|
|
* ZAUTHFAILED - authentication request failed, e.i. invalid credentials
|
|
@@ -519,8 +519,8 @@ ZOOAPI int zoo_state(zhandle_t *zh);
|
|
|
*
|
|
|
* This method will create a node in ZooKeeper. A node can only be created if
|
|
|
* it does not already exists. The Create Flags affect the creation of nodes.
|
|
|
- * If EPHEMERAL flag is set, the node will automatically get removed if the
|
|
|
- * client session goes away. If the SEQUENCE flag is set, a unique
|
|
|
+ * If ZOO_EPHEMERAL flag is set, the node will automatically get removed if the
|
|
|
+ * client session goes away. If the ZOO_SEQUENCE flag is set, a unique
|
|
|
* monotonically increasing sequence number is appended to the path name.
|
|
|
*
|
|
|
* \param zh the zookeeper handle obtained by a call to \ref zookeeper_init
|
|
@@ -543,7 +543,7 @@ ZOOAPI int zoo_state(zhandle_t *zh);
|
|
|
* function completes.
|
|
|
* \return ZOK on success or one of the following errcodes on failure:
|
|
|
* ZBADARGUMENTS - invalid input parameters
|
|
|
- * ZINVALIDSTATE - zhandle state is either SESSION_EXPIRED_STATE or AUTH_FAILED_STATE
|
|
|
+ * ZINVALIDSTATE - zhandle state is either ZOO_SESSION_EXPIRED_STATE or ZOO_AUTH_FAILED_STATE
|
|
|
* ZMARSHALLINGERROR - failed to marshall a request; possibly, out of memory
|
|
|
*/
|
|
|
ZOOAPI int zoo_acreate(zhandle_t *zh, const char *path, const char *value,
|
|
@@ -570,7 +570,7 @@ ZOOAPI int zoo_acreate(zhandle_t *zh, const char *path, const char *value,
|
|
|
* the function completes.
|
|
|
* \return ZOK on success or one of the following errcodes on failure:
|
|
|
* ZBADARGUMENTS - invalid input parameters
|
|
|
- * ZINVALIDSTATE - zhandle state is either SESSION_EXPIRED_STATE or AUTH_FAILED_STATE
|
|
|
+ * ZINVALIDSTATE - zhandle state is either ZOO_SESSION_EXPIRED_STATE or ZOO_AUTH_FAILED_STATE
|
|
|
* ZMARSHALLINGERROR - failed to marshall a request; possibly, out of memory
|
|
|
*/
|
|
|
ZOOAPI int zoo_adelete(zhandle_t *zh, const char *path, int version,
|
|
@@ -594,7 +594,7 @@ ZOOAPI int zoo_adelete(zhandle_t *zh, const char *path, int version,
|
|
|
* function completes.
|
|
|
* \return ZOK on success or one of the following errcodes on failure:
|
|
|
* ZBADARGUMENTS - invalid input parameters
|
|
|
- * ZINVALIDSTATE - zhandle state is either SESSION_EXPIRED_STATE or AUTH_FAILED_STATE
|
|
|
+ * ZINVALIDSTATE - zhandle state is either ZOO_SESSION_EXPIRED_STATE or ZOO_AUTH_FAILED_STATE
|
|
|
* ZMARSHALLINGERROR - failed to marshall a request; possibly, out of memory
|
|
|
*/
|
|
|
ZOOAPI int zoo_aexists(zhandle_t *zh, const char *path, int watch,
|
|
@@ -626,7 +626,7 @@ ZOOAPI int zoo_aexists(zhandle_t *zh, const char *path, int watch,
|
|
|
* function completes.
|
|
|
* \return ZOK on success or one of the following errcodes on failure:
|
|
|
* ZBADARGUMENTS - invalid input parameters
|
|
|
- * ZINVALIDSTATE - zhandle state is either SESSION_EXPIRED_STATE or AUTH_FAILED_STATE
|
|
|
+ * ZINVALIDSTATE - zhandle state is either ZOO_SESSION_EXPIRED_STATE or ZOO_AUTH_FAILED_STATE
|
|
|
* ZMARSHALLINGERROR - failed to marshall a request; possibly, out of memory
|
|
|
*/
|
|
|
ZOOAPI int zoo_awexists(zhandle_t *zh, const char *path,
|
|
@@ -650,7 +650,7 @@ ZOOAPI int zoo_awexists(zhandle_t *zh, const char *path,
|
|
|
* the function completes.
|
|
|
* \return ZOK on success or one of the following errcodes on failure:
|
|
|
* ZBADARGUMENTS - invalid input parameters
|
|
|
- * ZINVALIDSTATE - zhandle state is either in SESSION_EXPIRED_STATE or AUTH_FAILED_STATE
|
|
|
+ * ZINVALIDSTATE - zhandle state is either in ZOO_SESSION_EXPIRED_STATE or ZOO_AUTH_FAILED_STATE
|
|
|
* ZMARSHALLINGERROR - failed to marshall a request; possibly, out of memory
|
|
|
*/
|
|
|
ZOOAPI int zoo_aget(zhandle_t *zh, const char *path, int watch,
|
|
@@ -679,7 +679,7 @@ ZOOAPI int zoo_aget(zhandle_t *zh, const char *path, int watch,
|
|
|
* the function completes.
|
|
|
* \return ZOK on success or one of the following errcodes on failure:
|
|
|
* ZBADARGUMENTS - invalid input parameters
|
|
|
- * ZINVALIDSTATE - zhandle state is either in SESSION_EXPIRED_STATE or AUTH_FAILED_STATE
|
|
|
+ * ZINVALIDSTATE - zhandle state is either in ZOO_SESSION_EXPIRED_STATE or ZOO_AUTH_FAILED_STATE
|
|
|
* ZMARSHALLINGERROR - failed to marshall a request; possibly, out of memory
|
|
|
*/
|
|
|
ZOOAPI int zoo_awget(zhandle_t *zh, const char *path,
|
|
@@ -709,7 +709,7 @@ ZOOAPI int zoo_awget(zhandle_t *zh, const char *path,
|
|
|
* the function completes.
|
|
|
* \return ZOK on success or one of the following errcodes on failure:
|
|
|
* ZBADARGUMENTS - invalid input parameters
|
|
|
- * ZINVALIDSTATE - zhandle state is either SESSION_EXPIRED_STATE or AUTH_FAILED_STATE
|
|
|
+ * ZINVALIDSTATE - zhandle state is either ZOO_SESSION_EXPIRED_STATE or ZOO_AUTH_FAILED_STATE
|
|
|
* ZMARSHALLINGERROR - failed to marshall a request; possibly, out of memory
|
|
|
*/
|
|
|
ZOOAPI int zoo_aset(zhandle_t *zh, const char *path, const char *buffer, int buflen,
|
|
@@ -732,7 +732,7 @@ ZOOAPI int zoo_aset(zhandle_t *zh, const char *path, const char *buffer, int buf
|
|
|
* the function completes.
|
|
|
* \return ZOK on success or one of the following errcodes on failure:
|
|
|
* ZBADARGUMENTS - invalid input parameters
|
|
|
- * ZINVALIDSTATE - zhandle state is either SESSION_EXPIRED_STATE or AUTH_FAILED_STATE
|
|
|
+ * ZINVALIDSTATE - zhandle state is either ZOO_SESSION_EXPIRED_STATE or ZOO_AUTH_FAILED_STATE
|
|
|
* ZMARSHALLINGERROR - failed to marshall a request; possibly, out of memory
|
|
|
*/
|
|
|
ZOOAPI int zoo_aget_children(zhandle_t *zh, const char *path, int watch,
|
|
@@ -761,7 +761,7 @@ ZOOAPI int zoo_aget_children(zhandle_t *zh, const char *path, int watch,
|
|
|
* the function completes.
|
|
|
* \return ZOK on success or one of the following errcodes on failure:
|
|
|
* ZBADARGUMENTS - invalid input parameters
|
|
|
- * ZINVALIDSTATE - zhandle state is either SESSION_EXPIRED_STATE or AUTH_FAILED_STATE
|
|
|
+ * ZINVALIDSTATE - zhandle state is either ZOO_SESSION_EXPIRED_STATE or ZOO_AUTH_FAILED_STATE
|
|
|
* ZMARSHALLINGERROR - failed to marshall a request; possibly, out of memory
|
|
|
*/
|
|
|
ZOOAPI int zoo_awget_children(zhandle_t *zh, const char *path,
|
|
@@ -783,7 +783,7 @@ ZOOAPI int zoo_awget_children(zhandle_t *zh, const char *path,
|
|
|
* the function completes.
|
|
|
* \return ZOK on success or one of the following errcodes on failure:
|
|
|
* ZBADARGUMENTS - invalid input parameters
|
|
|
- * ZINVALIDSTATE - zhandle state is either SESSION_EXPIRED_STATE or AUTH_FAILED_STATE
|
|
|
+ * ZINVALIDSTATE - zhandle state is either ZOO_SESSION_EXPIRED_STATE or ZOO_AUTH_FAILED_STATE
|
|
|
* ZMARSHALLINGERROR - failed to marshall a request; possibly, out of memory
|
|
|
*/
|
|
|
|
|
@@ -806,7 +806,7 @@ ZOOAPI int zoo_async(zhandle_t *zh, const char *path,
|
|
|
* the function completes.
|
|
|
* \return ZOK on success or one of the following errcodes on failure:
|
|
|
* ZBADARGUMENTS - invalid input parameters
|
|
|
- * ZINVALIDSTATE - zhandle state is either SESSION_EXPIRED_STATE or AUTH_FAILED_STATE
|
|
|
+ * ZINVALIDSTATE - zhandle state is either ZOO_SESSION_EXPIRED_STATE or ZOO_AUTH_FAILED_STATE
|
|
|
* ZMARSHALLINGERROR - failed to marshall a request; possibly, out of memory
|
|
|
*/
|
|
|
ZOOAPI int zoo_aget_acl(zhandle_t *zh, const char *path, acl_completion_t completion,
|
|
@@ -831,7 +831,7 @@ ZOOAPI int zoo_aget_acl(zhandle_t *zh, const char *path, acl_completion_t comple
|
|
|
* the function completes.
|
|
|
* \return ZOK on success or one of the following errcodes on failure:
|
|
|
* ZBADARGUMENTS - invalid input parameters
|
|
|
- * ZINVALIDSTATE - zhandle state is either SESSION_EXPIRED_STATE or AUTH_FAILED_STATE
|
|
|
+ * ZINVALIDSTATE - zhandle state is either ZOO_SESSION_EXPIRED_STATE or ZOO_AUTH_FAILED_STATE
|
|
|
* ZMARSHALLINGERROR - failed to marshall a request; possibly, out of memory
|
|
|
*/
|
|
|
ZOOAPI int zoo_aset_acl(zhandle_t *zh, const char *path, int version,
|
|
@@ -853,7 +853,7 @@ ZOOAPI const char* zerror(int c);
|
|
|
* the scheme parameter to authenticate the client connection. If the
|
|
|
* authentication request has failed:
|
|
|
* - the server connection is dropped
|
|
|
- * - the watcher is called with the AUTH_FAILED_STATE value as the state
|
|
|
+ * - the watcher is called with the ZOO_AUTH_FAILED_STATE value as the state
|
|
|
* parameter.
|
|
|
* \param zh the zookeeper handle obtained by a call to \ref zookeeper_init
|
|
|
* \param scheme the id of authentication scheme. Natively supported:
|
|
@@ -868,7 +868,7 @@ ZOOAPI const char* zerror(int c);
|
|
|
* function completes.
|
|
|
* \return ZOK on success or one of the following errcodes on failure:
|
|
|
* ZBADARGUMENTS - invalid input parameters
|
|
|
- * ZINVALIDSTATE - zhandle state is either SESSION_EXPIRED_STATE or AUTH_FAILED_STATE
|
|
|
+ * ZINVALIDSTATE - zhandle state is either ZOO_SESSION_EXPIRED_STATE or ZOO_AUTH_FAILED_STATE
|
|
|
* ZMARSHALLINGERROR - failed to marshall a request; possibly, out of memory
|
|
|
* ZSYSTEMERROR - a system error occured
|
|
|
*/
|
|
@@ -915,8 +915,8 @@ ZOOAPI void zoo_deterministic_conn_order(int yesOrNo);
|
|
|
*
|
|
|
* This method will create a node in ZooKeeper. A node can only be created if
|
|
|
* it does not already exists. The Create Flags affect the creation of nodes.
|
|
|
- * If EPHEMERAL flag is set, the node will automatically get removed if the
|
|
|
- * client session goes away. If the SEQUENCE flag is set, a unique
|
|
|
+ * If ZOO_EPHEMERAL flag is set, the node will automatically get removed if the
|
|
|
+ * client session goes away. If the ZOO_SEQUENCE flag is set, a unique
|
|
|
* monotonically increasing sequence number is appended to the path name.
|
|
|
*
|
|
|
* \param zh the zookeeper handle obtained by a call to \ref zookeeper_init
|
|
@@ -929,7 +929,7 @@ ZOOAPI void zoo_deterministic_conn_order(int yesOrNo);
|
|
|
* \param flags this parameter can be set to 0 for normal create or an OR
|
|
|
* of the Create Flags
|
|
|
* \param realpath the real path that is created (this might be different than the
|
|
|
- * path to create because of the SEQUENCE flag.
|
|
|
+ * path to create because of the ZOO_SEQUENCE flag.
|
|
|
* \param the maximum length of real path you would want.
|
|
|
* \return one of the following codes are returned:
|
|
|
* ZOK operation completed succesfully
|
|
@@ -938,7 +938,7 @@ ZOOAPI void zoo_deterministic_conn_order(int yesOrNo);
|
|
|
* ZNOAUTH the client does not have permission.
|
|
|
* ZNOCHILDRENFOREPHEMERALS cannot create children of ephemeral nodes.
|
|
|
* ZBADARGUMENTS - invalid input parameters
|
|
|
- * ZINVALIDSTATE - zhandle state is either SESSION_EXPIRED_STATE or AUTH_FAILED_STATE
|
|
|
+ * ZINVALIDSTATE - zhandle state is either ZOO_SESSION_EXPIRED_STATE or ZOO_AUTH_FAILED_STATE
|
|
|
* ZMARSHALLINGERROR - failed to marshall a request; possibly, out of memory
|
|
|
*/
|
|
|
ZOOAPI int zoo_create(zhandle_t *zh, const char *path, const char *value,
|
|
@@ -961,7 +961,7 @@ ZOOAPI int zoo_create(zhandle_t *zh, const char *path, const char *value,
|
|
|
* ZBADVERSION expected version does not match actual version.
|
|
|
* ZNOTEMPTY children are present; node cannot be deleted.
|
|
|
* ZBADARGUMENTS - invalid input parameters
|
|
|
- * ZINVALIDSTATE - zhandle state is either SESSION_EXPIRED_STATE or AUTH_FAILED_STATE
|
|
|
+ * ZINVALIDSTATE - zhandle state is either ZOO_SESSION_EXPIRED_STATE or ZOO_AUTH_FAILED_STATE
|
|
|
* ZMARSHALLINGERROR - failed to marshall a request; possibly, out of memory
|
|
|
*/
|
|
|
ZOOAPI int zoo_delete(zhandle_t *zh, const char *path, int version);
|
|
@@ -982,7 +982,7 @@ ZOOAPI int zoo_delete(zhandle_t *zh, const char *path, int version);
|
|
|
* ZNONODE the node does not exist.
|
|
|
* ZNOAUTH the client does not have permission.
|
|
|
* ZBADARGUMENTS - invalid input parameters
|
|
|
- * ZINVALIDSTATE - zhandle state is either SESSION_EXPIRED_STATE or AUTH_FAILED_STATE
|
|
|
+ * ZINVALIDSTATE - zhandle state is either ZOO_SESSION_EXPIRED_STATE or ZOO_AUTH_FAILED_STATE
|
|
|
* ZMARSHALLINGERROR - failed to marshall a request; possibly, out of memory
|
|
|
*/
|
|
|
ZOOAPI int zoo_exists(zhandle_t *zh, const char *path, int watch, struct Stat *stat);
|
|
@@ -1008,7 +1008,7 @@ ZOOAPI int zoo_exists(zhandle_t *zh, const char *path, int watch, struct Stat *s
|
|
|
* ZNONODE the node does not exist.
|
|
|
* ZNOAUTH the client does not have permission.
|
|
|
* ZBADARGUMENTS - invalid input parameters
|
|
|
- * ZINVALIDSTATE - zhandle state is either SESSION_EXPIRED_STATE or AUTH_FAILED_STATE
|
|
|
+ * ZINVALIDSTATE - zhandle state is either ZOO_SESSION_EXPIRED_STATE or ZOO_AUTH_FAILED_STATE
|
|
|
* ZMARSHALLINGERROR - failed to marshall a request; possibly, out of memory
|
|
|
*/
|
|
|
ZOOAPI int zoo_wexists(zhandle_t *zh, const char *path,
|
|
@@ -1031,7 +1031,7 @@ ZOOAPI int zoo_wexists(zhandle_t *zh, const char *path,
|
|
|
* ZNONODE the node does not exist.
|
|
|
* ZNOAUTH the client does not have permission.
|
|
|
* ZBADARGUMENTS - invalid input parameters
|
|
|
- * ZINVALIDSTATE - zhandle state is either in SESSION_EXPIRED_STATE or AUTH_FAILED_STATE
|
|
|
+ * ZINVALIDSTATE - zhandle state is either in ZOO_SESSION_EXPIRED_STATE or ZOO_AUTH_FAILED_STATE
|
|
|
* ZMARSHALLINGERROR - failed to marshall a request; possibly, out of memory
|
|
|
*/
|
|
|
ZOOAPI int zoo_get(zhandle_t *zh, const char *path, int watch, char *buffer,
|
|
@@ -1060,7 +1060,7 @@ ZOOAPI int zoo_get(zhandle_t *zh, const char *path, int watch, char *buffer,
|
|
|
* ZNONODE the node does not exist.
|
|
|
* ZNOAUTH the client does not have permission.
|
|
|
* ZBADARGUMENTS - invalid input parameters
|
|
|
- * ZINVALIDSTATE - zhandle state is either in SESSION_EXPIRED_STATE or AUTH_FAILED_STATE
|
|
|
+ * ZINVALIDSTATE - zhandle state is either in ZOO_SESSION_EXPIRED_STATE or ZOO_AUTH_FAILED_STATE
|
|
|
* ZMARSHALLINGERROR - failed to marshall a request; possibly, out of memory
|
|
|
*/
|
|
|
ZOOAPI int zoo_wget(zhandle_t *zh, const char *path,
|
|
@@ -1084,7 +1084,7 @@ ZOOAPI int zoo_wget(zhandle_t *zh, const char *path,
|
|
|
* ZNOAUTH the client does not have permission.
|
|
|
* ZBADVERSION expected version does not match actual version.
|
|
|
* ZBADARGUMENTS - invalid input parameters
|
|
|
- * ZINVALIDSTATE - zhandle state is either SESSION_EXPIRED_STATE or AUTH_FAILED_STATE
|
|
|
+ * ZINVALIDSTATE - zhandle state is either ZOO_SESSION_EXPIRED_STATE or ZOO_AUTH_FAILED_STATE
|
|
|
* ZMARSHALLINGERROR - failed to marshall a request; possibly, out of memory
|
|
|
*/
|
|
|
ZOOAPI int zoo_set(zhandle_t *zh, const char *path, const char *buffer, int buflen,
|
|
@@ -1105,7 +1105,7 @@ ZOOAPI int zoo_set(zhandle_t *zh, const char *path, const char *buffer, int bufl
|
|
|
* ZNONODE the node does not exist.
|
|
|
* ZNOAUTH the client does not have permission.
|
|
|
* ZBADARGUMENTS - invalid input parameters
|
|
|
- * ZINVALIDSTATE - zhandle state is either SESSION_EXPIRED_STATE or AUTH_FAILED_STATE
|
|
|
+ * ZINVALIDSTATE - zhandle state is either ZOO_SESSION_EXPIRED_STATE or ZOO_AUTH_FAILED_STATE
|
|
|
* ZMARSHALLINGERROR - failed to marshall a request; possibly, out of memory
|
|
|
*/
|
|
|
ZOOAPI int zoo_get_children(zhandle_t *zh, const char *path, int watch,
|
|
@@ -1131,7 +1131,7 @@ ZOOAPI int zoo_get_children(zhandle_t *zh, const char *path, int watch,
|
|
|
* ZNONODE the node does not exist.
|
|
|
* ZNOAUTH the client does not have permission.
|
|
|
* ZBADARGUMENTS - invalid input parameters
|
|
|
- * ZINVALIDSTATE - zhandle state is either SESSION_EXPIRED_STATE or AUTH_FAILED_STATE
|
|
|
+ * ZINVALIDSTATE - zhandle state is either ZOO_SESSION_EXPIRED_STATE or ZOO_AUTH_FAILED_STATE
|
|
|
* ZMARSHALLINGERROR - failed to marshall a request; possibly, out of memory
|
|
|
*/
|
|
|
ZOOAPI int zoo_wget_children(zhandle_t *zh, const char *path,
|
|
@@ -1151,7 +1151,7 @@ ZOOAPI int zoo_wget_children(zhandle_t *zh, const char *path,
|
|
|
* ZNONODE the node does not exist.
|
|
|
* ZNOAUTH the client does not have permission.
|
|
|
* ZBADARGUMENTS - invalid input parameters
|
|
|
- * ZINVALIDSTATE - zhandle state is either SESSION_EXPIRED_STATE or AUTH_FAILED_STATE
|
|
|
+ * ZINVALIDSTATE - zhandle state is either ZOO_SESSION_EXPIRED_STATE or ZOO_AUTH_FAILED_STATE
|
|
|
* ZMARSHALLINGERROR - failed to marshall a request; possibly, out of memory
|
|
|
*/
|
|
|
ZOOAPI int zoo_get_acl(zhandle_t *zh, const char *path, struct ACL_vector *acl,
|
|
@@ -1172,7 +1172,7 @@ ZOOAPI int zoo_get_acl(zhandle_t *zh, const char *path, struct ACL_vector *acl,
|
|
|
* ZINVALIDACL invalid ACL specified
|
|
|
* ZBADVERSION expected version does not match actual version.
|
|
|
* ZBADARGUMENTS - invalid input parameters
|
|
|
- * ZINVALIDSTATE - zhandle state is either SESSION_EXPIRED_STATE or AUTH_FAILED_STATE
|
|
|
+ * ZINVALIDSTATE - zhandle state is either ZOO_SESSION_EXPIRED_STATE or ZOO_AUTH_FAILED_STATE
|
|
|
* ZMARSHALLINGERROR - failed to marshall a request; possibly, out of memory
|
|
|
*/
|
|
|
ZOOAPI int zoo_set_acl(zhandle_t *zh, const char *path, int version,
|