• Home
  • Raw
  • Download

Lines Matching refs:coAuthSchedule

53 CoAuthSchedule *CopyCoAuthSchedule(const CoAuthSchedule *coAuthSchedule)  in CopyCoAuthSchedule()  argument
55 if (coAuthSchedule == NULL || !IsTemplateArraysValid(&(coAuthSchedule->templateIds))) { in CopyCoAuthSchedule()
64 if (memcpy_s(schedule, sizeof(CoAuthSchedule), coAuthSchedule, sizeof(CoAuthSchedule)) != EOK) { in CopyCoAuthSchedule()
71 ResultCode ret = CopyTemplateArrays(&(coAuthSchedule->templateIds), &(schedule->templateIds)); in CopyCoAuthSchedule()
80 void DestroyCoAuthSchedule(CoAuthSchedule *coAuthSchedule) in DestroyCoAuthSchedule() argument
82 if (coAuthSchedule == NULL) { in DestroyCoAuthSchedule()
85 DestroyScheduleNode(coAuthSchedule); in DestroyCoAuthSchedule()
105 ResultCode AddCoAuthSchedule(const CoAuthSchedule *coAuthSchedule) in AddCoAuthSchedule() argument
111 if (coAuthSchedule == NULL) { in AddCoAuthSchedule()
115 CoAuthSchedule *schedule = CopyCoAuthSchedule(coAuthSchedule); in AddCoAuthSchedule()
141 CoAuthSchedule *coAuthSchedule = (CoAuthSchedule *)data; in IsScheduleMatch() local
142 return (coAuthSchedule->scheduleId == scheduleId); in IsScheduleMatch()
221 IAM_STATIC ResultCode MountExecutorOnce(const LinkedList *executors, CoAuthSchedule *coAuthSchedule, in MountExecutorOnce() argument
239 coAuthSchedule->executors[coAuthSchedule->executorSize] = *executor; in MountExecutorOnce()
240 ++(coAuthSchedule->executorSize); in MountExecutorOnce()
247 IAM_STATIC ResultCode MountExecutor(const ScheduleParam *param, CoAuthSchedule *coAuthSchedule) in MountExecutor() argument
263 ret = MountExecutorOnce(executors, coAuthSchedule, allInOneSensorHint, ALL_IN_ONE); in MountExecutor()
273 ret = MountExecutorOnce(executors, coAuthSchedule, param->verifierSensorHint, VERIFIER); in MountExecutor()
278 ret = MountExecutorOnce(executors, coAuthSchedule, param->collectorSensorHint, COLLECTOR); in MountExecutor()
288 uint32_t GetScheduleVeriferSensorHint(const CoAuthSchedule *coAuthSchedule) in GetScheduleVeriferSensorHint() argument
290 if (coAuthSchedule == NULL) { in GetScheduleVeriferSensorHint()
294 for (uint32_t i = 0; i < coAuthSchedule->executorSize; ++i) { in GetScheduleVeriferSensorHint()
295 const ExecutorInfoHal *executor = coAuthSchedule->executors + i; in GetScheduleVeriferSensorHint()
310 CoAuthSchedule *coAuthSchedule = Malloc(sizeof(CoAuthSchedule)); in GenerateSchedule() local
311 if (coAuthSchedule == NULL) { in GenerateSchedule()
315 if (memset_s(coAuthSchedule, sizeof(CoAuthSchedule), 0, sizeof(CoAuthSchedule)) != EOK) { in GenerateSchedule()
317 Free(coAuthSchedule); in GenerateSchedule()
320 ResultCode ret = GenerateValidScheduleId(&coAuthSchedule->scheduleId); in GenerateSchedule()
325 coAuthSchedule->associateId = param->associateId; in GenerateSchedule()
326 coAuthSchedule->scheduleMode = param->scheduleMode; in GenerateSchedule()
327 coAuthSchedule->authType = param->authType; in GenerateSchedule()
329 ret = CopyTemplateArrays(param->templateIds, &(coAuthSchedule->templateIds)); in GenerateSchedule()
336 ret = MountExecutor(param, coAuthSchedule); in GenerateSchedule()
341 return coAuthSchedule; in GenerateSchedule()
343 DestroyCoAuthSchedule(coAuthSchedule); in GenerateSchedule()