// SPDX-License-Identifier: MPL-2.0
//
// Do NOT modify or remove this copyright and license
//
// Copyright (c) 2012-2026 Seagate Technology LLC and/or its Affiliates, All Rights Reserved
//
// This software is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
//
// ******************************************************************************************
//
// \file cdl_json.h
// \brief This file defines types and functions related to the JSON-based output for Seagate CDL config.

#pragma once

#include "cdl.h"
#include "jsonformat_common.h"

#if defined(__cplusplus)
extern "C"
{
#endif

    M_PARAM_RO(1)
    M_PARAM_RO(2)
    M_PARAM_RO(3)
    OPENSEA_JSONFORMAT_API eReturnValues create_JSON_File_For_CDL_Settings(const tDevice* M_NONNULL device,
                                                                           tCDLSettings*  M_NONNULL cdlSettings,
                                                                           const char*    M_NONNULL logPath);

    M_PARAM_RO(1)
    M_PARAM_RW(2)
    M_PARAM_RO(3)
    OPENSEA_JSONFORMAT_API eReturnValues parse_JSON_File_For_CDL_Settings(const tDevice* M_NONNULL device,
                                                                          tCDLSettings*  M_NONNULL cdlSettings,
                                                                          const char*    M_NONNULL fileName,
                                                                          bool           skipValidation);

#if defined(__cplusplus)
}
#endif
