diff libpurple/version.h.in @ 21910:eb2e2585f917

Add purple_version_get_{major,minor,micro} functions to get the running libpurple's version. Fixes #4408.
author Will Thompson <will.thompson@collabora.co.uk>
date Fri, 21 Dec 2007 18:57:48 +0000
parents 44b4e8bd759b
children 1d8b7e42d9a4
line wrap: on
line diff
--- a/libpurple/version.h.in	Fri Dec 21 09:33:45 2007 +0000
+++ b/libpurple/version.h.in	Fri Dec 21 18:57:48 2007 +0000
@@ -49,6 +49,33 @@
  */
 const char *purple_version_check(guint required_major, guint required_minor, guint required_micro);
 
+/**
+ * Returns the major version of the running libpurple.  Contrast with
+ * #PURPLE_MAJOR_VERSION, which expands at compile time to the major version of
+ * libpurple being compiled against.
+ *
+ * @since 2.4.0
+ */
+guint purple_version_get_major(void);
+
+/**
+ * Returns the minor version of the running libpurple.  Contrast with
+ * #PURPLE_MINOR_VERSION, which expands at compile time to the minor version of
+ * libpurple being compiled against.
+ *
+ * @since 2.4.0
+ */
+guint purple_version_get_minor(void);
+/**
+ *
+ * Returns the micro version of the running libpurple.  Contrast with
+ * #PURPLE_MICRO_VERSION, which expands at compile time to the micro version of
+ * libpurple being compiled against.
+ *
+ * @since 2.4.0
+ */
+guint purple_version_get_micro(void);
+
 #ifdef __cplusplus
 }
 #endif