X-Git-Url: http://www.privoxy.org/gitweb/?a=blobdiff_plain;f=project.h;h=50a79590f151f625161e7dac11ecde9db530e90b;hb=8ae6c857b64743285ed9e26b95fbf99965842e68;hp=22f6011862c52a9b4ec5e693c804d87ed172cf2d;hpb=d7d41a1c35e8e58d4ac38e9db718c86e5d3eb497;p=privoxy.git diff --git a/project.h b/project.h index 22f60118..50a79590 100644 --- a/project.h +++ b/project.h @@ -1,6 +1,6 @@ #ifndef _PROJECT_H #define _PROJECT_H -#define PROJECT_H_VERSION "$Id: project.h,v 1.21 2001/07/13 14:03:19 oes Exp $" +#define PROJECT_H_VERSION "$Id: project.h,v 1.23 2001/07/18 12:32:23 oes Exp $" /********************************************************************* * * File : $Source: /cvsroot/ijbswa/current/project.h,v $ @@ -36,6 +36,13 @@ * * Revisions : * $Log: project.h,v $ + * Revision 1.23 2001/07/18 12:32:23 oes + * - Added ACTION_STRING_DEANIMATE + * - moved #define freez from jcc.h to project.h + * + * Revision 1.22 2001/07/15 17:51:41 jongfoster + * Renaming #define STATIC to STATIC_PCRE + * * Revision 1.21 2001/07/13 14:03:19 oes * - Reorganized regex header inclusion and #defines to * comply to the scheme in configure.in @@ -263,6 +270,8 @@ extern "C" { #endif +#define freez(X) if(X) free(X); X = NULL + #define BUFFER_SIZE 5000 #define FOREVER 1 @@ -301,6 +310,7 @@ struct http_request char *ver; char *hostport; /* "host[:port]" */ int ssl; + char *user_agent; /* Client's User-Agent: header value */ }; /* Response generated by CGI, blocker, or error handler */ @@ -340,11 +350,11 @@ struct url_spec #endif }; +/* Constants for host part matching in URLs */ #define ANCHOR_LEFT 1 #define ANCHOR_RIGHT 2 - /* An I/O buffer */ struct iob { @@ -380,11 +390,13 @@ struct iob #define ACTION_NO_POPUPS 0x0800U #define ACTION_VANILLA_WAFER 0x1000U -#define ACTION_STRING_FROM 0 -#define ACTION_STRING_IMAGE_BLOCKER 1 -#define ACTION_STRING_REFERER 2 -#define ACTION_STRING_USER_AGENT 3 -#define ACTION_STRING_COUNT 4 +#define ACTION_STRING_DEANIMATE 0 +#define ACTION_STRING_FROM 1 +#define ACTION_STRING_IMAGE_BLOCKER 2 +#define ACTION_STRING_REFERER 3 +#define ACTION_STRING_USER_AGENT 4 +#define ACTION_STRING_COUNT 5 + #define ACTION_MULTI_ADD_HEADER 0 #define ACTION_MULTI_WAFER 1 @@ -661,6 +673,8 @@ struct forward_spec struct re_filterfile_spec { + char *username; + char *filtername; struct list patterns[1]; pcrs_job *joblist; };