Commit 800add1e authored by Nick Kew's avatar Nick Kew
Browse files

Make ap_register_output_filter a #define


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@315024 13f79535-47bb-0310-9956-ffa450edef68
parent d077e428
Loading
Loading
Loading
Loading
+0 −7
Changes for include/util_filter.h: 0 added lines, 7 removed lines.
Original line number Diff line number Diff line
@@ -344,15 +344,8 @@ AP_DECLARE(ap_filter_rec_t *) ap_register_input_filter(const char *name,
 *              ::AP_FTYPE_CONNECTION
 * @see ap_add_output_filter()
 */
AP_DECLARE(ap_filter_rec_t *) ap_register_output_filter(const char *name,
                                            ap_out_filter_func filter_func,
                                            ap_init_filter_func filter_init,
                                            ap_filter_type ftype);

/* For httpd-2.2 I suggest replacing the above with
#define ap_register_output_filter(name,ffunc,init,ftype) \
             ap_register_output_filter_protocol(name,ffunc,init,ftype,0)
*/

/**
 * This function is used to register an output filter with the system. 
+0 −9
Changes for server/util_filter.c: 0 added lines, 9 removed lines.
Original line number Diff line number Diff line
@@ -248,15 +248,6 @@ AP_DECLARE(ap_filter_rec_t *) ap_register_input_filter(const char *name,
                           &registered_input_filters);
}                                                                    

/* Prepare to make this a #define in 2.2 */
AP_DECLARE(ap_filter_rec_t *) ap_register_output_filter(const char *name,
                                           ap_out_filter_func filter_func,
                                           ap_init_filter_func filter_init,
                                           ap_filter_type ftype)
{
    return ap_register_output_filter_protocol(name, filter_func,
                                              filter_init, ftype, 0) ;
}
AP_DECLARE(ap_filter_rec_t *) ap_register_output_filter_protocol(
                                           const char *name,
                                           ap_out_filter_func filter_func,