From d5b06adda96fb89bac61e94e86d8292984d24037 Mon Sep 17 00:00:00 2001 From: russell Date: Tue, 26 Feb 2008 20:02:14 +0000 Subject: 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 --- build_tools/make_version_c | 2 +- channels/chan_sip.c | 2 +- include/asterisk/ast_version.h | 44 ++++++++++++++++++++++++++++++++++++++++++ include/asterisk/version.h | 44 ------------------------------------------ main/http.c | 2 +- main/manager.c | 2 +- res/res_agi.c | 2 +- 7 files changed, 49 insertions(+), 49 deletions(-) create mode 100644 include/asterisk/ast_version.h delete mode 100644 include/asterisk/version.h diff --git a/build_tools/make_version_c b/build_tools/make_version_c index 291290ddd..018fc6e88 100755 --- a/build_tools/make_version_c +++ b/build_tools/make_version_c @@ -14,7 +14,7 @@ cat << END #include "asterisk.h" -#include "asterisk/version.h" +#include "asterisk/ast_version.h" static const char asterisk_version[] = "${ASTERISKVERSION}${EXTRA}"; diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 610404767..dcf922689 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -173,7 +173,7 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$") #include "asterisk/abstract_jb.h" #include "asterisk/threadstorage.h" #include "asterisk/translate.h" -#include "asterisk/version.h" +#include "asterisk/ast_version.h" #include "asterisk/event.h" #include "asterisk/tcptls.h" 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 + * + * 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 + */ + +#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 */ diff --git a/include/asterisk/version.h b/include/asterisk/version.h deleted file mode 100644 index 51ff48102..000000000 --- a/include/asterisk/version.h +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Asterisk -- An open source telephony toolkit. - * - * Copyright (C) 2008, Digium, Inc. - * - * Russell Bryant - * - * 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 - */ - -#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 */ diff --git a/main/http.c b/main/http.c index 6e8021fa2..c1ec9f759 100644 --- a/main/http.c +++ b/main/http.c @@ -49,7 +49,7 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$") #include "asterisk/strings.h" #include "asterisk/config.h" #include "asterisk/stringfields.h" -#include "asterisk/version.h" +#include "asterisk/ast_version.h" #include "asterisk/manager.h" #define MAX_PREFIX 80 diff --git a/main/manager.c b/main/manager.c index da4457752..7fb16a403 100644 --- a/main/manager.c +++ b/main/manager.c @@ -67,7 +67,7 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$") #include "asterisk/utils.h" #include "asterisk/tcptls.h" #include "asterisk/http.h" -#include "asterisk/version.h" +#include "asterisk/ast_version.h" #include "asterisk/threadstorage.h" #include "asterisk/linkedlists.h" #include "asterisk/version.h" diff --git a/res/res_agi.c b/res/res_agi.c index a3c95f461..6e9b5291e 100644 --- a/res/res_agi.c +++ b/res/res_agi.c @@ -53,7 +53,7 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$") #include "asterisk/strings.h" #include "asterisk/agi.h" #include "asterisk/manager.h" -#include "asterisk/version.h" +#include "asterisk/ast_version.h" #include "asterisk/speech.h" #include "asterisk/manager.h" -- cgit v1.2.3