规范命名

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; const char *ssl;
// 证书密码可以为NULL // 证书密码可以为NULL
const char *ssl_pwd; const char *ssl_pwd;
} config; } mk_config;
/** /**
* *
* @param cfg * @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 #endif
//////////////////////////environment init/////////////////////////// //////////////////////////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); assert(cfg);
static onceToken token([&]() { static onceToken token([&]() {
Logger::Instance().add(std::make_shared<ConsoleChannel>("console", (LogLevel) cfg->log_level)); Logger::Instance().add(std::make_shared<ConsoleChannel>("console", (LogLevel) cfg->log_level));