• Home
  • Raw
  • Download

Lines Matching refs:triggerHead

82 static TriggerNode *AddTriggerNode_(TriggerHeader *triggerHead,  in AddTriggerNode_()  argument
94 OH_ListAddTail(&triggerHead->triggerList, &node->node); in AddTriggerNode_()
95 triggerHead->triggerCount++; in AddTriggerNode_()
117 TriggerHeader *triggerHead = GetTriggerHeader(workSpace, extInfo->type); in AddJobTrigger_() local
118 PARAM_CHECK(triggerHead != NULL, return NULL, "Failed to get header %d", extInfo->type); in AddJobTrigger_()
121 …TriggerNode *node = (TriggerNode *)AddTriggerNode_(triggerHead, extInfo->type, condition, triggerN… in AddJobTrigger_()
140 TriggerHeader *triggerHead = GetTriggerHeader(workSpace, trigger->type); in DelJobTrigger_() local
141 PARAM_CHECK(triggerHead != NULL, return, "Failed to get header %d", trigger->type); in DelJobTrigger_()
146 triggerHead->cmdNodeCount--; in DelJobTrigger_()
156 triggerHead->triggerCount--; in DelJobTrigger_()
178 TriggerHeader *triggerHead = GetTriggerHeader(workSpace, extInfo->type); in AddWatchTrigger_() local
179 PARAM_CHECK(triggerHead != NULL, return NULL, "Failed to get header %d", extInfo->type); in AddWatchTrigger_()
189 TriggerNode *node = AddTriggerNode_(triggerHead, extInfo->type, condition, size); in AddWatchTrigger_()
203 TriggerHeader *triggerHead = GetTriggerHeader(workSpace, trigger->type); in DelWatchTrigger_() local
204 PARAM_CHECK(triggerHead != NULL, return, "Failed to get header %d", trigger->type); in DelWatchTrigger_()
213 PARAM_LOGV("DelWatchTrigger_ %s count %d", GetTriggerName(trigger), triggerHead->triggerCount); in DelWatchTrigger_()
214 triggerHead->triggerCount--; in DelWatchTrigger_()
218 static TriggerNode *GetNextTrigger_(const TriggerHeader *triggerHead, const TriggerNode *curr) in GetNextTrigger_() argument
220 PARAM_CHECK(triggerHead != NULL, return NULL, "Invalid triggerHead"); in GetNextTrigger_()
225 node = triggerHead->triggerList.next; in GetNextTrigger_()
227 if (node != &triggerHead->triggerList) { in GetNextTrigger_()
267 TriggerHeader *triggerHead = GetTriggerHeader(workSpace, type); in UpdateJobTrigger() local
268 PARAM_CHECK(triggerHead != NULL, return NULL, "Failed to get header %d", type); in UpdateJobTrigger()
275 return (JobNode *)triggerHead->addTrigger(workSpace, condition, &extInfo); in UpdateJobTrigger()
466 TriggerHeader *triggerHead = GetTriggerHeader(workSpace, type); in CheckTrigger() local
467 if (triggerHead != NULL) { in CheckTrigger()
470 … int ret = triggerHead->checkTriggerMatch(workSpace, type, &calculator, content, contentSize); in CheckTrigger()
641 TriggerHeader *head = (TriggerHeader *)&workSpace->triggerHead[TRIGGER_BOOT]; in InitTriggerHead()
644 head = (TriggerHeader *)&workSpace->triggerHead[TRIGGER_PARAM]; in InitTriggerHead()
650 head = (TriggerHeader *)&workSpace->triggerHead[TRIGGER_UNKNOW]; in InitTriggerHead()
656 head = (TriggerHeader *)&workSpace->triggerHead[TRIGGER_PARAM_WAIT]; in InitTriggerHead()
666 head = (TriggerHeader *)&workSpace->triggerHead[TRIGGER_PARAM_WATCH]; in InitTriggerHead()
698 ListNode *node = watcher->triggerHead.next; in ClearWatchTrigger()
699 while (node != &watcher->triggerHead) { in ClearWatchTrigger()
742 return (TriggerHeader *)&workSpace->triggerHead[type]; in GetTriggerHeader()
760 TriggerHeader *triggerHead = GetTriggerHeader(GetTriggerWorkSpace(), trigger->type); in GetTriggerName() local
761 if (triggerHead) { in GetTriggerName()
762 return triggerHead->getTriggerName(trigger); in GetTriggerName()