diff options
author | Carl Worth <cworth@cworth.org> | 2005-06-16 12:20:46 +0000 |
---|---|---|
committer | Carl Worth <cworth@cworth.org> | 2005-06-16 12:20:46 +0000 |
commit | d6eca5a45f220d806491af518ba8ce16b524e01d (patch) | |
tree | 93c8eb8369276a940b85eaf474120e705f7f7cce /src/cairo-private.h | |
parent | 18c2d12b9ed98aea7f8ebe2b97b9406a6acb4d29 (diff) |
Reorder fields of cairo_private_t to match initialization order.
Call error_notify callback if set. (cairo_create): Initialize error_notify callback to NULL. (cairo_set_error_notify): New function to allow the user to set an error notify callback.
New cairo_set_error_notify prototye.
New test for cairo_set_error_notify.
Diffstat (limited to 'src/cairo-private.h')
-rw-r--r-- | src/cairo-private.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/cairo-private.h b/src/cairo-private.h index a43c8ef7f..d63d98b7e 100644 --- a/src/cairo-private.h +++ b/src/cairo-private.h @@ -42,10 +42,14 @@ struct _cairo { unsigned int ref_count; - cairo_gstate_t *gstate; + cairo_status_t status; + + cairo_error_notify_func_t error_notify; + void *error_notify_closure; + cairo_path_fixed_t path; - cairo_status_t status; + cairo_gstate_t *gstate; }; #endif /* CAIRO_PRIVATE_H */ |