Home
last modified time | relevance | path

Searched refs:hnpCfg (Results 1 - 5 of 5) sorted by relevance

/base/startup/appspawn/service/hnp/pack/src/
H A Dhnp_pack.c29 static int AddHnpCfgFileToZip(zipFile zf, const char *hnpSrcPath, HnpCfgInfo *hnpCfg) in AddHnpCfgFileToZip() argument
52 ret = GetHnpJsonBuff(hnpCfg, &buff); in AddHnpCfgFileToZip()
72 HnpCfgInfo *hnpCfg = &hnpPack->cfgInfo; in PackHnp() local
75 hnpSrcPath, hnpCfg->name, hnpCfg->version, hnpDstPath); in PackHnp()
78 ret = sprintf_s(hnp_file_path, MAX_FILE_PATH_LEN, "%s%c%s.hnp", hnpDstPath, DIR_SPLIT_SYMBOL, hnpCfg->name); in PackHnp()
96 "ret=%{public}d", hnpSrcPath, hnpCfg->name, hnpCfg->version, hnpDstPath, ret); in PackHnp()
115 "linkNum=%{public}d, ret=%{public}d", hnpSrcPath, hnpCfg->name, hnpCfg in PackHnp()
121 GetHnpCfgInfo(const char *hnpCfgPath, const char *sourcePath, HnpCfgInfo *hnpCfg) GetHnpCfgInfo() argument
[all...]
/base/startup/appspawn/service/hnp/installer/src/
H A Dhnp_installer.c50 static int HnpGenerateSoftLinkAllByJson(const char *installPath, const char *dstPath, HnpCfgInfo *hnpCfg) in HnpGenerateSoftLinkAllByJson() argument
54 NativeBinLink *currentLink = hnpCfg->links; in HnpGenerateSoftLinkAllByJson()
65 for (unsigned int i = 0; i < hnpCfg->linkNum; i++) { in HnpGenerateSoftLinkAllByJson()
165 static int HnpGenerateSoftLink(const char *installPath, const char *hnpBasePath, HnpCfgInfo *hnpCfg) in HnpGenerateSoftLink() argument
176 if (hnpCfg->linkNum == 0) { in HnpGenerateSoftLink()
179 ret = HnpGenerateSoftLinkAllByJson(installPath, binPath, hnpCfg); in HnpGenerateSoftLink()
185 static int HnpInstall(const char *hnpFile, HnpInstallInfo *hnpInfo, HnpCfgInfo *hnpCfg, in HnpInstall() argument
197 return HnpGenerateSoftLink(hnpInfo->hnpVersionPath, hnpInfo->hnpBasePath, hnpCfg); in HnpInstall()
382 static int HnpPublicDealAfterInstall(HnpInstallInfo *hnpInfo, HnpCfgInfo *hnpCfg) in HnpPublicDealAfterInstall() argument
384 char *version = HnpCurrentVersionUninstallCheck(hnpCfg in HnpPublicDealAfterInstall()
403 HnpCfgInfo hnpCfg = {0}; HnpReadAndInstall() local
[all...]
/base/startup/appspawn/service/hnp/base/
H A Dhnp_json.c28 static int ParseLinksJsonToCfgInfo(cJSON *linksItem, HnpCfgInfo *hnpCfg) in ParseLinksJsonToCfgInfo() argument
34 hnpCfg->linkNum = (size_t)linkArrayNum; in ParseLinksJsonToCfgInfo()
66 hnpCfg->links = linkArray; in ParseLinksJsonToCfgInfo()
68 hnpCfg->linkNum = 0; in ParseLinksJsonToCfgInfo()
73 static int ParseJsonStreamToHnpCfgInfo(cJSON *json, HnpCfgInfo *hnpCfg) in ParseJsonStreamToHnpCfgInfo() argument
91 ret = strcpy_s(hnpCfg->name, MAX_FILE_PATH_LEN, nameItem->valuestring); in ParseJsonStreamToHnpCfgInfo()
101 ret = strcpy_s(hnpCfg->version, HNP_VERSION_LEN, versionItem->valuestring); in ParseJsonStreamToHnpCfgInfo()
113 ret = ParseLinksJsonToCfgInfo(linksItem, hnpCfg); in ParseJsonStreamToHnpCfgInfo()
118 hnpCfg->linkNum = 0; in ParseJsonStreamToHnpCfgInfo()
123 int ParseHnpCfgFile(const char *hnpCfgPath, HnpCfgInfo *hnpCfg) in ParseHnpCfgFile() argument
147 HnpCfgGetFromSteam(char *cfgStream, HnpCfgInfo *hnpCfg) HnpCfgGetFromSteam() argument
167 GetHnpJsonBuff(HnpCfgInfo *hnpCfg, char **buff) GetHnpJsonBuff() argument
228 HnpPackageVersionUpdateAll(cJSON *json, const HnpCfgInfo *hnpCfg) HnpPackageVersionUpdateAll() argument
272 HnpHapJsonHnpAdd(bool hapExist, cJSON *json, cJSON *hapItem, const char *hnpPackageName, const HnpCfgInfo *hnpCfg) HnpHapJsonHnpAdd() argument
321 HnpInstallInfoJsonWrite(const char *hapPackageName, const HnpCfgInfo *hnpCfg) HnpInstallInfoJsonWrite() argument
[all...]
H A Dhnp_base.h273 int HnpCfgGetFromZip(const char *inputFile, HnpCfgInfo *hnpCfg);
284 int ParseHnpCfgFile(const char *hnpCfgPath, HnpCfgInfo *hnpCfg);
286 int GetHnpJsonBuff(HnpCfgInfo *hnpCfg, char **buff);
288 int HnpCfgGetFromSteam(char *cfgStream, HnpCfgInfo *hnpCfg);
290 int HnpInstallInfoJsonWrite(const char *hapPackageName, const HnpCfgInfo *hnpCfg);
H A Dhnp_zip.c477 int HnpCfgGetFromZip(const char *inputFile, HnpCfgInfo *hnpCfg) in HnpCfgGetFromZip() argument
526 ret = HnpCfgGetFromSteam(cfgStream, hnpCfg); in HnpCfgGetFromZip()

Completed in 4 milliseconds