diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2009-02-13 17:03:43 +0300 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2009-02-13 17:03:43 +0300 |
commit | 39e66c09606af51a877a672ba14a87ff984082ae (patch) | |
tree | 5cea414bb2dfd7afabd03c24c7903af7162df030 /src/perl.h | |
parent | 6c8fc71eafb0f0bb069dba703c805a5247c917c7 (diff) | |
download | rspamd-39e66c09606af51a877a672ba14a87ff984082ae.tar.gz rspamd-39e66c09606af51a877a672ba14a87ff984082ae.zip |
* Init perl and do all perl specific operations from the single place in code
* Push objects correctly to stack (by blessing them and making hash reference)
Diffstat (limited to 'src/perl.h')
-rw-r--r-- | src/perl.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/perl.h b/src/perl.h index 9a37634e3..7aabe1895 100644 --- a/src/perl.h +++ b/src/perl.h @@ -5,8 +5,19 @@ #include <glib.h> #include "memcached.h" +#include <EXTERN.h> /* from the Perl distribution */ +#include <perl.h> /* from the Perl distribution */ + +#ifndef PERL_IMPLICIT_CONTEXT +#undef dTHXa +#define dTHXa(a) +#endif + struct uri; struct worker_task; +struct config_file; + +void init_perl_filters (struct config_file *cfg); int perl_call_header_filter (const char *function, struct worker_task *task); int perl_call_mime_filter (const char *function, struct worker_task *task); |