summaryrefslogtreecommitdiff
path: root/src/cairo.h
diff options
context:
space:
mode:
authorCarl Worth <cworth@cworth.org>2005-08-10 15:58:25 +0000
committerCarl Worth <cworth@cworth.org>2005-08-10 15:58:25 +0000
commitae63b95211f32f169af37dc03956f9d23fd6794d (patch)
tree0d3ac4b90b70052f565ee97839f3996522119eab /src/cairo.h
parentbdd8cbddeedec584fc859c5c092ce67c3a1830eb (diff)
Augment existing CAIRO_VERSION_MAJOR/MINOR/MICRO and CAIRO_VERSION_STRING with CAIRO_VERSION_ENCODE and CAIRO_VERSION. Add functions for run-time access:
cairo_version cairo_version_string
Diffstat (limited to 'src/cairo.h')
-rw-r--r--src/cairo.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/cairo.h b/src/cairo.h
index 1d871c812..06a6d6a08 100644
--- a/src/cairo.h
+++ b/src/cairo.h
@@ -42,6 +42,22 @@
CAIRO_BEGIN_DECLS
+#define CAIRO_VERSION_ENCODE(major, minor, micro) ( \
+ ((major) * 10000) \
+ + ((minor) * 100) \
+ + ((micro) * 1))
+
+#define CAIRO_VERSION CAIRO_VERSION_ENCODE( \
+ CAIRO_VERSION_MAJOR, \
+ CAIRO_VERSION_MINOR, \
+ CAIRO_VERSION_MICRO)
+
+int
+cairo_version (void);
+
+const char*
+cairo_version_string (void);
+
/**
* cairo_bool_t:
*