projects
/
m6w6
/
libmemcached
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
Moved response code to use a switch/case (instead if giant if/else)
[m6w6/libmemcached]
/
libmemcached
/
common.h
diff --git
a/libmemcached/common.h
b/libmemcached/common.h
index ea2c557498798ba724895df14452da89851daaf1..ff60c232225c54296e0527e0f0b36fc80433ccf5 100644
(file)
--- a/
libmemcached/common.h
+++ b/
libmemcached/common.h
@@
-22,11
+22,11
@@
#include <sys/un.h>
#include <netinet/tcp.h>
#include <sys/un.h>
#include <netinet/tcp.h>
-#if TIME_WITH_SYS_TIME
+#if
def
TIME_WITH_SYS_TIME
# include <sys/time.h>
# include <time.h>
#else
# include <sys/time.h>
# include <time.h>
#else
-# if HAVE_SYS_TIME_H
+# if
def
HAVE_SYS_TIME_H
# include <sys/time.h>
# else
# include <time.h>
# include <sys/time.h>
# else
# include <time.h>
@@
-81,7
+81,7
@@
typedef enum {
MEM_VERIFY_KEY= (1 << 10),
/* 11 used for weighted ketama */
MEM_KETAMA_WEIGHTED= (1 << 11),
MEM_VERIFY_KEY= (1 << 10),
/* 11 used for weighted ketama */
MEM_KETAMA_WEIGHTED= (1 << 11),
- MEM_BINARY_PROTOCOL= (1 << 12)
,
+ MEM_BINARY_PROTOCOL= (1 << 12)
} memcached_flags;
/* Hashing algo */
} memcached_flags;
/* Hashing algo */
@@
-118,8
+118,13
@@
memcached_return run_distribution(memcached_st *ptr);
uint32_t generate_hash_value(const char *key, size_t key_length, memcached_hash hash_algorithm);
uint32_t generate_hash(memcached_st *ptr, const char *key, size_t key_length);
uint32_t generate_hash_value(const char *key, size_t key_length, memcached_hash hash_algorithm);
uint32_t generate_hash(memcached_st *ptr, const char *key, size_t key_length);
+memcached_return memcached_server_remove(memcached_server_st *st_ptr);
extern uint64_t ntohll(uint64_t);
extern uint64_t htonll(uint64_t);
extern uint64_t ntohll(uint64_t);
extern uint64_t htonll(uint64_t);
+void host_reset(memcached_st *ptr, memcached_server_st *host,
+ char *hostname, unsigned int port,
+ memcached_connection type);
+
#endif /* __COMMON_H__ */
#endif /* __COMMON_H__ */