Lines Matching refs:caps
52 if (targetSt->caps != NULL) {
53 free(targetSt->caps);
54 targetSt->caps = NULL;
107 msgSt->caps = NULL;
110 APPSPAWN_LOGE("[appspawn] GetCaps failed, no caps array found.");
114 // caps array empty, means do not need any capability
121 APPSPAWN_LOGE("[appspawn] GetCaps, too many caps[cnt %d], max %d",
126 msgSt->caps = (unsigned int *)malloc(sizeof(unsigned int) * capsCnt);
127 if (msgSt->caps == NULL) {
136 free(msgSt->caps);
137 msgSt->caps = NULL;
140 msgSt->caps[i] = (unsigned int)cJSON_GetNumberValue(capJ);
141 if (msgSt->caps[i] > CAP_LAST_CAP) {
143 msgSt->caps[i]);
144 free(msgSt->caps);
145 msgSt->caps = NULL;