src/agent/adu_core_interface/src/agent_workflow.c
_Bool ADUC_WorkflowData_UpdateContentData(ADUC_WorkflowData* workflowData)
{
    _Bool success = false;

    if (workflowData->ContentData == NULL)
    {
        workflowData->ContentData = ADUC_ContentData_AllocAndInit(workflowData->UpdateActionJson);

        if (workflowData->ContentData == NULL)
        {
            goto done;
        }
    }
    else
    {
        ADUC_ContentData_Update(workflowData->ContentData, workflowData->UpdateActionJson, false);
    }

    success = true;

done:

    return success;
}
/**
 * @brief Initializes or updates the ADUC_WorkflowData#ContentData object with the provided JSON.
 *
 * @param[in,out] workflowData The ADUC_WorkflowData object to update.
 * @returns true if the contentData is successfully allocated and set, false if it fails to allocate the values
 * this function always returns true when it is updating a workflowData object with an existing (non-null) ContentData member
 */
@brief Initializes or updates the ADUC_WorkflowData#ContentData object with the provided JSON.
@param[in,out] workflowData The ADUC_WorkflowData object to update.
@returns true if the contentData is successfully allocated and set, false if it fails to allocate the values
this function always returns true when it is updating a workflowData object with an existing (non-null) ContentData member
@brief Initializes or updates the ADUC_WorkflowData#ContentData object with the provided JSON . @param [ in out ] workflowData The ADUC_WorkflowData object to update . @returns true if the contentData is successfully allocated and set false if it fails to allocate the values this function always returns true when it is updating a workflowData object with an existing ( non - null ) ContentData member
_Bool ADUC_WorkflowData_UpdateContentData(ADUC_WorkflowData* workflowData)
{
    _Bool success = false;
    if (workflowData->ContentData == NULL)
    {
        workflowData->ContentData = ADUC_ContentData_AllocAndInit(workflowData->UpdateActionJson);
        if (workflowData->ContentData == NULL)
        {
            goto done;
        }
    }
    else
    {
        ADUC_ContentData_Update(workflowData->ContentData, workflowData->UpdateActionJson, false);
    }
    success = true;
done:
    return success;
}
_Bool ADUC_WorkflowData_UpdateContentData ( ADUC_WorkflowData * workflowData ) { _Bool success = false ; if ( workflowData -> ContentData == NULL ) { workflowData -> ContentData = ADUC_ContentData_AllocAndInit ( workflowData -> UpdateActionJson ) ; if ( workflowData -> ContentData == NULL ) { goto done ; } } else { ADUC_ContentData_Update ( workflowData -> ContentData , workflowData -> UpdateActionJson , false ) ; } success = true ; done : return success ; }
@brief Initializes or updates the ADUC_WorkflowData#ContentData object with the provided JSON.
@brief Initializes or updates the ADUC_WorkflowData#ContentData object with the provided JSON .