From abb1fdd8463ef216893b05354e501b44c6930d77 Mon Sep 17 00:00:00 2001 From: dcp1990 Date: Sat, 18 Jun 2005 20:13:05 +0000 Subject: [PATCH] DB backend started --- include/phoned.h | 3 ++- phoned/Makefile | 9 +++++---- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/include/phoned.h b/include/phoned.h index 0ab54bc..a914d00 100644 --- a/include/phoned.h +++ b/include/phoned.h @@ -3,7 +3,7 @@ * (C)2005, Dan Ponte * BSDL w/ advert. */ -/* $Amigan: phoned/include/phoned.h,v 1.14 2005/06/18 03:10:45 dcp1990 Exp $ */ +/* $Amigan: phoned/include/phoned.h,v 1.15 2005/06/18 20:13:05 dcp1990 Exp $ */ #include /* fugly, I know... */ #define VERSION "0.1" #define LOGFILE "/var/log/phoned.log" @@ -162,6 +162,7 @@ void *modem_io(void *k); void give_me_modem(char* str); char *parse_command(const char *cmd, short *cont, state_info_t *s); void begin_dialogue(FILE* fp, int fd); +short db_init(char* dbfilename); /* old stuff... void modem_pickup(void); void modem_hangup(void); diff --git a/phoned/Makefile b/phoned/Makefile index 296bec5..9e38ef9 100644 --- a/phoned/Makefile +++ b/phoned/Makefile @@ -1,15 +1,16 @@ # cnd Makefile # (C)2005, Dan Ponte -# $Amigan: phoned/phoned/Makefile,v 1.11 2005/06/18 03:10:55 dcp1990 Exp $ +# $Amigan: phoned/phoned/Makefile,v 1.12 2005/06/18 20:13:06 dcp1990 Exp $ include ../global.mk # basic stuff. we append for a reason. CPPFLAGS+=-I../include -DDEBUG -DYY_NO_UNPUT CFLAGS+=-g -Wall -W -ansi ${CPPFLAGS} -pthread -LDFLAGS+=-lutil -lpcre +LDFLAGS+=-lutil -lpcre -lsqlite3 # keep these up to date. MAINBIN=phoned -SRCS=main.c init.c log.c cfg.c socket.c y.tab.c lex.yy.c signals.c cid.c modem.c notify.c filters.c remote.c -OBJS=main.o init.o log.o cfg.o socket.o y.tab.o lex.yy.o signals.o cid.o modem.o notify.o filters.o remote.o modems/libmodems.a +SRCS=main.c init.c log.c cfg.c socket.c y.tab.c lex.yy.c signals.c cid.c modem.c notify.c filters.c remote.c db.c +OBJS=main.o init.o log.o cfg.o socket.o y.tab.o lex.yy.o signals.o cid.o modem.o notify.o filters.o remote.o db.o \ + modems/libmodems.a OHDRS=y.tab.h CLEANFILES=y.tab.c y.tab.h lex.yy.c LEX=lex