summaryrefslogtreecommitdiffstats
path: root/main.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2008-08-20 17:09:13 +0400
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2008-08-20 17:09:13 +0400
commite90352d20a0d5f615c906b7719f95599cb2aaeac (patch)
tree61c2a5a7efc21fb03b4ba9a9779af8e76e641702 /main.h
parent86fd197a95f72d09e5cccbc059829ff5f6b03b87 (diff)
downloadrspamd-e90352d20a0d5f615c906b7719f95599cb2aaeac.tar.gz
rspamd-e90352d20a0d5f615c906b7719f95599cb2aaeac.zip
* Rewrite perl module for new XS, now perl filters got only object of rspamd module that provides access to every part of message
* Add memcached access api for perl * Reorganize Makefile, add .PHONY targets * Fix memcached module as now we cannot write or read several keys in async mode
Diffstat (limited to 'main.h')
-rw-r--r--main.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/main.h b/main.h
index b2441bbe7..cb98167ae 100644
--- a/main.h
+++ b/main.h
@@ -21,6 +21,7 @@
#include "fstring.h"
#include "url.h"
+#include "memcached.h"
#include <glib.h>
#include <gmime/gmime.h>
@@ -100,6 +101,9 @@ struct worker_task {
struct in_addr from_addr;
f_str_buf_t *msg;
struct bufferevent *bev;
+ /* Memcached connection for this task */
+ memcached_ctx_t *memc_ctx;
+ unsigned memc_busy:1;
/* Number of mime parts */
int parts_count;
/* Headers */