]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Document and future-proof the dependency between apr_read_type_e and
authorCliff Woolley <jwoolley@apache.org>
Tue, 24 Jul 2001 00:10:26 +0000 (00:10 +0000)
committerCliff Woolley <jwoolley@apache.org>
Tue, 24 Jul 2001 00:10:26 +0000 (00:10 +0000)
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

include/util_filter.h

index e595686e1fdc1aaef0174a93665514634ffa165f..a5191438a72811cdb412405fd034f3a38f90656f 100644 (file)
@@ -83,15 +83,16 @@ extern "C" {
 #define AP_FILTER_ERROR         -3
 
 /**
- * input filtering modes 
+ * 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