Skip to content

Commit 8155e97

Browse files
committed
add keyword XCORE for coredump to identify the version. 2.0.207
1 parent dc38ae1 commit 8155e97

File tree

4 files changed

+8
-2
lines changed

4 files changed

+8
-2
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -338,6 +338,7 @@ Remark:
338338

339339
## History
340340

341+
* v2.0, 2016-01-05, add keyword XCORE for coredump to identify the version. 2.0.207
341342
* <strong>v2.0, 2015-12-23, [2.0 alpha3(2.0.205)][r2.0a3] released. 89544 lines.</strong>
342343
* v2.0, 2015-12-22, for [#509][bug #509] always alloc big object at heap. 2.0.205
343344
* v2.0, 2015-12-22, for [#418][bug #418] ignore null connect props to make RED5 happy. 2.0.204

trunk/src/app/srs_app_config.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,9 @@ using namespace std;
4949

5050
using namespace _srs_internal;
5151

52+
// the version to identify the core.
53+
const char* _srs_version = "XCORE-"RTMP_SIG_SRS_SERVER;
54+
5255
#define SRS_WIKI_URL_LOG "https://github.com/ossrs/srs/wiki/v1_CN_SrsLog"
5356

5457
// when user config an invalid value, macros to perfer true or false.
@@ -1360,7 +1363,7 @@ int SrsConfig::parse_options(int argc, char** argv)
13601363
}
13611364

13621365
// first hello message.
1363-
srs_trace(RTMP_SIG_SRS_SERVER);
1366+
srs_trace(_srs_version);
13641367

13651368
if (config_file.empty()) {
13661369
ret = ERROR_SYSTEM_CONFIG_INVALID;

trunk/src/core/srs_core.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
3131
// current release version
3232
#define VERSION_MAJOR 2
3333
#define VERSION_MINOR 0
34-
#define VERSION_REVISION 206
34+
#define VERSION_REVISION 207
3535

3636
// generated by configure, only macros.
3737
#include <srs_auto_headers.hpp>

trunk/src/main/srs_main_server.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,8 @@ ISrsThreadContext* _srs_context = new SrsThreadContext();
5454
// app module.
5555
SrsConfig* _srs_config = new SrsConfig();
5656
SrsServer* _srs_server = new SrsServer();
57+
// version of srs, which can grep keyword "XCORE"
58+
extern const char* _srs_version;
5759

5860
/**
5961
* show the features by macro, the actual macro values.

0 commit comments

Comments
 (0)