mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-22 02:34:26 +08:00
规范命名
This commit is contained in:
parent
f32f5df4eb
commit
15fbb3d087
@ -63,13 +63,13 @@ typedef struct {
|
||||
const char *ssl;
|
||||
// 证书密码,可以为NULL
|
||||
const char *ssl_pwd;
|
||||
} config;
|
||||
} mk_config;
|
||||
|
||||
/**
|
||||
* 初始化环境,调用该库前需要先调用此函数
|
||||
* @param cfg 库运行相关参数
|
||||
*/
|
||||
API_EXPORT void API_CALL mk_env_init(const config *cfg);
|
||||
API_EXPORT void API_CALL mk_env_init(const mk_config *cfg);
|
||||
|
||||
/**
|
||||
* 设置配置项
|
||||
|
@ -51,7 +51,7 @@ static TcpServer::Ptr tcpRtpServer(new TcpServer());
|
||||
#endif
|
||||
|
||||
//////////////////////////environment init///////////////////////////
|
||||
API_EXPORT void API_CALL mk_env_init(const config *cfg) {
|
||||
API_EXPORT void API_CALL mk_env_init(const mk_config *cfg) {
|
||||
assert(cfg);
|
||||
static onceToken token([&]() {
|
||||
Logger::Instance().add(std::make_shared<ConsoleChannel>("console", (LogLevel) cfg->log_level));
|
||||
|
Loading…
Reference in New Issue
Block a user