mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
Remove some global elements for debugging. 3.0.152
This commit is contained in:
parent
9f9e3a5d42
commit
b348539687
16 changed files with 49 additions and 46 deletions
|
@ -77,7 +77,7 @@ bool srs_vector_actual_equals(const std::vector<T>& a, const std::vector<T>& b)
|
|||
return true;
|
||||
}
|
||||
|
||||
namespace _srs_internal
|
||||
namespace srs_internal
|
||||
{
|
||||
// The buffer of config content.
|
||||
class SrsConfigBuffer
|
||||
|
@ -228,7 +228,7 @@ public:
|
|||
// Parse utilities
|
||||
public:
|
||||
// Parse config directive from file buffer.
|
||||
virtual srs_error_t parse(_srs_internal::SrsConfigBuffer* buffer);
|
||||
virtual srs_error_t parse(srs_internal::SrsConfigBuffer* buffer);
|
||||
// Marshal the directive to writer.
|
||||
// @param level, the root is level0, all its directives are level1, and so on.
|
||||
virtual srs_error_t persistence(SrsFileWriter* writer, int level);
|
||||
|
@ -252,13 +252,13 @@ private:
|
|||
// 1. read a token(directive args and a ret flag),
|
||||
// 2. initialize the directive by args, args[0] is name, args[1-N] is args of directive,
|
||||
// 3. if ret flag indicates there are child-directives, read_conf(directive, block) recursively.
|
||||
virtual srs_error_t parse_conf(_srs_internal::SrsConfigBuffer* buffer, SrsDirectiveType type);
|
||||
virtual srs_error_t parse_conf(srs_internal::SrsConfigBuffer* buffer, SrsDirectiveType type);
|
||||
// Read a token from buffer.
|
||||
// A token, is the directive args and a flag indicates whether has child-directives.
|
||||
// @param args, the output directive args, the first is the directive name, left is the args.
|
||||
// @param line_start, the actual start line of directive.
|
||||
// @return, an error code indicates error or has child-directives.
|
||||
virtual srs_error_t read_token(_srs_internal::SrsConfigBuffer* buffer, std::vector<std::string>& args, int& line_start);
|
||||
virtual srs_error_t read_token(srs_internal::SrsConfigBuffer* buffer, std::vector<std::string>& args, int& line_start);
|
||||
};
|
||||
|
||||
// The config service provider.
|
||||
|
@ -422,7 +422,7 @@ protected:
|
|||
// Parse config from the buffer.
|
||||
// @param buffer, the config buffer, user must delete it.
|
||||
// @remark, use protected for the utest to override with mock.
|
||||
virtual srs_error_t parse_buffer(_srs_internal::SrsConfigBuffer* buffer);
|
||||
virtual srs_error_t parse_buffer(srs_internal::SrsConfigBuffer* buffer);
|
||||
// global env
|
||||
public:
|
||||
// Get the current work directory.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue