1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-02-15 04:42:04 +00:00
srs/trunk/src/app/srs_app_reload.hpp

86 lines
3.5 KiB
C++
Raw Normal View History

2017-03-25 09:21:39 +00:00
/**
* The MIT License (MIT)
*
* Copyright (c) 2013-2017 SRS(ossrs)
*
* 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.
*/
2013-11-23 03:36:07 +00:00
#ifndef SRS_APP_RELOAD_HPP
#define 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
/**
2017-03-25 09:21:39 +00:00
* the handler for config reload.
* when reload callback, the config is updated yet.
*
* features not support reload,
* @see: https://github.com/ossrs/srs/wiki/v1_CN_Reload#notsupportedfeatures
*/
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:
virtual int on_reload_utc_time();
virtual int on_reload_max_conns();
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();
virtual int on_reload_http_api_crossdomain();
virtual int on_reload_http_api_raw_api();
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_http_stream_crossdomain();
public:
// TODO: FIXME: should rename to http_static
2014-04-13 05:27:51 +00:00
virtual int on_reload_vhost_http_updated();
2015-07-09 05:52:41 +00:00
virtual int on_reload_vhost_http_remux_updated(std::string vhost);
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);
virtual int on_reload_vhost_play(std::string vhost);
virtual int on_reload_vhost_forward(std::string vhost);
2017-02-11 13:14:28 +00:00
virtual int on_reload_vhost_dash(std::string vhost);
virtual int on_reload_vhost_hls(std::string vhost);
2015-03-12 14:38:11 +00:00
virtual int on_reload_vhost_hds(std::string vhost);
2014-04-17 08:22:21 +00:00
virtual int on_reload_vhost_dvr(std::string vhost);
virtual int on_reload_vhost_dvr_apply(std::string vhost);
virtual int on_reload_vhost_publish(std::string vhost);
virtual int on_reload_vhost_tcp_nodelay(std::string vhost);
virtual int on_reload_vhost_realtime(std::string vhost);
2014-12-06 11:56:06 +00:00
virtual int on_reload_vhost_chunk_size(std::string vhost);
virtual int on_reload_vhost_transcode(std::string vhost);
virtual int on_reload_vhost_exec(std::string vhost);
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);
2015-03-31 10:06:55 +00:00
virtual int on_reload_user_info();
2013-11-23 03:36:07 +00:00
};
2014-08-02 14:18:39 +00:00
#endif