Home
last modified time | relevance | path

Searched refs:curItem (Results 1 – 6 of 6) sorted by relevance

/base/startup/init/services/init/
Dinit_service_manager.c712 static int GetServiceSandbox(const cJSON *curItem, Service *service) in GetServiceSandbox() argument
714 cJSON *item = cJSON_GetObjectItem(curItem, "sandbox"); in GetServiceSandbox()
803 static void ParseOneServiceArgs(const cJSON *curItem, Service *service) in ParseOneServiceArgs() argument
805 (void)GetServiceArgs(curItem, "writepid", MAX_WRITEPID_FILES, &service->writePidArgs); in ParseOneServiceArgs()
806 (void)GetServiceArgs(curItem, D_CAPS_STR_IN_CFG, MAX_WRITEPID_FILES, &service->capsArgs); in ParseOneServiceArgs()
807 (void)GetServiceArgs(curItem, "permission", MAX_WRITEPID_FILES, &service->permArgs); in ParseOneServiceArgs()
808 (void)GetServiceArgs(curItem, "permission_acls", MAX_WRITEPID_FILES, &service->permAclsArgs); in ParseOneServiceArgs()
810 char *fieldStr = GetStringValue(curItem, APL_STR_IN_CFG, &strLen); in ParseOneServiceArgs()
818 (void)GetCpuArgs(curItem, CPU_CORE_STR_IN_CFG, service); in ParseOneServiceArgs()
821 int ParseOneService(const cJSON *curItem, Service *service) in ParseOneService() argument
[all …]
/base/security/device_auth/common_lib/impl/src/
Djson_utils.c71 CJson *curItem = jsonObj->child; in DeleteAllItemExceptOne() local
73 while (curItem != NULL) { in DeleteAllItemExceptOne()
74 nextItem = curItem->next; in DeleteAllItemExceptOne()
75 if (strcmp(key, curItem->string) != 0) { in DeleteAllItemExceptOne()
76 cJSON_Delete(cJSON_DetachItemViaPointer(jsonObj, curItem)); in DeleteAllItemExceptOne()
78 curItem = nextItem; in DeleteAllItemExceptOne()
88 CJson *curItem = jsonObj->child; in DeleteAllItem() local
90 while (curItem != NULL) { in DeleteAllItem()
91 nextItem = curItem->next; in DeleteAllItem()
92 cJSON_Delete(cJSON_DetachItemViaPointer(jsonObj, curItem)); in DeleteAllItem()
[all …]
/base/startup/init/test/unittest/lite/
Dcmd_func_test.cpp603 static void CheckService(const cJSON* curItem) in CheckService() argument
605 if (curItem == nullptr) { in CheckService()
609 char *nameStr = cJSON_GetStringValue(cJSON_GetObjectItem(curItem, "name")); in CheckService()
616 cJSON *pathArgsItem = cJSON_GetObjectItem(curItem, "path"); in CheckService()
633 cJSON *filedJ = cJSON_GetObjectItem(curItem, "uid"); in CheckService()
637 filedJ = cJSON_GetObjectItem(curItem, "gid"); in CheckService()
641 filedJ = cJSON_GetObjectItem(curItem, "once"); in CheckService()
644 filedJ = cJSON_GetObjectItem(curItem, "importance"); in CheckService()
647 filedJ = cJSON_GetObjectItem(curItem, "caps"); in CheckService()
666 cJSON *curItem = cJSON_GetArrayItem(serviceArr, i); in CheckServices() local
[all …]
/base/startup/init/services/init/include/
Dinit_service_manager.h53 int ParseOneService(const cJSON *curItem, Service *service);
/base/startup/appspawn_lite/services/src/
Dappspawn_message.c103 static int GetCaps(const cJSON* curItem, MessageSt* msgSt) in GetCaps() argument
107 cJSON* capItem = cJSON_GetObjectItem(curItem, "capability"); in GetCaps()
/base/startup/appspawn/lite/
Dappspawn_message.c104 static int GetCaps(const cJSON *curItem, MessageSt *msgSt) in GetCaps() argument
108 cJSON *capItem = cJSON_GetObjectItem(curItem, "capability"); in GetCaps()