summaryrefslogtreecommitdiff
path: root/src/cairo-freelist-private.h
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2009-09-30 19:50:44 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2009-09-30 20:11:07 +0100
commite9bc2180d73acc7133d715ed4380ed20fb4364c0 (patch)
tree491caca556027fa602da362616f9264d3c6314b3 /src/cairo-freelist-private.h
parent8e4e0aa7ee5b4e0963409cda825705a09aae61e1 (diff)
[xcb] Deferred error checking.
XCB avoids the dreaded abort on XError mechanism by forcing the client to perform deferred error checking. So do so. This allows us to combine the fire-and-forget rendering model with accurate error checking, without killing the client or mixing our errors with theirs. XCB for the win!
Diffstat (limited to 'src/cairo-freelist-private.h')
-rw-r--r--src/cairo-freelist-private.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/cairo-freelist-private.h b/src/cairo-freelist-private.h
index d48a7201..5be22b1f 100644
--- a/src/cairo-freelist-private.h
+++ b/src/cairo-freelist-private.h
@@ -132,6 +132,11 @@ _cairo_freepool_alloc (cairo_freepool_t *freepool)
return node;
}
+cairo_private cairo_status_t
+_cairo_freepool_alloc_array (cairo_freepool_t *freepool,
+ int count,
+ void **array);
+
static inline void
_cairo_freepool_free (cairo_freepool_t *freepool, void *ptr)
{