diff --git a/api/include/common.h b/api/include/common.h index da39e557..39198d55 100755 --- a/api/include/common.h +++ b/api/include/common.h @@ -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); /** * 设置配置项 diff --git a/api/source/common.cpp b/api/source/common.cpp index 36446d49..27cb2a80 100755 --- a/api/source/common.cpp +++ b/api/source/common.cpp @@ -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("console", (LogLevel) cfg->log_level));