summaryrefslogtreecommitdiff
path: root/boilerplate/cairo-boilerplate.h
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2010-06-30 18:27:54 +0200
committerBenjamin Otte <otte@redhat.com>2010-07-03 02:55:52 +0200
commita1c4b001a548611b7d77e9280fdb5a82da275830 (patch)
tree4aecb01e880109466e219f06be2b663499219c10 /boilerplate/cairo-boilerplate.h
parent4c039b1cdfac5b5d6aa0c38f0779213fd14ec7de (diff)
downloadcairo-a1c4b001a548611b7d77e9280fdb5a82da275830.tar.gz
boilerplate: Add a describe vfunc
This function is supposed to describe the backend in use. The describe function is optional - and therefore initialized as NULL everywhere. Note: It is well known that the xlib backend uses X. What is not known is what version the server supports or what graphics card it is running on. That is the information the describe vfunc is supposed to provide.
Diffstat (limited to 'boilerplate/cairo-boilerplate.h')
-rw-r--r--boilerplate/cairo-boilerplate.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/boilerplate/cairo-boilerplate.h b/boilerplate/cairo-boilerplate.h
index 38df3b9bb..dae17ea45 100644
--- a/boilerplate/cairo-boilerplate.h
+++ b/boilerplate/cairo-boilerplate.h
@@ -149,6 +149,9 @@ typedef void
typedef void
(*cairo_boilerplate_wait_t) (void *closure);
+typedef char *
+(*cairo_boilerplate_describe_t) (void *closure);
+
typedef struct _cairo_boilerplate_target {
const char *name;
const char *basename;
@@ -165,6 +168,7 @@ typedef struct _cairo_boilerplate_target {
cairo_boilerplate_write_to_png_t write_to_png;
cairo_boilerplate_cleanup_t cleanup;
cairo_boilerplate_wait_t synchronize;
+ cairo_boilerplate_describe_t describe;
cairo_bool_t is_measurable;
cairo_bool_t is_vector;
cairo_bool_t is_recording;