2013-11-23 03:36:07 +00:00
|
|
|
/*
|
|
|
|
The MIT License (MIT)
|
|
|
|
|
2014-01-01 02:37:12 +00:00
|
|
|
Copyright (c) 2013-2014 winlin
|
2013-11-23 03:36:07 +00:00
|
|
|
|
|
|
|
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
|
|
|
this software and associated documentation files (the "Software"), to deal in
|
|
|
|
the Software without restriction, including without limitation the rights to
|
|
|
|
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
|
|
|
the Software, and to permit persons to whom the Software is furnished to do so,
|
|
|
|
subject to the following conditions:
|
|
|
|
|
|
|
|
The above copyright notice and this permission notice shall be included in all
|
|
|
|
copies or substantial portions of the Software.
|
|
|
|
|
|
|
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
|
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
|
|
|
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
|
|
|
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
|
|
|
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
|
|
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
|
|
*/
|
|
|
|
|
2014-03-02 13:49:09 +00:00
|
|
|
#ifndef SRS_APP_RELOAD_HPP
|
|
|
|
#define SRS_APP_RELOAD_HPP
|
2013-11-23 03:36:07 +00:00
|
|
|
|
|
|
|
/*
|
2014-03-02 13:49:09 +00:00
|
|
|
#include <srs_app_reload.hpp>
|
2013-11-23 03:36:07 +00:00
|
|
|
*/
|
|
|
|
#include <srs_core.hpp>
|
|
|
|
|
2013-12-15 04:04:28 +00:00
|
|
|
#include <string>
|
2013-12-14 14:54:10 +00:00
|
|
|
|
2013-11-23 03:36:07 +00:00
|
|
|
/**
|
|
|
|
* the handler for config reload.
|
2014-04-10 02:09:30 +00:00
|
|
|
* when reload callback, the config is updated yet.
|
2014-04-28 09:57:59 +00:00
|
|
|
*
|
|
|
|
* features not support reload,
|
2014-10-24 03:35:06 +00:00
|
|
|
* @see: https://github.com/winlinvip/simple-rtmp-server/wiki/v1_CN_Reload#notsupportedfeatures
|
2013-11-23 03:36:07 +00:00
|
|
|
*/
|
2013-12-14 13:34:54 +00:00
|
|
|
class ISrsReloadHandler
|
2013-11-23 03:36:07 +00:00
|
|
|
{
|
|
|
|
public:
|
2014-03-18 03:32:58 +00:00
|
|
|
ISrsReloadHandler();
|
|
|
|
virtual ~ISrsReloadHandler();
|
2013-11-23 03:36:07 +00:00
|
|
|
public:
|
2014-03-18 03:32:58 +00:00
|
|
|
virtual int on_reload_listen();
|
2014-04-12 12:46:32 +00:00
|
|
|
virtual int on_reload_pid();
|
2014-04-12 13:35:26 +00:00
|
|
|
virtual int on_reload_log_tank();
|
|
|
|
virtual int on_reload_log_level();
|
|
|
|
virtual int on_reload_log_file();
|
2014-03-18 03:32:58 +00:00
|
|
|
virtual int on_reload_pithy_print();
|
2014-04-13 05:08:10 +00:00
|
|
|
virtual int on_reload_http_api_enabled();
|
|
|
|
virtual int on_reload_http_api_disabled();
|
2014-04-13 05:27:51 +00:00
|
|
|
virtual int on_reload_http_stream_enabled();
|
|
|
|
virtual int on_reload_http_stream_disabled();
|
|
|
|
virtual int on_reload_http_stream_updated();
|
|
|
|
virtual int on_reload_vhost_http_updated();
|
2014-04-10 02:09:30 +00:00
|
|
|
virtual int on_reload_vhost_added(std::string vhost);
|
2014-03-18 03:32:58 +00:00
|
|
|
virtual int on_reload_vhost_removed(std::string vhost);
|
2014-04-13 05:31:59 +00:00
|
|
|
virtual int on_reload_vhost_atc(std::string vhost);
|
|
|
|
virtual int on_reload_vhost_gop_cache(std::string vhost);
|
|
|
|
virtual int on_reload_vhost_queue_length(std::string vhost);
|
2014-06-25 09:14:11 +00:00
|
|
|
virtual int on_reload_vhost_time_jitter(std::string vhost);
|
2014-04-13 05:31:59 +00:00
|
|
|
virtual int on_reload_vhost_forward(std::string vhost);
|
|
|
|
virtual int on_reload_vhost_hls(std::string vhost);
|
2014-04-17 08:22:21 +00:00
|
|
|
virtual int on_reload_vhost_dvr(std::string vhost);
|
2014-12-04 10:21:04 +00:00
|
|
|
virtual int on_reload_vhost_mr(std::string vhost);
|
2014-12-04 13:35:13 +00:00
|
|
|
virtual int on_reload_vhost_mw(std::string vhost);
|
2014-12-06 11:56:06 +00:00
|
|
|
virtual int on_reload_vhost_chunk_size(std::string vhost);
|
2014-04-13 05:31:59 +00:00
|
|
|
virtual int on_reload_vhost_transcode(std::string vhost);
|
2014-04-10 03:21:47 +00:00
|
|
|
virtual int on_reload_ingest_removed(std::string vhost, std::string ingest_id);
|
|
|
|
virtual int on_reload_ingest_added(std::string vhost, std::string ingest_id);
|
|
|
|
virtual int on_reload_ingest_updated(std::string vhost, std::string ingest_id);
|
2013-11-23 03:36:07 +00:00
|
|
|
};
|
|
|
|
|
2014-08-02 14:18:39 +00:00
|
|
|
#endif
|