memcached.h | memcached.h | |||
---|---|---|---|---|
skipping to change at line 40 | skipping to change at line 40 | |||
/* These are Private and should not be used by applications */ | /* These are Private and should not be used by applications */ | |||
#define MEMCACHED_VERSION_STRING_LENGTH 12 | #define MEMCACHED_VERSION_STRING_LENGTH 12 | |||
/* string value */ | /* string value */ | |||
struct memcached_continuum_item_st { | struct memcached_continuum_item_st { | |||
uint32_t index; | uint32_t index; | |||
uint32_t value; | uint32_t value; | |||
}; | }; | |||
#define LIBMEMCACHED_VERSION_STRING "0.21" | #define LIBMEMCACHED_VERSION_STRING "0.22" | |||
struct memcached_stat_st { | struct memcached_stat_st { | |||
uint32_t pid; | uint32_t pid; | |||
uint32_t uptime; | uint32_t uptime; | |||
uint32_t threads; | uint32_t threads; | |||
uint32_t time; | uint32_t time; | |||
uint32_t pointer_size; | uint32_t pointer_size; | |||
uint32_t rusage_user_seconds; | uint32_t rusage_user_seconds; | |||
uint32_t rusage_user_microseconds; | uint32_t rusage_user_microseconds; | |||
uint32_t rusage_system_seconds; | uint32_t rusage_system_seconds; | |||
End of changes. 1 change blocks. | ||||
1 lines changed or deleted | 1 lines changed or added | |||
memcached_string.h | memcached_string.h | |||
---|---|---|---|---|
skipping to change at line 19 | skipping to change at line 19 | |||
#ifndef __MEMCACHED_STRING_H__ | #ifndef __MEMCACHED_STRING_H__ | |||
#define __MEMCACHED_STRING_H__ | #define __MEMCACHED_STRING_H__ | |||
#ifdef __cplusplus | #ifdef __cplusplus | |||
extern "C" { | extern "C" { | |||
#endif | #endif | |||
struct memcached_string_st { | struct memcached_string_st { | |||
memcached_st *root; | memcached_st *root; | |||
memcached_allocated is_allocated; | memcached_allocated is_allocated; | |||
char *string; | ||||
char *end; | char *end; | |||
size_t current_size; | size_t current_size; | |||
size_t block_size; | size_t block_size; | |||
char *string; | ||||
}; | }; | |||
#define memcached_string_length(A) (size_t)((A)->end - (A)->string) | #define memcached_string_length(A) (size_t)((A)->end - (A)->string) | |||
#define memcached_string_set_length(A, B) (A)->end= (A)->string + B | #define memcached_string_set_length(A, B) (A)->end= (A)->string + B | |||
#define memcached_string_size(A) (A)->current_size | #define memcached_string_size(A) (A)->current_size | |||
#define memcached_string_value(A) (A)->string | #define memcached_string_value(A) (A)->string | |||
memcached_string_st *memcached_string_create(memcached_st *ptr, | memcached_string_st *memcached_string_create(memcached_st *ptr, | |||
memcached_string_st *string, | memcached_string_st *string, | |||
size_t initial_size); | size_t initial_size); | |||
End of changes. 2 change blocks. | ||||
1 lines changed or deleted | 1 lines changed or added | |||