Home
last modified time | relevance | path

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

/base/global/resource_management_lite/frameworks/resmgr_lite/src/
Dglobal.c151 char realResourcePath[PATH_MAX] = {'\0'}; in GLOBAL_GetValueByIdInternal() local
153 if (utilsImpl->CheckFilePath(path, realResourcePath, PATH_MAX) == MC_FAILURE) { in GLOBAL_GetValueByIdInternal()
157 …uint32_t idHeaderOffset = utilsImpl->GetOffsetByLocale(realResourcePath, locale, MAX_LOCALE_LENGTH… in GLOBAL_GetValueByIdInternal()
159 int32_t file = open(realResourcePath, O_RDONLY, S_IRUSR | S_IRGRP | S_IROTH); in GLOBAL_GetValueByIdInternal()
220 char realResourcePath[PATH_MAX] = {'\0'}; in GLOBAL_GetValueByNameInternal() local
222 if (utilsImpl->CheckFilePath(path, realResourcePath, PATH_MAX) == MC_FAILURE) { in GLOBAL_GetValueByNameInternal()
225 …uint32_t idHeaderOffset = utilsImpl->GetOffsetByLocale(realResourcePath, locale, MAX_LOCALE_LENGTH… in GLOBAL_GetValueByNameInternal()
227 int32_t file = open(realResourcePath, O_RDONLY, S_IRUSR | S_IRGRP | S_IROTH); in GLOBAL_GetValueByNameInternal()
Dglobal_utils.c57 static int32_t CheckFilePath(const char *path, char *realResourcePath, int32_t length);
329 static int32_t CheckFilePath(const char *path, char *realResourcePath, int32_t length) in CheckFilePath() argument
335 if (!PathCanonicalizeA((char*)path, realResourcePath)) { in CheckFilePath()
340 int ret = strcpy_s(realResourcePath, PATH_MAX, path); in CheckFilePath()
346 if (realpath(path, realResourcePath) == NULL) { in CheckFilePath()
358 char realResourcePath[PATH_MAX] = {0}; in GetOffsetByLocale() local
359 if (CheckFilePath(path, realResourcePath, PATH_MAX) == MC_FAILURE) { in GetOffsetByLocale()
362 int32_t file = open(realResourcePath, O_RDONLY, S_IRUSR | S_IRGRP | S_IROTH); in GetOffsetByLocale()
/base/global/resource_management_lite/frameworks/resmgr_lite/include/
Dglobal_utils.h106 int32_t (*CheckFilePath)(const char *path, char *realResourcePath, int32_t length);