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

for #319, support signal to persistence config

This commit is contained in:
winlin 2015-08-26 21:49:05 +08:00
parent 980e3921e4
commit 1e0481a2d0
4 changed files with 133 additions and 1 deletions

View file

@ -34,6 +34,8 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#include <srs_app_reload.hpp>
class SrsFileWriter;
namespace _srs_internal
{
class SrsConfigBuffer;
@ -136,6 +138,11 @@ public:
* parse config directive from file buffer.
*/
virtual int parse(_srs_internal::SrsConfigBuffer* buffer);
/**
* persistence the directive to writer.
* @param level, the root is level0, all its directives are level1, and so on.
*/
virtual int persistence(SrsFileWriter* writer, int level);
// private parse.
private:
/**