-Subproject commit e004bf6f17fcb85beed1c88a22f185a70448dcc9
+Subproject commit 4610ee14a97eaca12045fd273a3b380281080116
include ../../config.mak
+SRCS = connection.c pgqd.c maint.c ticker.c retry.c
+LOCAL_HDRS = connection.h pgqd.h
+
USUAL_DIR = ../../lib
USUAL_OBJDIR = .
-USUAL_MODULES = logging daemon event string time cfparser fileutil \
- socket compat heap-impl base mbuf
+USUAL_LOCAL_SRCS = $(SRCS) connection.h pgqd.h
include $(USUAL_DIR)/Setup.mk
PROGRAM = pgqd
-SRCS = connection.c pgqd.c maint.c ticker.c retry.c
-HDRS = connection.h pgqd.h $(USUAL_HDRS)
+HDRS = $(LOCAL_HDRS) $(USUAL_HDRS)
PG_INCDIR = $(shell $(PG_CONFIG) --includedir)
PG_LIBDIR = $(shell $(PG_CONFIG) --libdir)
#include "connection.h"
#include <sys/types.h>
-#include <unistd.h>
#include <stdarg.h>
#include <math.h>
#include "pgqd.h"
#include <getopt.h>
-#include <errno.h>
-#include <signal.h>
#include <usual/event.h>
#include <usual/string.h>
-#include <usual/alloc.h>
+#include <usual/signal.h>
#include <usual/daemon.h>
#include <usual/cfparser.h>
#include <usual/time.h>
{ NULL },
};
-static void *get_cf_target(void *arg) { return &cf; }
+static void *get_cf_target(void *arg, const char *name) { return &cf; }
static const struct CfSect conf_sects[] = {
{ "pgqd", get_cf_target, conf_params },
#ifndef __PGQD_H__
#define __PGQD_H__
-#include <sys/types.h>
-#include <unistd.h>
-#include <stdlib.h>
#include <string.h>
#define Assert(x)
#include <usual/list.h>
-#include <usual/alloc.h>
#include <usual/statlist.h>
#include <usual/logging.h>