1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

Log: Refine context id

This commit is contained in:
winlin 2020-07-09 17:16:59 +08:00
parent 742826a655
commit 7052a1fafb
2 changed files with 38 additions and 18 deletions

View file

@ -23,4 +23,32 @@
#include <srs_core.hpp>
_SrsContextId::_SrsContextId()
{
}
_SrsContextId::_SrsContextId(std::string v)
{
v_ = v;
}
_SrsContextId::_SrsContextId(const _SrsContextId& cp)
{
v_ = cp.v_;
}
const char* _SrsContextId::c_str()
{
return v_.c_str();
}
bool _SrsContextId::empty()
{
return v_.empty();
}
int _SrsContextId::compare(const _SrsContextId& to)
{
return v_.compare(to.v_);
}