Use fds
This commit is contained in:
parent
dab76f2e8a
commit
1f5e47bc90
1 changed files with 3 additions and 2 deletions
|
@ -3,7 +3,7 @@
|
||||||
* (C)2005, Dan Ponte
|
* (C)2005, Dan Ponte
|
||||||
* BSDL w/ advert.
|
* 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 <pcre.h> /* fugly, I know... */
|
#include <pcre.h> /* fugly, I know... */
|
||||||
#define VERSION "0.1"
|
#define VERSION "0.1"
|
||||||
#define LOGFILE "/var/log/phoned.log"
|
#define LOGFILE "/var/log/phoned.log"
|
||||||
|
@ -106,6 +106,7 @@ typedef struct si_t {
|
||||||
states_t st;
|
states_t st;
|
||||||
short freeit;
|
short freeit;
|
||||||
FILE* fpo;
|
FILE* fpo;
|
||||||
|
int fd;
|
||||||
} state_info_t;
|
} state_info_t;
|
||||||
|
|
||||||
#ifdef HAVE_INET_INCS
|
#ifdef HAVE_INET_INCS
|
||||||
|
@ -144,4 +145,4 @@ void check_condition(cid_t* cid);
|
||||||
void *modem_io(void *k);
|
void *modem_io(void *k);
|
||||||
void give_me_modem(char* str);
|
void give_me_modem(char* str);
|
||||||
char *parse_command(const char *cmd, short *cont, state_info_t *s);
|
char *parse_command(const char *cmd, short *cont, state_info_t *s);
|
||||||
void begin_dialogue(FILE* fp);
|
void begin_dialogue(FILE* fp, int fd);
|
||||||
|
|
Loading…
Reference in a new issue