mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
refine code, persistence use isolate method.
This commit is contained in:
parent
b486f6fe6b
commit
f6ff116505
2 changed files with 28 additions and 3 deletions
|
@ -192,6 +192,8 @@ public:
|
|||
* so need to copy it to an old root directive, and use the copy result to do reload.
|
||||
*/
|
||||
virtual SrsConfDirective* copy();
|
||||
// @param except the name of sub directive.
|
||||
virtual SrsConfDirective* copy(std::string except);
|
||||
// args
|
||||
public:
|
||||
/**
|
||||
|
@ -414,6 +416,9 @@ public:
|
|||
* persistence current config to file.
|
||||
*/
|
||||
virtual int persistence();
|
||||
private:
|
||||
virtual int do_persistence(SrsFileWriter* fw);
|
||||
public:
|
||||
/**
|
||||
* dumps the global sections to json.
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue