提交 4249def9 authored 作者: Travis Cross's avatar Travis Cross

Add symbols for version information

This allows us to automatically pull the version of FS out of a core
file for better reporting of bugs.
上级 69d382c4
...@@ -36,12 +36,20 @@ ...@@ -36,12 +36,20 @@
#include <switch.h> #include <switch.h>
#include <switch_version.h> #include <switch_version.h>
SWITCH_DECLARE(const char *)switch_version_major(void) {return SWITCH_VERSION_MAJOR;} const char *switch_version_major_str = SWITCH_VERSION_MAJOR;
SWITCH_DECLARE(const char *)switch_version_minor(void) {return SWITCH_VERSION_MINOR;} const char *switch_version_minor_str = SWITCH_VERSION_MINOR;
SWITCH_DECLARE(const char *)switch_version_micro(void) {return SWITCH_VERSION_MICRO;} const char *switch_version_micro_str = SWITCH_VERSION_MICRO;
const char *switch_version_revision_str = SWITCH_VERSION_REVISION;
const char *switch_version_revision_human_str = SWITCH_VERSION_REVISION_HUMAN;
const char *switch_version_full_str = SWITCH_VERSION_FULL;
const char *switch_version_full_human_str = SWITCH_VERSION_FULL_HUMAN;
SWITCH_DECLARE(const char *)switch_version_revision(void) {return SWITCH_VERSION_REVISION;} SWITCH_DECLARE(const char *)switch_version_major(void) {return switch_version_major_str;}
SWITCH_DECLARE(const char *)switch_version_revision_human(void) {return SWITCH_VERSION_REVISION_HUMAN;} SWITCH_DECLARE(const char *)switch_version_minor(void) {return switch_version_minor_str;}
SWITCH_DECLARE(const char *)switch_version_full(void) {return SWITCH_VERSION_FULL;} SWITCH_DECLARE(const char *)switch_version_micro(void) {return switch_version_micro_str;}
SWITCH_DECLARE(const char *)switch_version_full_human(void) {return SWITCH_VERSION_FULL_HUMAN;}
SWITCH_DECLARE(const char *)switch_version_revision(void) {return switch_version_revision_str;}
SWITCH_DECLARE(const char *)switch_version_revision_human(void) {return switch_version_revision_human_str;}
SWITCH_DECLARE(const char *)switch_version_full(void) {return switch_version_full_str;}
SWITCH_DECLARE(const char *)switch_version_full_human(void) {return switch_version_full_human_str;}
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论