规范命名

This commit is contained in:
xiongziliang
2019-12-19 16:45:32 +08:00
parent f32f5df4eb
commit 15fbb3d087
2 changed files with 3 additions and 3 deletions

View File

@@ -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);
/**
* 设置配置项

View File

@@ -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));