#include "config.h"
#include <assert.h>
#include <sys/types.h>
-#include <sys/socket.h>
-#include <netdb.h>
-#include <netinet/tcp.h>
#include <stdio.h>
#include <unistd.h>
#include <fcntl.h>
#include <stdlib.h>
#include <string.h>
-#include <libmemcached/protocol_handler.h>
-#include <libmemcached/byteorder.h>
+#include <libmemcachedprotocol-0.0/handler.h>
+#include <example/byteorder.h>
#include "storage.h"
static protocol_binary_response_status add_handler(const void *cookie,
const void* val,
uint32_t vallen,
uint64_t cas,
- uint64_t *result_cas) {
+ uint64_t *result_cas)
+{
(void)cookie;
protocol_binary_response_status rval= PROTOCOL_BINARY_RESPONSE_SUCCESS;
}
memcached_binary_protocol_callback_st interface_v1_impl= {
- .interface_version= 1,
+ .interface_version= MEMCACHED_PROTOCOL_HANDLER_V1,
.interface.v1= {
.add= add_handler,
.append= append_handler,