changeset 6612:0f78db521e70

[gaim-migrate @ 7136] Added a function to return the version of the gaim core. committer: Tailor Script <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Sun, 24 Aug 2003 07:40:13 +0000
parents 6e3bec3c843e
children dc78809c25e7
files src/core.c src/core.h
diffstat 2 files changed, 14 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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)
 {
--- 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 <chipx86@gnupdate.org>
- * 
+ *
  * 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