memcache/request.h
changeset 41 540737bf6bac
parent 39 0e21a65074a6
child 42 0e503189af2f
--- a/memcache/request.h	Wed Aug 27 10:13:38 2008 +0300
+++ b/memcache/request.h	Wed Aug 27 21:30:32 2008 +0300
@@ -10,9 +10,13 @@
     // the memcache context that we belong to
     struct memcache *mc;
 
+    // the command to execute
+    enum memcache_command cmd_type;
+
     // our key/obj
     struct memcache_key key;
-    struct memcache_obj *obj;
+    struct memcache_obj obj;
+    struct memcache_buf buf;
 
     // our state
     enum memcache_req_state state;
@@ -30,7 +34,7 @@
 /*
  * Allocate and return a new req, or NULL if unsuccesfull.
  */
-struct memcache_req *memcache_req_alloc (struct memcache *mc, 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, void *cb_arg);
 
 
 /*