Signed-off-by: Pierre Habouzit <madcoder@debian.org>
GENERATED = tokens.h tokens.c
postlicyd_SOURCES = common.c threads.c str.c buffer.c \
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)
postlicyd_LIBADD = -lpthread $(TC_LIBS)
postlicyd_CFLAGS = $(TC_CFLAGS)
#define DAEMON_NAME "postlicyd"
#define DAEMON_NAME "postlicyd"
-void *job_run(int fd, void *data)
-{
- close(fd);
- return NULL;
-}
-
static int main_loop(void)
{
int exitcode = EXIT_SUCCESS;
static int main_loop(void)
{
int exitcode = EXIT_SUCCESS;
- thread_launch(job_run, fd, NULL);
+ thread_launch(policy_run, fd, NULL);
#include "buffer.h"
#include "tokens.h"
#include "buffer.h"
#include "tokens.h"
+
+void *policy_run(int fd, void *data)
+{
+ close(fd);
+ return NULL;
+}
* Copyright © 2006-2007 Pierre Habouzit
*/
* Copyright © 2006-2007 Pierre Habouzit
*/
-#ifndef PFIXTOOLS_POSTFIX_H
-#define PFIXTOOLS_POSTFIX_H
+#ifndef PFIXTOOLS_POLICY_H
+#define PFIXTOOLS_POLICY_H
DO_NEW(query_t, query);
DO_DELETE(query_t, query);
DO_NEW(query_t, query);
DO_DELETE(query_t, query);
+
+void *policy_run(int fd, void *);
+