正在显示
2 个修改的文件
包含
6 行增加
和
1 行删除
| @@ -55,6 +55,9 @@ using namespace std; | @@ -55,6 +55,9 @@ using namespace std; | ||
| 55 | 55 | ||
| 56 | using namespace _srs_internal; | 56 | using namespace _srs_internal; |
| 57 | 57 | ||
| 58 | +// the version to identify the core. | ||
| 59 | +const char* _srs_version = "XCORE-"RTMP_SIG_SRS_SERVER; | ||
| 60 | + | ||
| 58 | #define SRS_WIKI_URL_LOG "https://github.com/ossrs/srs/wiki/v1_CN_SrsLog" | 61 | #define SRS_WIKI_URL_LOG "https://github.com/ossrs/srs/wiki/v1_CN_SrsLog" |
| 59 | 62 | ||
| 60 | // when user config an invalid value, macros to perfer true or false. | 63 | // when user config an invalid value, macros to perfer true or false. |
| @@ -1930,7 +1933,7 @@ int SrsConfig::parse_options(int argc, char** argv) | @@ -1930,7 +1933,7 @@ int SrsConfig::parse_options(int argc, char** argv) | ||
| 1930 | } | 1933 | } |
| 1931 | 1934 | ||
| 1932 | // first hello message. | 1935 | // first hello message. |
| 1933 | - srs_trace(RTMP_SIG_SRS_SERVER); | 1936 | + srs_trace(_srs_version); |
| 1934 | 1937 | ||
| 1935 | if (config_file.empty()) { | 1938 | if (config_file.empty()) { |
| 1936 | ret = ERROR_SYSTEM_CONFIG_INVALID; | 1939 | ret = ERROR_SYSTEM_CONFIG_INVALID; |
| @@ -58,6 +58,8 @@ ISrsThreadContext* _srs_context = new SrsThreadContext(); | @@ -58,6 +58,8 @@ ISrsThreadContext* _srs_context = new SrsThreadContext(); | ||
| 58 | // app module. | 58 | // app module. |
| 59 | SrsConfig* _srs_config = new SrsConfig(); | 59 | SrsConfig* _srs_config = new SrsConfig(); |
| 60 | SrsServer* _srs_server = new SrsServer(); | 60 | SrsServer* _srs_server = new SrsServer(); |
| 61 | +// version of srs, which can grep keyword "XCORE" | ||
| 62 | +extern const char* _srs_version; | ||
| 61 | 63 | ||
| 62 | /** | 64 | /** |
| 63 | * show the features by macro, the actual macro values. | 65 | * show the features by macro, the actual macro values. |
-
请 注册 或 登录 后发表评论