mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
refine code, move the order of functions.
This commit is contained in:
parent
71f2726b31
commit
65b2ed7ac5
4 changed files with 514 additions and 513 deletions
|
@ -253,6 +253,11 @@ public:
|
|||
* @remark, user can test the config before reload it.
|
||||
*/
|
||||
virtual int reload();
|
||||
private:
|
||||
/**
|
||||
* reload the vhost section of config.
|
||||
*/
|
||||
virtual int reload_vhost(SrsConfDirective* old_root);
|
||||
protected:
|
||||
/**
|
||||
* reload from the config.
|
||||
|
@ -269,10 +274,6 @@ private:
|
|||
*/
|
||||
virtual int reload_http_stream(SrsConfDirective* old_root);
|
||||
/**
|
||||
* reload the vhost section of config.
|
||||
*/
|
||||
virtual int reload_vhost(SrsConfDirective* old_root);
|
||||
/**
|
||||
* reload the transcode section of vhost of config.
|
||||
*/
|
||||
virtual int reload_transcode(SrsConfDirective* new_vhost, SrsConfDirective* old_vhost);
|
||||
|
@ -413,7 +414,7 @@ public:
|
|||
/**
|
||||
* get all vhosts in config file.
|
||||
*/
|
||||
virtual std::vector<SrsConfDirective*> get_vhosts();
|
||||
virtual void get_vhosts(std::vector<SrsConfDirective*>& vhosts);
|
||||
/**
|
||||
* whether vhost is enabled
|
||||
* @param vhost, the vhost name.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue