mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
Support include directive for config file (#2878)
* Support include import configuration * Remove support for regular rules * Remove support for regular rules * Fix configuration file parsing bug * Added utest tests for include functionality * Added utest tests for include functionality * Modify the UTest function * optimized code * Config: Refine parse error with state * Config: Reorder functions * Config: Rename parsing type to context * Config: Refine args for include * Config: Add utests for include * Config: Refine code, parsing recursively. * Config: Change the mock from file to buffer * Config: Mock buffer in config * Config: Refine code * Add utests for include * Added utest for include Co-authored-by: pengfei.ma <pengfei.ma@ngaa.com.cn> Co-authored-by: winlin <winlin@vip.126.com>
This commit is contained in:
parent
5e78c1fe88
commit
fde44885d9
5 changed files with 389 additions and 74 deletions
|
@ -43,10 +43,6 @@
|
|||
#define ERROR_SYSTEM_ASSERT_FAILED 1021
|
||||
#define ERROR_READER_BUFFER_OVERFLOW 1022
|
||||
#define ERROR_SYSTEM_CONFIG_INVALID 1023
|
||||
#define ERROR_SYSTEM_CONFIG_DIRECTIVE 1024
|
||||
#define ERROR_SYSTEM_CONFIG_BLOCK_START 1025
|
||||
#define ERROR_SYSTEM_CONFIG_BLOCK_END 1026
|
||||
#define ERROR_SYSTEM_CONFIG_EOF 1027
|
||||
#define ERROR_SYSTEM_STREAM_BUSY 1028
|
||||
#define ERROR_SYSTEM_IP_INVALID 1029
|
||||
#define ERROR_SYSTEM_FORWARD_LOOP 1030
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue