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

RTC: Refine the api for context.

This commit is contained in:
winlin 2020-07-10 18:06:07 +08:00
parent 22ed55e2e5
commit a6b2e28d50
2 changed files with 11 additions and 6 deletions

View file

@ -37,17 +37,21 @@ _SrsContextId::_SrsContextId(const _SrsContextId& cp)
v_ = cp.v_;
}
const char* _SrsContextId::c_str()
_SrsContextId::~_SrsContextId()
{
}
const char* _SrsContextId::c_str() const
{
return v_.c_str();
}
bool _SrsContextId::empty()
bool _SrsContextId::empty() const
{
return v_.empty();
}
int _SrsContextId::compare(const _SrsContextId& to)
int _SrsContextId::compare(const _SrsContextId& to) const
{
return v_.compare(to.v_);
}