X-Git-Url: http://git.madism.org/?p=apps%2Fpfixtools.git;a=blobdiff_plain;f=postfix.c;h=4086debbda582d9eec233e1f8900629c039014f2;hp=e9cea6af3044a7046e0212e09b9beb3bfaf15cc8;hb=c0cfcd4c414bd423e4766ff6c90850ee25c9b449;hpb=0bfa9f900af9a4f4e65f3f580056de28380b333a diff --git a/postfix.c b/postfix.c index e9cea6a..4086deb 100644 --- a/postfix.c +++ b/postfix.c @@ -33,24 +33,20 @@ * Copyright © 2006-2007 Pierre Habouzit */ -#include -#include -#include -#include -#include - -#include "job.h" +#include "postlicyd.h" #include "postfix.h" #include "buffer.h" #include "tokens.h" +#if 0 + #define ishspace(c) ((c) == ' ' || (c) == '\t') -struct jpriv_t { +typedef struct jpriv_t { buffer_t ibuf; buffer_t obuf; query_t query; -}; +} jpriv_t; static jpriv_t *postfix_jpriv_init(jpriv_t *jp) { @@ -68,11 +64,6 @@ static void postfix_jpriv_wipe(jpriv_t *jp) DO_NEW(jpriv_t, postfix_jpriv); DO_DELETE(jpriv_t, postfix_jpriv); -static void postfix_stop(job_t *job) -{ - postfix_jpriv_delete(&job->jdata); -} - static int postfix_parsejob(query_t *query) { #define PARSE_CHECK(expr, error, ...) \ @@ -195,8 +186,6 @@ static void postfix_process(job_t *job) if (job->jdata->obuf.len) return; - job_update_mode(job, JOB_READ); - /* fall through */ case JOB_READ: @@ -233,8 +222,6 @@ static void postfix_process(job_t *job) return; } - job_update_mode(job, JOB_IDLE); - /* TODO: run the scenario */ return; @@ -243,3 +230,4 @@ static void postfix_process(job_t *job) return; } } +#endif