equal
deleted
inserted
replaced
|
1 #ifndef MEMCACHE_COMMAND_H |
|
2 #define MEMCACHE_COMMAND_H |
|
3 |
|
4 #include <event2/util.h> |
|
5 #include <event2/buffer.h> |
|
6 |
|
7 #include "../memcache.h" |
|
8 |
|
9 struct memcache_cmd { |
|
10 struct evbuffer *req_header; |
|
11 }; |
|
12 |
|
13 int memcache_cmd_init (struct memcache_cmd *cmd, enum memcache_command cmd_type, struct memcache_key *key, struct memcache_obj *obj); |
|
14 |
|
15 int memcache_cmd_format_header (struct evbuffer *buf, enum memcache_command cmd_type, struct memcache_key *key, struct memcache_obj *obj); |
|
16 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); |
|
17 |
|
18 #endif /* MEMCACHE_COMMAND_H */ |