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

support reload http_api

This commit is contained in:
winlin 2014-04-13 13:08:10 +08:00
parent 17ac29d160
commit c33ff4fdb8
6 changed files with 167 additions and 57 deletions

View file

@ -124,6 +124,8 @@ public:
virtual void unsubscribe(ISrsReloadHandler* handler);
virtual int reload();
private:
virtual int reload_http_api(SrsConfDirective* old_root);
virtual int reload_vhost(SrsConfDirective* old_root);
virtual int reload_transcode(SrsConfDirective* new_vhost, SrsConfDirective* old_vhost);
virtual int reload_ingest(SrsConfDirective* new_vhost, SrsConfDirective* old_vhost);
// parse options and file
@ -222,6 +224,7 @@ private:
virtual SrsConfDirective* get_http_api();
public:
virtual bool get_http_api_enabled();
virtual bool get_http_api_enabled(SrsConfDirective* conf);
virtual int get_http_api_listen();
// http stream section
private: