--- a/memcache/request.h Thu Aug 28 00:29:39 2008 +0300
+++ b/memcache/request.h Thu Aug 28 01:34:14 2008 +0300
@@ -21,6 +21,9 @@
struct memcache_obj obj;
struct memcache_buf buf;
+ // flags to indicate if we have valid obj/buf data
+ char have_obj, have_buf;
+
// our state
enum memcache_req_state state;
@@ -37,7 +40,7 @@
/*
* Allocate and return a new req, or NULL if unsuccesfull.
*/
-struct memcache_req *memcache_req_alloc (struct memcache *mc, enum memcache_command cmd_type, const struct memcache_key *key, void *cb_arg);
+struct memcache_req *memcache_req_alloc (struct memcache *mc, enum memcache_command cmd_type, const struct memcache_key *key, const struct memcache_obj *obj, const struct memcache_buf *buf, void *cb_arg);
/*
* The request has been queued.
@@ -57,7 +60,7 @@
*
* Note that no req data will not be available when this is first called, only once req_data/req_done is called.
*/
-void memcache_req_reply (struct memcache_req *req, enum memcache_reply reply_type);
+void memcache_req_recv (struct memcache_req *req, enum memcache_reply reply_type);
/*
* Some amount of reply data has been received. This may be called between the req_reply/MEMCACHE_RPL_VALUE and