im.pidgin.pidgin: 846b73cefc86ff41042181a41f8ceaae6699c1f6

resiak at soc.pidgin.im resiak at soc.pidgin.im
Fri Dec 21 14:00:53 EST 2007


-----------------------------------------------------------------
Revision: 846b73cefc86ff41042181a41f8ceaae6699c1f6
Ancestor: 992f49d89c76aeab454dd5a822cd62b9a1848557
Author: resiak at soc.pidgin.im
Date: 2007-12-21T18:57:48
Branch: im.pidgin.pidgin

Modified files:
        libpurple/version.c libpurple/version.h.in

ChangeLog: 

Add purple_version_get_{major,minor,micro} functions to get the running
libpurple's version.  Fixes #4408.

-------------- next part --------------
============================================================
--- libpurple/version.c	c7dababa6a05dc84c2c9b424e1d9afcfb5927915
+++ libpurple/version.c	fd46f5df2d7fffdb8d96e96f8a4616a49b38ebc6
@@ -42,3 +42,21 @@ const char *purple_version_check(guint r
 		return "libpurple version too old (micro mismatch)";
 	return NULL;
 }
+
+guint
+purple_version_get_major()
+{
+	return purple_major_version;
+}
+
+guint
+purple_version_get_minor()
+{
+	return purple_minor_version;
+}
+
+guint
+purple_version_get_micro()
+{
+	return purple_micro_version;
+}
============================================================
--- libpurple/version.h.in	f1f8b69f519386a187be2d38beee61d8463d8b68
+++ libpurple/version.h.in	6582943272018a5133b4733a2c15d83b150fe5e1
@@ -49,6 +49,33 @@ const char *purple_version_check(guint r
  */
 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


More information about the Commits mailing list