Changes with Apache 2.0.17-dev
+ *) The ap_f* functions should flush data to the filter that is passed
+ in, not the the filter after the one passed in.
+ [Ryan Morgan <rmorgan@covalent.net>]
+
*) Make ab work again by changing its native types to apr types and formats.
[Justin Erenkrantz <jerenkrantz@ebuilt.com>]
* @param nbyte The number of bytes in the data
*/
#define ap_fwrite(f, bb, data, nbyte) \
- apr_brigade_write(bb, ap_filter_flush, (f)->next, data, nbyte)
+ apr_brigade_write(bb, ap_filter_flush, f, data, nbyte)
/**
* Write a buffer for the current filter, buffering if possible.
* @param str The string to write
*/
#define ap_fputs(f, bb, str) \
- apr_brigade_puts(bb, ap_filter_flush, (f)->next, str)
+ apr_brigade_puts(bb, ap_filter_flush, f, str)
/**
* Write a character for the current filter, buffering if possible.
* @param c The character to write
*/
#define ap_fputc(f, bb, c) \
- apr_brigade_putc(bb, ap_filter_flush, (f)->next, c)
+ apr_brigade_putc(bb, ap_filter_flush, f, c)
/**
* Write an unspecified number of strings to the current filter
b = apr_bucket_flush_create();
APR_BRIGADE_INSERT_TAIL(bb, b);
- return ap_pass_brigade(f->next, bb);
+ return ap_pass_brigade(f, bb);
}
AP_DECLARE_NONSTD(int) ap_fputstrs(ap_filter_t *f, apr_bucket_brigade *bb, ...)
int res;
va_start(args, bb);
- res = apr_brigade_vputstrs(bb, ap_filter_flush, f->next, args);
+ res = apr_brigade_vputstrs(bb, ap_filter_flush, f, args);
va_end(args);
return res;
}
int res;
va_start(args, fmt);
- res = apr_brigade_vprintf(bb, ap_filter_flush, f->next, fmt, args);
+ res = apr_brigade_vprintf(bb, ap_filter_flush, f, fmt, args);
va_end(args);
return res;
}