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

Context: Refine API

This commit is contained in:
winlin 2020-08-30 09:53:10 +08:00
parent cf428b8db4
commit 311cb77b36
5 changed files with 12 additions and 10 deletions

View file

@ -27,11 +27,6 @@ _SrsContextId::_SrsContextId()
{
}
_SrsContextId::_SrsContextId(std::string v)
{
v_ = v;
}
_SrsContextId::_SrsContextId(const _SrsContextId& cp)
{
v_ = cp.v_;
@ -57,6 +52,12 @@ bool _SrsContextId::empty() const
return v_.empty();
}
_SrsContextId& _SrsContextId::set_value(const std::string& v)
{
v_ = v;
return *this;
}
int _SrsContextId::compare(const _SrsContextId& to) const
{
return v_.compare(to.v_);