aboutsummaryrefslogtreecommitdiffstats
path: root/include/asterisk/ast_version.h
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2008-02-26 20:02:14 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2008-02-26 20:02:14 +0000
commitd5b06adda96fb89bac61e94e86d8292984d24037 (patch)
tree1954005f37822572391a7aaa1ebf59d64370fe24 /include/asterisk/ast_version.h
parent1c9e1d5b2e00b34755f2f198e59fd4e1f8c18657 (diff)
Rename version.h to ast_version.h. Next, I will be re-adding version.h as an
automatically generated file like it used to be. This still needs to be there for modules that have to check it to compile against multiple asterisk versions. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@104244 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'include/asterisk/ast_version.h')
-rw-r--r--include/asterisk/ast_version.h44
1 files changed, 44 insertions, 0 deletions
diff --git a/include/asterisk/ast_version.h b/include/asterisk/ast_version.h
new file mode 100644
index 000000000..51ff48102
--- /dev/null
+++ b/include/asterisk/ast_version.h
@@ -0,0 +1,44 @@
+/*
+ * Asterisk -- An open source telephony toolkit.
+ *
+ * Copyright (C) 2008, Digium, Inc.
+ *
+ * Russell Bryant <russell@digium.com>
+ *
+ * See http://www.asterisk.org for more information about
+ * the Asterisk project. Please do not directly contact
+ * any of the maintainers of this project for assistance;
+ * the project provides a web site, mailing lists and IRC
+ * channels for your use.
+ *
+ * This program is free software, distributed under the terms of
+ * the GNU General Public License Version 2. See the LICENSE file
+ * at the top of the source tree.
+ */
+
+/*!
+ * \file
+ * \brief Asterisk version information
+ * \author Russell Bryant <russell@digium.com>
+ */
+
+#ifndef __AST_VERSION_H
+#define __AST_VERSION_H
+
+/*!
+ * \brief Retrieve the Asterisk version string.
+ */
+const char *ast_get_version(void);
+
+/*!
+ * \brief Retrieve the numeric Asterisk version
+ *
+ * Format ABBCC
+ * AABB - Major version (1.4 would be 104)
+ * CC - Minor version
+ *
+ * 1.4.17 would be 10417.
+ */
+const char *ast_get_version_num(void);
+
+#endif /* __AST_VERSION_H */