Add field for pcresize, since it changes (we use pcre_fullinfo to get it during copy_condition())
This commit is contained in:
parent
d1245a33c0
commit
6f972aaf18
1 changed files with 8 additions and 5 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.6 2005/06/12 18:51:06 dcp1990 Exp $ */
|
/* $Amigan: phoned/include/phoned.h,v 1.7 2005/06/12 22:01:09 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"
|
||||||
|
@ -82,13 +82,14 @@ typedef struct rx_t {
|
||||||
pcre* prex;
|
pcre* prex;
|
||||||
const char* error;
|
const char* error;
|
||||||
int erroroffset;
|
int erroroffset;
|
||||||
} regex_t;
|
int pcresize;
|
||||||
|
} rex_t;
|
||||||
typedef struct cnd_t {
|
typedef struct cnd_t {
|
||||||
char* filtername;
|
char* filtername;
|
||||||
char* name;
|
char* name;
|
||||||
char* number;
|
char* number;
|
||||||
regex_t namerx;
|
rex_t namerx;
|
||||||
regex_t numbrx;
|
rex_t numbrx;
|
||||||
int action;
|
int action;
|
||||||
struct af actflags;
|
struct af actflags;
|
||||||
int flags;
|
int flags;
|
||||||
|
@ -124,5 +125,7 @@ void flush_lists(void);
|
||||||
void addtoaddrs(const char* par);
|
void addtoaddrs(const char* par);
|
||||||
void modem_hread(char* cbuf);
|
void modem_hread(char* cbuf);
|
||||||
void cid_log(cid_t* c);
|
void cid_log(cid_t* c);
|
||||||
cond_t* add_condition(char* filtname, char* nameregex, char* numregex, int action);
|
cond_t* add_condition(char* filtname, char* nameregex, char* numregex, int action, int flags);
|
||||||
void free_condition(cond_t* h, short traverse);
|
void free_condition(cond_t* h, short traverse);
|
||||||
|
cond_t* copy_condition(cond_t* con);
|
||||||
|
void check_condition(cid_t* cid);
|
||||||
|
|
Loading…
Reference in a new issue