aboutsummaryrefslogtreecommitdiffstats
path: root/src/kvstorage_server.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2011-11-09 19:30:57 +0300
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2011-11-09 19:30:57 +0300
commit4e1470d50f1ece3277dec6c770c5ea74d0db10b7 (patch)
tree63e61d8a721769e0233fe860e204839c08eed91a /src/kvstorage_server.h
parentcf21ad184448908536c32495db26f97bffd3f584 (diff)
downloadrspamd-4e1470d50f1ece3277dec6c770c5ea74d0db10b7.tar.gz
rspamd-4e1470d50f1ece3277dec6c770c5ea74d0db10b7.zip
* Support redis unified protocol.
Diffstat (limited to 'src/kvstorage_server.h')
-rw-r--r--src/kvstorage_server.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/kvstorage_server.h b/src/kvstorage_server.h
index 2d4a3fa89..a7c8bd8a6 100644
--- a/src/kvstorage_server.h
+++ b/src/kvstorage_server.h
@@ -59,6 +59,8 @@ struct kvstorage_session {
rspamd_io_dispatcher_t *dispather;
enum {
KVSTORAGE_STATE_READ_CMD,
+ KVSTORAGE_STATE_READ_ARGLEN,
+ KVSTORAGE_STATE_READ_ARG,
KVSTORAGE_STATE_READ_DATA
} state;
enum {
@@ -70,6 +72,8 @@ struct kvstorage_session {
KVSTORAGE_CMD_QUIT
} command;
guint id;
+ guint argc;
+ guint argnum;
memory_pool_t *pool;
gchar *key;
struct kvstorage_config *cf;