1 /* 2 * FreeSWITCH Modular Media Switching Software Library / Soft-Switch Application 3 * Copyright (C) 2005-2014, Anthony Minessale II <anthm@freeswitch.org> 4 * 5 * Version: MPL 1.1 6 * 7 * The contents of this file are subject to the Mozilla Public License Version 8 * 1.1 (the "License"); you may not use this file except in compliance with 9 * the License. You may obtain a copy of the License at 10 * http://www.mozilla.org/MPL/ 11 * 12 * Software distributed under the License is distributed on an "AS IS" basis, 13 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License 14 * for the specific language governing rights and limitations under the 15 * License. 16 * 17 * The Original Code is FreeSWITCH Modular Media Switching Software Library / Soft-Switch Application 18 * 19 * The Initial Developer of the Original Code is 20 * Anthony Minessale II <anthm@freeswitch.org> 21 * Portions created by the Initial Developer are Copyright (C) 22 * the Initial Developer. All Rights Reserved. 23 * 24 * Contributor(s): 25 * 26 * Anthony Minessale II <anthm@freeswitch.org> 27 * Michael Jerris <mike@jerris.com> 28 * Paul D. Tinsley <pdt at jackhammer.org> 29 * Marcel Barbulescu <marcelbarbulescu@gmail.com> 30 * Joseph Sullivan <jossulli@amazon.com> 31 * Seven Du <dujinfang@gmail.com> 32 * 33 * switch_version.c -- Version Functions 34 * 35 */ 36 #include <switch.h> 37 #include <switch_version.h> 38 39 const char *switch_version_major_str = SWITCH_VERSION_MAJOR; 40 const char *switch_version_minor_str = SWITCH_VERSION_MINOR; 41 const char *switch_version_micro_str = SWITCH_VERSION_MICRO; 42 const char *switch_version_revision_str = SWITCH_VERSION_REVISION; 43 const char *switch_version_revision_human_str = SWITCH_VERSION_REVISION_HUMAN; 44 const char *switch_version_full_str = SWITCH_VERSION_FULL; 45 const char *switch_version_full_human_str = SWITCH_VERSION_FULL_HUMAN; 46 switch_version_major(void)47SWITCH_DECLARE(const char *)switch_version_major(void) {return switch_version_major_str;} switch_version_minor(void)48SWITCH_DECLARE(const char *)switch_version_minor(void) {return switch_version_minor_str;} switch_version_micro(void)49SWITCH_DECLARE(const char *)switch_version_micro(void) {return switch_version_micro_str;} 50 switch_version_revision(void)51SWITCH_DECLARE(const char *)switch_version_revision(void) {return switch_version_revision_str;} switch_version_revision_human(void)52SWITCH_DECLARE(const char *)switch_version_revision_human(void) {return switch_version_revision_human_str;} switch_version_full(void)53SWITCH_DECLARE(const char *)switch_version_full(void) {return switch_version_full_str;} switch_version_full_human(void)54SWITCH_DECLARE(const char *)switch_version_full_human(void) {return switch_version_full_human_str;} 55 56 /* For Emacs: 57 * Local Variables: 58 * mode:c 59 * indent-tabs-mode:t 60 * tab-width:4 61 * c-basic-offset:4 62 * End: 63 * For VIM: 64 * vim:set softtabstop=4 shiftwidth=4 tabstop=4 noet: 65 */ 66