# HG changeset patch # User Will Thompson # Date 1198263539 0 # Node ID b3240d483fd946abb267599d4c8aa167d96b54a4 # Parent 6765b2b65d30dfd18f8039974b27b654a5a3388e# Parent eb2e2585f9173ab9270f610150e3dec140f37804 merge of '1f8afab1886606b0936e80a00245ff532d77086f' and '846b73cefc86ff41042181a41f8ceaae6699c1f6' diff -r 6765b2b65d30 -r b3240d483fd9 libpurple/version.c --- a/libpurple/version.c Fri Dec 21 12:17:10 2007 +0000 +++ b/libpurple/version.c Fri Dec 21 18:58:59 2007 +0000 @@ -42,3 +42,21 @@ 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; +} diff -r 6765b2b65d30 -r b3240d483fd9 libpurple/version.h.in --- a/libpurple/version.h.in Fri Dec 21 12:17:10 2007 +0000 +++ b/libpurple/version.h.in Fri Dec 21 18:58:59 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