From 1f5e47bc9048675452f290f581d5e2408301b51f Mon Sep 17 00:00:00 2001 From: dcp1990 Date: Mon, 13 Jun 2005 22:02:19 +0000 Subject: [PATCH] Use fds --- include/phoned.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/include/phoned.h b/include/phoned.h index 4ae2c68..28509a1 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.11 2005/06/13 21:04:13 dcp1990 Exp $ */ +/* $Amigan: phoned/include/phoned.h,v 1.12 2005/06/13 22:02:19 dcp1990 Exp $ */ #include /* fugly, I know... */ #define VERSION "0.1" #define LOGFILE "/var/log/phoned.log" @@ -106,6 +106,7 @@ typedef struct si_t { states_t st; short freeit; FILE* fpo; + int fd; } state_info_t; #ifdef HAVE_INET_INCS @@ -144,4 +145,4 @@ void check_condition(cid_t* cid); 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); +void begin_dialogue(FILE* fp, int fd);