[PATCH 1/3] observer: Export cairo_surface_is_observer function

Rob Bradford <[email protected]>
Newsgroups gmane.comp.lib.cairo
Message-ID <[email protected]>
From: Rob Bradford <[email protected]>

Signed-off-by: Rob Bradford <[email protected]>
---
 src/cairo-surface-observer.c |    6 ++++++
 src/cairo.h                  |    3 +++
 2 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/src/cairo-surface-observer.c b/src/cairo-surface-observer.c
index 92f2624..3d7af94 100644
--- a/src/cairo-surface-observer.c
+++ b/src/cairo-surface-observer.c
@@ -1944,3 +1944,9 @@ cairo_device_observer_glyphs_elapsed (cairo_device_t *abstract_device)
     device = (cairo_device_observer_t *) abstract_device;
     return device->log.glyphs.elapsed;
 }
+
+cairo_bool_t
+cairo_surface_is_observer (cairo_surface_t *surface)
+{
+    return _cairo_surface_is_observer (surface);
+}
diff --git a/src/cairo.h b/src/cairo.h
index 710d997..f432a3e 100644
--- a/src/cairo.h
+++ b/src/cairo.h
@@ -2141,6 +2141,9 @@ typedef enum {
 	CAIRO_SURFACE_OBSERVER_RECORD_OPERATIONS = 0x1,
 } cairo_surface_observer_mode_t;
 
+cairo_public cairo_bool_t
+cairo_surface_is_observer (cairo_surface_t *surface);
+
 cairo_public cairo_surface_t *
 cairo_surface_create_observer (cairo_surface_t *target,
 			       cairo_surface_observer_mode_t mode);
-- 
1.7.6

--
cairo mailing list
[email protected]
http://lists.cairographics.org/mailman/listinfo/cairo
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.