summaryrefslogtreecommitdiff
path: root/src/cairo-base85-stream.c
diff options
context:
space:
mode:
authorKristian Høgsberg <krh@redhat.com>2006-06-12 03:07:19 -0400
committerKristian Høgsberg <krh@redhat.com>2006-06-12 03:07:19 -0400
commit3575c942f81d54c88fd48aee2352ecd29406e711 (patch)
treec91400bcbb072f49cfed8494cebcea18d97cf781 /src/cairo-base85-stream.c
parent79928101352a84af1884e993fd06bf6cd44f2af3 (diff)
downloadcairo-3575c942f81d54c88fd48aee2352ecd29406e711.tar.gz
Make cairo_output_stream_t an embeddable type.
Most internal cairo types are transparent within cairo and have init and fini functions to intialize and finialize them in place. This way they can be easily be embedded in other structs or derived from. Initially, the cairo_output_stream_t type was proposed as a publically visible type and thus kept opaque. However, now it's only used internally and derived from in a number of places so let's make it an embeddable type for consistency and ease of use. The patch keeps _cairo_output_stream_create() and _cairo_output_stream_close() around for (internal) backwards compatibility by deriving a cairo_output_stream_with_closure_t stream type. The patch also moves all cairo_output_stream_t functions out of cairoint.h and into new file cairo-output-stream-private.h, thus chipping away at the monolithic cairoint.h.
Diffstat (limited to 'src/cairo-base85-stream.c')
-rw-r--r--src/cairo-base85-stream.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/cairo-base85-stream.c b/src/cairo-base85-stream.c
index d42700de9..2861a4233 100644
--- a/src/cairo-base85-stream.c
+++ b/src/cairo-base85-stream.c
@@ -35,6 +35,7 @@
*/
#include "cairoint.h"
+#include "cairo-output-stream-private.h"
typedef struct _cairo_base85_stream {
cairo_output_stream_t *output;