From 8f8d186a8d519d71dfebce17922f9ba6a660272d Mon Sep 17 00:00:00 2001 From: Cliff Woolley Date: Tue, 24 Jul 2001 00:10:26 +0000 Subject: [PATCH] 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 --- include/util_filter.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/include/util_filter.h b/include/util_filter.h index e595686e1fd..a5191438a72 100644 --- a/include/util_filter.h +++ b/include/util_filter.h @@ -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 -- 2.47.2