Commit 8ed89602 authored by Cliff Woolley's avatar Cliff Woolley
Browse files

Document and future-proof the dependency between apr_read_type_e and

ap_input_mode_t.  It's now safe(r) to cast from ap_read_type_e to
ap_input_mode_t.

Submitted by:	Justin Erenkrantz, Sander Striker


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@89671 13f79535-47bb-0310-9956-ffa450edef68
parent 31de4eec
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -84,14 +84,15 @@ extern "C" {

/**
 * input filtering modes
 * @see apr_read_type_e in apr_buckets.h -- this is a superset of it
 */
typedef enum {
    /** The filter shouldn't return until data is received or EOF is hit
     *  or an error occurs. */
    AP_MODE_BLOCKING,
    AP_MODE_BLOCKING = APR_BLOCK_READ,
    /** The filter should process any available data/status as normal,
     *  but will not wait for additional data. */
    AP_MODE_NONBLOCKING,
    AP_MODE_NONBLOCKING = APR_NONBLOCK_READ,
    /** The filter should return ::APR_SUCCESS if data is available or
     *  ::APR_EOF otherwise.  The filter must not return any buckets of
     *  data.  Data returned on a subsequent call, when mode is