GENERATED = tokens.h tokens.c
postlicyd_SOURCES = common.c threads.c str.c buffer.c \
- greylist.c rbl.c \
- $(GENERATED) postfix.c main-postlicyd.c
+ policy.c greylist.c rbl.c \
+ $(GENERATED) main-postlicyd.c
postlicyd_LIBADD = -lpthread $(TC_LIBS)
postlicyd_CFLAGS = $(TC_CFLAGS)
#include <getopt.h>
-#include "epoll.h"
#include "threads.h"
+#include "policy.h"
#define DAEMON_NAME "postlicyd"
/* }}} */
-void *job_run(int fd, void *data)
-{
- close(fd);
- return NULL;
-}
-
static int main_loop(void)
{
int exitcode = EXIT_SUCCESS;
continue;
}
- thread_launch(job_run, fd, NULL);
+ thread_launch(policy_run, fd, NULL);
threads_join();
}
*/
#include "common.h"
-#include "postfix.h"
+#include "policy.h"
#include "buffer.h"
#include "tokens.h"
}
}
#endif
+
+void *policy_run(int fd, void *data)
+{
+ close(fd);
+ return NULL;
+}
* Copyright © 2006-2007 Pierre Habouzit
*/
-#ifndef PFIXTOOLS_POSTFIX_H
-#define PFIXTOOLS_POSTFIX_H
+#ifndef PFIXTOOLS_POLICY_H
+#define PFIXTOOLS_POLICY_H
#include <stddef.h>
DO_NEW(query_t, query);
DO_DELETE(query_t, query);
+
+void *policy_run(int fd, void *);
+
#endif