Lines Matching refs:hnpCfg
29 static int AddHnpCfgFileToZip(zipFile zf, const char *hnpSrcPath, HnpCfgInfo *hnpCfg)
52 ret = GetHnpJsonBuff(hnpCfg, &buff);
72 HnpCfgInfo *hnpCfg = &hnpPack->cfgInfo;
75 hnpSrcPath, hnpCfg->name, hnpCfg->version, hnpDstPath);
78 ret = sprintf_s(hnp_file_path, MAX_FILE_PATH_LEN, "%s%c%s.hnp", hnpDstPath, DIR_SPLIT_SYMBOL, hnpCfg->name);
96 "ret=%{public}d", hnpSrcPath, hnpCfg->name, hnpCfg->version, hnpDstPath, ret);
115 "linkNum=%{public}d, ret=%{public}d", hnpSrcPath, hnpCfg->name, hnpCfg->version, hnpDstPath, hnpCfg->linkNum,
121 static int GetHnpCfgInfo(const char *hnpCfgPath, const char *sourcePath, HnpCfgInfo *hnpCfg)
126 int ret = ParseHnpCfgFile(hnpCfgPath, hnpCfg);
132 linkArr = hnpCfg->links;
133 for (unsigned int i = 0; i < hnpCfg->linkNum; i++, linkArr++) {
136 free(hnpCfg->links);
137 hnpCfg->links = NULL;
142 free(hnpCfg->links);
143 hnpCfg->links = NULL;