From: Nick Kew Date: Wed, 27 Oct 2004 09:20:33 +0000 (+0000) Subject: Move ap_filter_provider_t back out of public API X-Git-Tag: 2.1.1~94 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ae6b8dcb995ab34f999d8d0662bc00e62888b8f0;p=thirdparty%2Fapache%2Fhttpd.git Move ap_filter_provider_t back out of public API (suggested by nd; makes sense to niq) git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@105603 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/include/util_filter.h b/include/util_filter.h index d400208e85f..ddd025230db 100644 --- a/include/util_filter.h +++ b/include/util_filter.h @@ -261,43 +261,6 @@ struct ap_filter_rec_t { const char* range; }; -/** - * ap_filter_provider_t is a filter provider, as defined and implemented - * by mod_filter. The struct is a linked list, with dispatch criteria - * defined for each filter. The provider implementation itself is a - * (2.0-compatible) ap_filter_rec_t* frec. - */ -struct ap_filter_provider_t { - /** How to match this provider to filter dispatch criterion */ - enum { - STRING_MATCH, - STRING_CONTAINS, - REGEX_MATCH, - INT_EQ, - INT_LT, - INT_LE, - INT_GT, - INT_GE, - DEFINED - } match_type; - - /** negation on match_type */ - int not; - - /** The dispatch match itself - union member depends on match_type */ - union { - const char *string; - regex_t *regex; - int number; - } match; - - /** The filter that implements this provider */ - ap_filter_rec_t *frec; - - /** The next provider in the list */ - ap_filter_provider_t *next; -}; - /** * The representation of a filter chain. Each request has a list * of these structures which are called in turn to filter the data. Sub diff --git a/modules/experimental/mod_filter.c b/modules/experimental/mod_filter.c index 8d52492352b..4d9e7d0bcac 100644 --- a/modules/experimental/mod_filter.c +++ b/modules/experimental/mod_filter.c @@ -40,6 +40,43 @@ module AP_MODULE_DECLARE_DATA filter_module; +/** + * ap_filter_provider_t is a filter provider, as defined and implemented + * by mod_filter. The struct is a linked list, with dispatch criteria + * defined for each filter. The provider implementation itself is a + * (2.0-compatible) ap_filter_rec_t* frec. + */ +struct ap_filter_provider_t { + /** How to match this provider to filter dispatch criterion */ + enum { + STRING_MATCH, + STRING_CONTAINS, + REGEX_MATCH, + INT_EQ, + INT_LT, + INT_LE, + INT_GT, + INT_GE, + DEFINED + } match_type; + + /** negation on match_type */ + int not; + + /** The dispatch match itself - union member depends on match_type */ + union { + const char *string; + regex_t *regex; + int number; + } match; + + /** The filter that implements this provider */ + ap_filter_rec_t *frec; + + /** The next provider in the list */ + ap_filter_provider_t *next; +}; + typedef struct { ap_out_filter_func func; void *fctx;