projects
/
awesomized
/
libmemcached
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
Refactor: move ntohll to a separate helper library
[awesomized/libmemcached]
/
libmemcached
/
memcached_storage.h
diff --git
a/libmemcached/memcached_storage.h
b/libmemcached/memcached_storage.h
index 98211f6baf8cc85f0a5d5439e9ec8d7b00a27526..834401a69e75fd7d3caa2c94ffddbf1d69505677 100644
(file)
--- a/
libmemcached/memcached_storage.h
+++ b/
libmemcached/memcached_storage.h
@@
-9,79
+9,93
@@
#ifndef __MEMCACHED_STORAGE_H__
#define __MEMCACHED_STORAGE_H__
#ifndef __MEMCACHED_STORAGE_H__
#define __MEMCACHED_STORAGE_H__
+#include "libmemcached/memcached_types.h"
+
#ifdef __cplusplus
extern "C" {
#endif
/* All of the functions for adding data to the server */
#ifdef __cplusplus
extern "C" {
#endif
/* All of the functions for adding data to the server */
-memcached_return memcached_set(memcached_st *ptr, char *key, size_t key_length,
- char *value, size_t value_length,
+LIBMEMCACHED_API
+memcached_return memcached_set(memcached_st *ptr, const char *key, size_t key_length,
+ const char *value, size_t value_length,
time_t expiration,
uint32_t flags);
time_t expiration,
uint32_t flags);
-memcached_return memcached_add(memcached_st *ptr, char *key, size_t key_length,
- char *value, size_t value_length,
+LIBMEMCACHED_API
+memcached_return memcached_add(memcached_st *ptr, const char *key, size_t key_length,
+ const char *value, size_t value_length,
time_t expiration,
uint32_t flags);
time_t expiration,
uint32_t flags);
-memcached_return memcached_replace(memcached_st *ptr, char *key, size_t key_length,
- char *value, size_t value_length,
+LIBMEMCACHED_API
+memcached_return memcached_replace(memcached_st *ptr, const char *key, size_t key_length,
+ const char *value, size_t value_length,
time_t expiration,
uint32_t flags);
time_t expiration,
uint32_t flags);
+LIBMEMCACHED_API
memcached_return memcached_append(memcached_st *ptr,
memcached_return memcached_append(memcached_st *ptr,
- char *key, size_t key_length,
- char *value, size_t value_length,
+ c
onst c
har *key, size_t key_length,
+ c
onst c
har *value, size_t value_length,
time_t expiration,
uint32_t flags);
time_t expiration,
uint32_t flags);
+LIBMEMCACHED_API
memcached_return memcached_prepend(memcached_st *ptr,
memcached_return memcached_prepend(memcached_st *ptr,
- char *key, size_t key_length,
- char *value, size_t value_length,
+ c
onst c
har *key, size_t key_length,
+ c
onst c
har *value, size_t value_length,
time_t expiration,
uint32_t flags);
time_t expiration,
uint32_t flags);
+LIBMEMCACHED_API
memcached_return memcached_cas(memcached_st *ptr,
memcached_return memcached_cas(memcached_st *ptr,
- char *key, size_t key_length,
- char *value, size_t value_length,
+ c
onst c
har *key, size_t key_length,
+ c
onst c
har *value, size_t value_length,
time_t expiration,
uint32_t flags,
uint64_t cas);
time_t expiration,
uint32_t flags,
uint64_t cas);
+LIBMEMCACHED_API
memcached_return memcached_set_by_key(memcached_st *ptr,
memcached_return memcached_set_by_key(memcached_st *ptr,
- char *master_key, size_t master_key_length,
- char *key, size_t key_length,
- char *value, size_t value_length,
+ c
onst c
har *master_key, size_t master_key_length,
+ c
onst c
har *key, size_t key_length,
+ c
onst c
har *value, size_t value_length,
time_t expiration,
uint32_t flags);
time_t expiration,
uint32_t flags);
+LIBMEMCACHED_API
memcached_return memcached_add_by_key(memcached_st *ptr,
memcached_return memcached_add_by_key(memcached_st *ptr,
- char *master_key, size_t master_key_length,
- char *key, size_t key_length,
- char *value, size_t value_length,
+ c
onst c
har *master_key, size_t master_key_length,
+ c
onst c
har *key, size_t key_length,
+ c
onst c
har *value, size_t value_length,
time_t expiration,
uint32_t flags);
time_t expiration,
uint32_t flags);
+LIBMEMCACHED_API
memcached_return memcached_replace_by_key(memcached_st *ptr,
memcached_return memcached_replace_by_key(memcached_st *ptr,
- char *master_key, size_t master_key_length,
- char *key, size_t key_length,
- char *value, size_t value_length,
+ c
onst c
har *master_key, size_t master_key_length,
+ c
onst c
har *key, size_t key_length,
+ c
onst c
har *value, size_t value_length,
time_t expiration,
uint32_t flags);
time_t expiration,
uint32_t flags);
+LIBMEMCACHED_API
memcached_return memcached_prepend_by_key(memcached_st *ptr,
memcached_return memcached_prepend_by_key(memcached_st *ptr,
- char *master_key, size_t master_key_length,
- char *key, size_t key_length,
- char *value, size_t value_length,
+ c
onst c
har *master_key, size_t master_key_length,
+ c
onst c
har *key, size_t key_length,
+ c
onst c
har *value, size_t value_length,
time_t expiration,
uint32_t flags);
time_t expiration,
uint32_t flags);
+LIBMEMCACHED_API
memcached_return memcached_append_by_key(memcached_st *ptr,
memcached_return memcached_append_by_key(memcached_st *ptr,
- char *master_key, size_t master_key_length,
- char *key, size_t key_length,
- char *value, size_t value_length,
+ c
onst c
har *master_key, size_t master_key_length,
+ c
onst c
har *key, size_t key_length,
+ c
onst c
har *value, size_t value_length,
time_t expiration,
uint32_t flags);
time_t expiration,
uint32_t flags);
+LIBMEMCACHED_API
memcached_return memcached_cas_by_key(memcached_st *ptr,
memcached_return memcached_cas_by_key(memcached_st *ptr,
- char *master_key, size_t master_key_length,
- char *key, size_t key_length,
- char *value, size_t value_length,
+ c
onst c
har *master_key, size_t master_key_length,
+ c
onst c
har *key, size_t key_length,
+ c
onst c
har *value, size_t value_length,
time_t expiration,
uint32_t flags,
uint64_t cas);
time_t expiration,
uint32_t flags,
uint64_t cas);