diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2008-08-20 17:09:13 +0400 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2008-08-20 17:09:13 +0400 |
commit | e90352d20a0d5f615c906b7719f95599cb2aaeac (patch) | |
tree | 61c2a5a7efc21fb03b4ba9a9779af8e76e641702 /perl.h | |
parent | 86fd197a95f72d09e5cccbc059829ff5f6b03b87 (diff) | |
download | rspamd-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 'perl.h')
-rw-r--r-- | perl.h | 14 |
1 files changed, 9 insertions, 5 deletions
@@ -3,13 +3,17 @@ #include <sys/types.h> #include <glib.h> +#include "memcached.h" struct uri; +struct worker_task; -int perl_call_header_filter (const char *function, const char *header_name, const char *header_value); -int perl_call_mime_filter (const char *function, GByteArray *content); -int perl_call_message_filter (const char *function, GByteArray *content); -int perl_call_url_filter (const char *function, struct uri *uri); -int perl_call_chain_filter (const char *function, GArray *results); +int perl_call_header_filter (const char *function, struct worker_task *task); +int perl_call_mime_filter (const char *function, struct worker_task *task); +int perl_call_message_filter (const char *function, struct worker_task *task); +int perl_call_url_filter (const char *function, struct worker_task *task); +int perl_call_chain_filter (const char *function, struct worker_task *task); + +void perl_call_memcached_callback (memcached_ctx_t *ctx, memc_error_t error, void *data); #endif |