Searched refs:TriggerNode (Results 1 – 6 of 6) sorted by relevance
/base/startup/init/services/param/trigger/ |
D | trigger_manager.c | 68 static int CopyCondition(TriggerNode *node, const char *condition) in CopyCondition() 82 static TriggerNode *AddTriggerNode_(TriggerHeader *triggerHead, in AddTriggerNode_() 85 TriggerNode *node = (TriggerNode *)calloc(1, dataSize); in AddTriggerNode_() 99 static int32_t AddJobNode_(TriggerNode *trigger, const TriggerExtInfo *extInfo) in AddJobNode_() 111 static TriggerNode *AddJobTrigger_(const TriggerWorkSpace *workSpace, in AddJobTrigger_() 121 …TriggerNode *node = (TriggerNode *)AddTriggerNode_(triggerHead, extInfo->type, condition, triggerN… in AddJobTrigger_() 135 static void DelJobTrigger_(const TriggerWorkSpace *workSpace, TriggerNode *trigger) in DelJobTrigger_() 173 static TriggerNode *AddWatchTrigger_(const TriggerWorkSpace *workSpace, in AddWatchTrigger_() 189 TriggerNode *node = AddTriggerNode_(triggerHead, extInfo->type, condition, size); in AddWatchTrigger_() 200 static void DelWatchTrigger_(const TriggerWorkSpace *workSpace, TriggerNode *trigger) in DelWatchTrigger_() [all …]
|
D | trigger_processor.c | 32 static int DoTriggerExecute_(const TriggerNode *trigger, const char *content, uint32_t size) in DoTriggerExecute_() 47 static int DoTriggerCheckResult(TriggerNode *trigger, const char *content, uint32_t size) in DoTriggerCheckResult() 61 static int ExecuteTriggerImmediately(TriggerNode *trigger, const char *content, uint32_t size) in ExecuteTriggerImmediately() 77 static void StartTriggerExecute_(TriggerNode *trigger, const char *content, uint32_t size) in StartTriggerExecute_() 98 TriggerNode *trigger = ExecuteQueuePop(&g_triggerWorkSpace); in ExecuteQueueWork() 303 …ggerWorkSpace.executeQueue.executeQueue = calloc(1, TRIGGER_EXECUTE_QUEUE * sizeof(TriggerNode *)); in InitTriggerWorkSpace() 346 if (trigger != NULL && !TRIGGER_IN_QUEUE((TriggerNode *)trigger)) { in DoTriggerExec() 348 TRIGGER_SET_FLAG((TriggerNode *)trigger, TRIGGER_FLAGS_QUEUE); in DoTriggerExec() 349 ExecuteQueuePush(&g_triggerWorkSpace, (TriggerNode *)trigger); in DoTriggerExec() 360 StartTriggerExecute_((TriggerNode *)trigger, NULL, 0); in DoJobExecNow()
|
/base/startup/init/services/param/include/ |
D | trigger_manager.h | 122 } TriggerNode; typedef 150 TriggerNode **executeQueue; 178 TriggerNode *ExecuteQueuePop(TriggerWorkSpace *workSpace); 179 int ExecuteQueuePush(TriggerWorkSpace *workSpace, const TriggerNode *trigger); 184 void FreeTrigger(const TriggerWorkSpace *workSpace, TriggerNode *trigger); 195 const char *GetTriggerName(const TriggerNode *trigger); 196 void RegisterTriggerExec(int type, int32_t (*executeTrigger)(const TriggerNode *, const char *, uin…
|
/base/startup/init/services/param/linux/ |
D | param_service.c | 203 static TriggerNode *AddWatcherTrigger(int triggerType, const char *condition, const TriggerExtInfo … in AddWatcherTrigger() 267 TriggerNode *trigger = AddWatcherTrigger(TRIGGER_PARAM_WAIT, condition, &extData); in HandleParamWaitAdd() 295 TriggerNode *trigger = AddWatcherTrigger(TRIGGER_PARAM_WATCH, msg->key, &extData); in HandleParamWatcherAdd()
|
/base/startup/init/test/unittest/param/ |
D | trigger_unittest.cpp | 44 static int TestCmdExec(const TriggerNode *trigger, const char *content, uint32_t size) in TestCmdExec() 57 static int TestTriggerExecute(TriggerNode *trigger, const char *content, uint32_t size) in TestTriggerExecute() 448 FreeTrigger(GetTriggerWorkSpace(), reinterpret_cast<TriggerNode *>(trigger)); in TestExecuteParamTrigger4()
|
D | paramservice_unittest.cpp | 26 static int TestTriggerExecute(TriggerNode *trigger, const char *content, uint32_t size) in TestTriggerExecute()
|