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

For #820, extract service module.

This commit is contained in:
winlin 2017-03-26 10:16:21 +08:00
parent 0a57a46016
commit ff822b55cd
16 changed files with 510 additions and 213 deletions

View file

@ -30,15 +30,15 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#include <srs_app_log.hpp>
// kernel module.
ISrsLog* _srs_log = new MockEmptyLog(SrsLogLevel::Disabled);
ISrsLog* _srs_log = new MockEmptyLog(SrsLogLevelDisabled);
ISrsThreadContext* _srs_context = new ISrsThreadContext();
// app module.
SrsConfig* _srs_config = NULL;
SrsServer* _srs_server = NULL;
MockEmptyLog::MockEmptyLog(int level)
MockEmptyLog::MockEmptyLog(SrsLogLevel l)
{
_level = level;
level = l;
}
MockEmptyLog::~MockEmptyLog()

View file

@ -84,7 +84,7 @@ void srs_bytes_print(char* pa, int size);
class MockEmptyLog : public SrsFastLog
{
public:
MockEmptyLog(int level);
MockEmptyLog(SrsLogLevel l);
virtual ~MockEmptyLog();
};