Commit e01f0c68 authored by Andre Malo's avatar Andre Malo
Browse files

save spaces! Soon in future we're going to run out of spaces!!!


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@105499 13f79535-47bb-0310-9956-ffa450edef68
parent 64fea73b
Loading
Loading
Loading
Loading
+34 −15
Original line number Diff line number Diff line
@@ -215,13 +215,17 @@ typedef struct ap_filter_provider_t ap_filter_provider_t;
struct ap_filter_rec_t {
    /** The registered name for this filter */
    const char *name;

    /** The function to call when this filter is invoked. */
    ap_filter_func filter_func;

    /** The function to call before the handlers are invoked. Notice
     * that this function is called only for filters participating in
     * the http protocol. Filters for other protocols are to be
     * initiliazed by the protocols themselves. */
     * initialized by the protocols themselves.
     */
    ap_init_filter_func filter_init_func;

    /** The type of filter, either AP_FTYPE_CONTENT or AP_FTYPE_CONNECTION.  
     * An AP_FTYPE_CONTENT filter modifies the data based on information 
     * found in the content.  An AP_FTYPE_CONNECTION filter modifies the 
@@ -240,14 +244,19 @@ struct ap_filter_rec_t {
        SUBPROCESS_ENV,
        CONTENT_TYPE
    } dispatch;

    /** Match value for filter providers */
    const char* value;

    /** Providers for this filter */
    ap_filter_provider_t* providers;

    /** Trace level for this filter */
    int debug;

    /** Protocol flags for this filter */
    unsigned int proto_flags;

    /** Save Ranges header if this filter unsets it */
    const char* range;
};
@@ -269,16 +278,20 @@ struct ap_filter_provider_t {
        INT_GT,
        DEFINED
    } match_type;

    /** negation on match_type */
    int not;

    /** The dispatch match itself - union member depends on match_type */
    union {
        const char* c;
        regex_t* r;
        int i;
    } match;

    /** The filter that implements this provider */
    ap_filter_rec_t* frec;

    /** The next provider in the list */
    ap_filter_provider_t* next;
};
@@ -360,6 +373,7 @@ AP_DECLARE(ap_filter_rec_t *) ap_register_input_filter(const char *name,
                                          ap_in_filter_func filter_func,
                                          ap_init_filter_func filter_init,
                                          ap_filter_type ftype);

/**
 * This function is used to register an output filter with the system. 
 * After this registration is performed, then a filter may be added 
@@ -603,14 +617,19 @@ AP_DECLARE(void) ap_filter_protocol(ap_filter_t* f, unsigned int proto_flags);

/** Filter changes contents (so invalidating checksums/etc) */
#define AP_FILTER_PROTO_CHANGE 0x1

/** Filter changes length of contents (so invalidating content-length/etc) */
#define AP_FILTER_PROTO_CHANGE_LENGTH 0x2

/** Filter requires complete input and can't work on byteranges */
#define AP_FILTER_PROTO_NO_BYTERANGE 0x4

/** Filter should not run in a proxy */
#define AP_FILTER_PROTO_NO_PROXY 0x8

/** Filter makes output non-cacheable */
#define AP_FILTER_PROTO_NO_CACHE 0x10

/** Filter is incompatible with "Cache-Control: no-transform" */
#define AP_FILTER_PROTO_TRANSFORM 0x20