#ifndef MEMCACHE_COMMAND_H
#define MEMCACHE_COMMAND_H
#include <event2/util.h>
#include <event2/buffer.h>
#include "../memcache.h"
struct memcache_cmd {
struct evbuffer *req_header;
};
int memcache_cmd_init (struct memcache_cmd *cmd, enum memcache_command cmd_type, struct memcache_key *key, struct memcache_obj *obj);
int memcache_cmd_format_header (struct evbuffer *buf, enum memcache_command cmd_type, struct memcache_key *key, struct memcache_obj *obj);
int memcache_cmd_parse_header (struct evbuffer *buf, char **header_data, enum memcache_reply *reply_type, struct memcache_key *key, struct memcache_obj *obj, int *has_data);
#endif /* MEMCACHE_COMMAND_H */