]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Move ap_filter_provider_t back out of public API
authorNick Kew <niq@apache.org>
Wed, 27 Oct 2004 09:20:33 +0000 (09:20 +0000)
committerNick Kew <niq@apache.org>
Wed, 27 Oct 2004 09:20:33 +0000 (09:20 +0000)
(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

include/util_filter.h
modules/experimental/mod_filter.c

index d400208e85f84a6517b583f4ca8bf4f3f140f5f3..ddd025230db072b995d3150d937b450bf5f1aeed 100644 (file)
@@ -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
index 8d52492352b51ffea895a1e4452ea5b6a6efcd35..4d9e7d0bcac285c1b567d8ce2e432be633d42931 100644 (file)
 
 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;