# HG changeset patch # User Christian Hammond # Date 1061710813 0 # Node ID 0f78db521e704e12c6f889ec587d770ef4d56871 # Parent 6e3bec3c843ee8794e4459ecb4fd1baa829a36c9 [gaim-migrate @ 7136] Added a function to return the version of the gaim core. committer: Tailor Script diff -r 6e3bec3c843e -r 0f78db521e70 src/core.c --- a/src/core.c Sun Aug 24 07:34:07 2003 +0000 +++ b/src/core.c Sun Aug 24 07:40:13 2003 +0000 @@ -138,6 +138,12 @@ _core = NULL; } +const char * +gaim_core_get_version(void) +{ + return VERSION; +} + void gaim_core_mainloop_iteration(void) { diff -r 6e3bec3c843e -r 0f78db521e70 src/core.h --- a/src/core.h Sun Aug 24 07:34:07 2003 +0000 +++ b/src/core.h Sun Aug 24 07:40:13 2003 +0000 @@ -5,7 +5,7 @@ * gaim * * Copyright (C) 2003 Christian Hammond - * + * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or @@ -57,6 +57,13 @@ void gaim_core_quit(void); /** + * Returns the version of the core library. + * + * @return The version of the core library. + */ +const char *gaim_core_get_version(void); + +/** * Iterates once through the gaim mainloop. * * This is in actuality a wrapper around glib's mainloop iteration