Lines Matching refs:PARAM_CHECK

30     PARAM_CHECK(trigger != NULL, return -1, "trigger is null");

36 PARAM_CHECK(node != NULL, return -1, "Failed to alloc memory for command");
43 PARAM_CHECK(ret == EOK, free(node);
54 PARAM_CHECK(trigger->lastCmd != NULL, free(node);
64 PARAM_CHECK(trigger != NULL, return NULL, "trigger is null");
79 PARAM_CHECK(ret == 0, return -1, "Failed to convert condition for trigger");
81 PARAM_CHECK(node->condition != NULL, return -1, "Failed to dup conditition");
89 PARAM_CHECK(node != NULL, return NULL, "Failed to alloc memory for trigger");
92 PARAM_CHECK(ret == 0, free(node);
106 PARAM_CHECK(ret == EOK, return -1, "Failed to copy name for trigger");
110 PARAM_CHECK(ret == 0, return -1, "Failed to add hash node");
117 PARAM_CHECK(workSpace != NULL, return NULL, "workSpace is null");
118 PARAM_CHECK(extInfo != NULL && extInfo->addNode != NULL, return NULL, "extInfo is null");
119 PARAM_CHECK(extInfo->type <= TRIGGER_UNKNOW, return NULL, "Invalid type");
121 PARAM_CHECK(triggerHead != NULL, return NULL, "Failed to get header %d", extInfo->type);
125 PARAM_CHECK(node != NULL, return NULL, "Failed to alloc jobnode");
127 PARAM_CHECK(ret == 0, FreeTrigger(workSpace, node);
140 PARAM_CHECK(workSpace != NULL, return, "Param is null");
141 PARAM_CHECK(trigger != NULL, return, "Trigger is null");
144 PARAM_CHECK(triggerHead != NULL, return, "Failed to get header %d", trigger->type);
179 PARAM_CHECK(workSpace != NULL, return NULL, "workSpace is null");
180 PARAM_CHECK(extInfo != NULL && extInfo->addNode != NULL, return NULL, "extInfo is null");
182 PARAM_CHECK(triggerHead != NULL, return NULL, "Failed to get header %d", extInfo->type);
193 PARAM_CHECK(node != NULL, return NULL, "Failed to alloc memory for trigger");
195 PARAM_CHECK(ret == 0, FreeTrigger(workSpace, node);
205 PARAM_CHECK(workSpace != NULL && trigger != NULL, return, "Param is null");
207 PARAM_CHECK(triggerHead != NULL, return, "Failed to get header %d", trigger->type);
227 PARAM_CHECK(triggerHead != NULL, return NULL, "Invalid triggerHead");
247 PARAM_CHECK(trigger != NULL, return "", "Invalid trigger");
248 PARAM_CHECK(trigger->type == TRIGGER_BOOT, return "", "Invalid type");
255 PARAM_CHECK(trigger != NULL, return "", "Invalid trigger");
256 PARAM_CHECK(trigger->type <= TRIGGER_UNKNOW, return "", "Invalid type");
263 PARAM_CHECK(trigger != NULL, return "", "Invalid trigger");
264 PARAM_CHECK(trigger->type < TRIGGER_MAX && trigger->type > TRIGGER_UNKNOW,
272 PARAM_CHECK(workSpace != NULL && name != NULL, return NULL, "name is null");
273 PARAM_CHECK(type <= TRIGGER_UNKNOW, return NULL, "Invalid type");
275 PARAM_CHECK(triggerHead != NULL, return NULL, "Failed to get header %d", type);
285 PARAM_CHECK(ret == 0, FreeTrigger(workSpace, (TriggerNode*)jobNode);
293 PARAM_CHECK(workSpace != NULL && triggerName != NULL, return NULL, "Invalid param");
304 PARAM_CHECK(workSpace != NULL && trigger != NULL, return, "Invalid param");
313 PARAM_CHECK(workSpace != NULL, return, "head is null");
315 PARAM_CHECK(head != NULL, return, "Failed to get header %d", type);
327 PARAM_CHECK(workSpace != NULL, return -1, "Invalid workSpace");
335 PARAM_CHECK(workSpace != NULL, return NULL, "Invalid workSpace");
396 PARAM_CHECK(head != NULL, return 0, "Failed to get header %d", type);
412 PARAM_CHECK(workSpace != NULL, return -1, "Invalid space");
413 PARAM_CHECK((type == TRIGGER_BOOT) || (type == TRIGGER_PARAM_WATCH), return -1, "Invalid type");
420 PARAM_CHECK(workSpace != NULL, return -1, "Invalid space");
421 PARAM_CHECK((type == TRIGGER_PARAM) || (type == TRIGGER_PARAM_WAIT), return -1, "Invalid type");
425 PARAM_CHECK(ret == 0, return -1, "Failed parse content name");
428 PARAM_CHECK(ret == 0, return -1, "Failed parse content value");
435 PARAM_CHECK(workSpace != NULL && content != NULL, return -1, "Failed arg for trigger");
436 PARAM_CHECK(type == TRIGGER_UNKNOW, return -1, "Invalid type");
440 PARAM_CHECK(ret == EOK, return -1, "Failed to memcpy");
448 PARAM_CHECK(workSpace != NULL && name != NULL, return 0, "Failed arg for trigger");
450 PARAM_CHECK(head != NULL, return 0, "Failed to get header %d", type);
470 PARAM_CHECK(workSpace != NULL && content != NULL && triggerCheckDone != NULL,
504 PARAM_CHECK(trigger != NULL, return, "Empty trigger");
513 PARAM_CHECK(trigger != NULL, return, "Empty trigger");
524 PARAM_CHECK(workSpace != NULL, return, "Invalid workSpace ");
526 PARAM_CHECK(head != NULL, return, "Failed to get header %d", type);
542 PARAM_CHECK(workSpace != NULL, return, "Invalid workSpace ");
567 PARAM_CHECK(trigger != NULL && data != NULL, return -1, "Invalid trigger");
647 PARAM_CHECK(workSpace != NULL, return, "Invalid workSpace");
649 PARAM_CHECK(ret == 0, return, "Failed to create hash map");
689 PARAM_CHECK(data != NULL, return, "Invalid data");
691 PARAM_CHECK(head != NULL, return, "Failed to get header %d", type);
692 PARAM_CHECK(head->compareData != NULL, return, "Invalid compareData");
705 PARAM_CHECK(watcher != NULL, return, "Invalid watcher");
707 PARAM_CHECK(head != NULL, return, "Failed to get header %d", type);
730 PARAM_CHECK(head != NULL && head->nextTrigger != NULL, return 0, "Invalid header");
769 PARAM_CHECK(trigger != NULL, return "", "Invalid trigger");