Lines Matching defs:perms
206 static int ParsePermissions(const char *jsonStr, PermissionSaved **perms, int *permNum)
225 *perms = (PermissionSaved *) malloc(allocSize);
226 if (*perms == NULL) {
238 free(*perms);
239 *perms = NULL;
242 if (strcpy_s((*perms + i)->name, PERM_NAME_LEN, itemName->valuestring) != EOK
243 || strcpy_s((*perms + i)->desc, PERM_DESC_LEN, itemDesc->valuestring) != EOK) {
245 free(*perms);
246 *perms = NULL;
249 (*perms + i)->granted = (enum IsGranted) itemGranted->valueint;
282 HILOG_INFO(HILOG_MODULE_APP, "[perms: %s]", jsonStr);