diff --git a/src/cairo.c b/src/cairo.c index 36fd07b..8314b8f 100644 --- a/src/cairo.c +++ b/src/cairo.c @@ -215,6 +215,19 @@ cairo_create (cairo_surface_t *target) slim_hidden_def (cairo_create); /** +* cairo_context_size +* Returns the size of a #cairo_t +* +* Return value: The size of a #cairo_t +**/ + +unsigned int +cairo_context_size(void) +{ + return (sizeof(cairo_t)); +} + +/** * cairo_reference: * @cr: a #cairo_t * diff --git a/src/cairo.h b/src/cairo.h index ba5ead6..bf8e336 100644 --- a/src/cairo.h +++ b/src/cairo.h @@ -307,6 +307,9 @@ cairo_pop_group (cairo_t *cr); cairo_public void cairo_pop_group_to_source (cairo_t *cr); +cairo_public unsigned int +cairo_context_size(void); + /* Modify state */ typedef enum _cairo_operator {