2 #ifndef MEMCACHED_SERVER_API_H
3 #define MEMCACHED_SERVER_API_H
6 #include <memcached/types.h>
7 #include <memcached/config_parser.h>
17 rel_time_t (*get_current_time)(void);
22 rel_time_t (*realtime)(
const time_t exptime);
27 time_t (*abstime)(
const rel_time_t exptime);
34 const char* (*server_version)(void);
44 uint32_t (*hash)(
const void *data,
size_t size, uint32_t seed);
54 void (*shutdown)(void);
69 void *(*new_stats)(void);
70 void (*release_stats)(
void*);
75 void (*evicting)(
const void *cookie,
91 int (*get_socket_fd)(
const void *cookie);
114 void (*store_engine_specific)(
const void *cookie,
void *engine_data);
124 void *(*get_engine_specific)(
const void *cookie);
131 void (*notify_io_complete)(
const void *cookie,
132 ENGINE_ERROR_CODE status);
142 void (*set_tap_nack_mode)(
const void *cookie,
bool enable);
149 void (*reserve)(
const void *cookie);
156 void (*release)(
const void *cookie);