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:
parent
cf428b8db4
commit
311cb77b36
5 changed files with 12 additions and 10 deletions
|
@ -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_);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue