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

@ -124,13 +124,14 @@ private:
std::string v_;
public:
_SrsContextId();
_SrsContextId(std::string v);
_SrsContextId(const _SrsContextId& cp);
_SrsContextId& operator=(const _SrsContextId& cp);
virtual ~_SrsContextId();
public:
const char* c_str() const;
bool empty() const;
// Set the value of context id.
_SrsContextId& set_value(const std::string& v);
// Compare the two context id. @see http://www.cplusplus.com/reference/string/string/compare/
// 0 They compare equal
// <0 Either the value of the first character that does not match is lower in the compared string, or all compared characters match but the compared string is shorter.