Skip to content

Commit 71c5f5e

Browse files
committed
Quick : add CDL files, and fix script to build json-c lib.
1 parent 6df072d commit 71c5f5e

File tree

3 files changed

+559
-1
lines changed

3 files changed

+559
-1
lines changed

Make/gcc/buildjsonc.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@
55
# TODO: Check arguments
66

77
cmake -S ../../../json-c/ -B ../../../json-c/build -DBUILD_SHARED_LIBS=OFF -DDISABLE_EXTRA_LIBS=ON -DBUILD_TESTING=OFF -DDISABLE_BSYMBOLIC=ON -DCMAKE_BUILD_TYPE=Release
8-
cmake --build ../../../json-c/build
8+
cmake --build ../../../json-c/build

include/cdl_json.h

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
//
2+
// cdl_config_file.h
3+
//
4+
// Do NOT modify or remove this copyright and confidentiality notice.
5+
//
6+
// Copyright (c) 2012-2024 Seagate Technology LLC and/or its Affiliates, All Rights Reserved
7+
//
8+
// The code contained herein is CONFIDENTIAL to Seagate Technology LLC
9+
// and may be covered under one or more Non-Disclosure Agreements.
10+
// All or portions are also trade secret.
11+
// Any use, modification, duplication, derivation, distribution or disclosure
12+
// of this code, for any reason, not expressly authorized is prohibited.
13+
// All other rights are expressly reserved by Seagate Technology LLC.
14+
//
15+
// *****************************************************************************
16+
17+
// \file cdl_json.h
18+
// \brief This file defines types and functions related to the new JSON-based Seagate CDL config file process.
19+
20+
#pragma once
21+
22+
#include "common_types.h"
23+
#include "common_public.h"
24+
#include "cdl.h"
25+
#include "jsonformat_common.h"
26+
27+
#if defined (__cplusplus)
28+
extern "C"
29+
{
30+
#endif
31+
32+
OPENSEA_JSONFORMAT_API eReturnValues create_JSON_File_For_CDL_Settings(tDevice *device, tCDLSettings *cdlSettings, const char* logPath);
33+
OPENSEA_JSONFORMAT_API eReturnValues parse_JSON_File_For_CDL_Settings(tDevice *device, tCDLSettings *cdlSettings, const char* fileName, bool skipValidation);
34+
35+
#if defined (__cplusplus)
36+
}
37+
#endif

0 commit comments

Comments
 (0)