Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

31 lines (23 sloc) 0.707 kb
#ifndef ZOOKEEPER_DEFS_H
#define ZOOKEEPER_DEFS_H 1
#ifdef ENABLE_ZOOKEEPER
#define _SKIP_ZOOKEEPER_HTONLL
#include <zookeeper.h>
#include <zookeeper_log.h>
#include <uuid/uuid.h>
#include <json/json.h>
bool mc_zookeeper_init(void);
void mc_zookeeper_shutdown(void);
void mc_zookeeper_tick(void);
/*
* field definitions for service announcement. Must match the java client.
*/
#define SD_SERVICE_NAME "serviceName"
#define SD_SERVICE_TYPE "serviceType"
#define SD_SERVICE_ID "serviceId"
#define SD_PROPERTIES "properties"
#define SD_PROP_SERVICE_SCHEME "serviceScheme"
#define SD_PROP_SERVICE_ADDRESS "serviceAddress"
#define SD_PROP_SERVICE_PORT "servicePort"
#endif
#endif /* ZOOKEEPER_DEFS_H */
Jump to Line
Something went wrong with that request. Please try again.