From 5cbc45488e276cb6e6ecfa7bc7dd4fae342de85e Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Wed, 16 Jan 2008 16:29:19 +0000 Subject: [cairo-output-stream] Introduce _cairo_output_stream_create_in_error() Use a utility function to wrap an incoming error status into a new error stream. As a side-effect, all error streams must be destroyed as in the general case the caller can not distinguish between a static error object and one allocated to hold an unusual error status. --- src/cairo-output-stream-private.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/cairo-output-stream-private.h') diff --git a/src/cairo-output-stream-private.h b/src/cairo-output-stream-private.h index 0e7d4dbe4..8377eca4a 100644 --- a/src/cairo-output-stream-private.h +++ b/src/cairo-output-stream-private.h @@ -87,6 +87,9 @@ _cairo_output_stream_create (cairo_write_func_t write_func, cairo_close_func_t close_func, void *closure); +cairo_private cairo_output_stream_t * +_cairo_output_stream_create_in_error (cairo_status_t status); + /* Returns the final status value associated with this object, just * before its last gasp. This final status value will capture any * status failure returned by the stream's close_func as well. */ -- cgit v1.2.1