Home
last modified time | relevance | path

Searched refs:cfgStream (Results 1 – 3 of 3) sorted by relevance

/ohos5.0/base/startup/appspawn/service/hnp/base/
H A Dhnp_zip.c508 char *cfgStream = NULL; in HnpCfgGetFromZip() local
536 cfgStream = malloc(fileInfo.uncompressed_size); in HnpCfgGetFromZip()
537 if (cfgStream == NULL) { in HnpCfgGetFromZip()
542 int readSize = unzReadCurrentFile(zipFile, cfgStream, fileInfo.uncompressed_size); in HnpCfgGetFromZip()
544 free(cfgStream); in HnpCfgGetFromZip()
553 ret = HnpCfgGetFromSteam(cfgStream, hnpCfg); in HnpCfgGetFromZip()
554 free(cfgStream); in HnpCfgGetFromZip()
H A Dhnp_json.c126 char *cfgStream = NULL; in ParseHnpCfgFile() local
130 ret = ReadFileToStream(hnpCfgPath, &cfgStream, &size); in ParseHnpCfgFile()
135 json = cJSON_Parse(cfgStream); in ParseHnpCfgFile()
136 free(cfgStream); in ParseHnpCfgFile()
147 int HnpCfgGetFromSteam(char *cfgStream, HnpCfgInfo *hnpCfg) in HnpCfgGetFromSteam() argument
152 if (cfgStream == NULL) { in HnpCfgGetFromSteam()
157 json = cJSON_Parse(cfgStream); in HnpCfgGetFromSteam()
H A Dhnp_base.h265 int HnpCfgGetFromSteam(char *cfgStream, HnpCfgInfo *hnpCfg);