src/agent/adu_core_interface/src/agent_workflow.c
const ADUC_WorkflowHandlerMapEntry* GetWorkflowHandlerMapEntryForAction(unsigned int action)
{
    const ADUC_WorkflowHandlerMapEntry* entry;
    const unsigned int map_count = ARRAY_SIZE(workflowHandlerMap);
    unsigned index;
    for (index = 0; index < map_count; ++index)
    {
        entry = workflowHandlerMap + index;
        if (entry->Action == action)
        {
            break;
        }
    }
    if (index == map_count)
    {
        entry = NULL;
    }

    return entry;
}
/**
 * @brief Get the Workflow Handler Map Entry For Action object
 *
 * @param action Action to find.
 * @return ADUC_WorkflowHandlerMapEntry* NULL if @p action not found.
 */
@brief Get the Workflow Handler Map Entry For Action object
@param action Action to find.
@return ADUC_WorkflowHandlerMapEntry* NULL if @p action not found.
@brief Get the Workflow Handler Map Entry For Action object @param action Action to find . @return ADUC_WorkflowHandlerMapEntry * NULL if @p action not found .
const ADUC_WorkflowHandlerMapEntry* GetWorkflowHandlerMapEntryForAction(unsigned int action)
{
    const ADUC_WorkflowHandlerMapEntry* entry;
    const unsigned int map_count = ARRAY_SIZE(workflowHandlerMap);
    unsigned index;
    for (index = 0; index < map_count; ++index)
    {
        entry = workflowHandlerMap + index;
        if (entry->Action == action)
        {
            break;
        }
    }
    if (index == map_count)
    {
        entry = NULL;
    }
    return entry;
}
const ADUC_WorkflowHandlerMapEntry * GetWorkflowHandlerMapEntryForAction ( unsigned int action ) { const ADUC_WorkflowHandlerMapEntry * entry ; const unsigned int map_count = ARRAY_SIZE ( workflowHandlerMap ) ; unsigned index ; for ( index = 0 ; index < map_count ; ++ index ) { entry = workflowHandlerMap + index ; if ( entry -> Action == action ) { break ; } } if ( index == map_count ) { entry = NULL ; } return entry ; }
@brief Get the Workflow Handler Map Entry For Action object
 @param action Action to find.
@brief Get the Workflow Handler Map Entry For Action object @param action Action to find .