Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@
<ClInclude Include="..\..\..\..\include\farm_json.h" />
<ClInclude Include="..\..\..\..\include\scsi_defect_list_json.h" />
<ClInclude Include="..\..\..\..\include\scan_json.h" />
<ClInclude Include="..\..\..\..\include\drive_information_json.h" />
</ItemGroup>
<ItemGroup>
<ClCompile Include="..\..\..\..\src\cdl_json.c" />
Expand All @@ -84,6 +85,7 @@
<ClCompile Include="..\..\..\..\src\scsi_defect_list_json.c" />
<ClCompile Include="..\..\..\..\src\jsonformat_common.c" />
<ClCompile Include="..\..\..\..\src\scan_json.c" />
<ClCompile Include="..\..\..\..\src\drive_information_json.c" />
</ItemGroup>
<PropertyGroup Label="Globals">
<VCProjectVersion>15.0</VCProjectVersion>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@
<ClInclude Include="..\..\..\..\include\scan_json.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\..\..\..\include\drive_information_json.h">
<Filter>Header Files</Filter>
</ClInclude>
</ItemGroup>
<ItemGroup>
<ClCompile Include="..\..\..\..\src\device_statistics_json.c">
Expand All @@ -62,5 +65,8 @@
<ClCompile Include="..\..\..\..\src\scan_json.c">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\..\..\..\src\drive_information_json.c">
<Filter>Source Files</Filter>
</ClCompile>
</ItemGroup>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@
<ClInclude Include="..\..\..\..\include\scan_json.h" />
<ClInclude Include="..\..\..\..\include\scsi_defect_list_json.h" />
<ClInclude Include="..\..\..\..\include\smart_attribute_json.h" />
<ClInclude Include="..\..\..\..\include\drive_information_json.h" />
</ItemGroup>
<ItemGroup>
<ClCompile Include="..\..\..\..\src\cdl_json.c" />
Expand All @@ -84,6 +85,7 @@
<ClCompile Include="..\..\..\..\src\scan_json.c" />
<ClCompile Include="..\..\..\..\src\scsi_defect_list_json.c" />
<ClCompile Include="..\..\..\..\src\smart_attribute_json.c" />
<ClCompile Include="..\..\..\..\src\drive_information_json.c" />
</ItemGroup>
<PropertyGroup Label="Globals">
<VCProjectVersion>15.0</VCProjectVersion>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@
<ClInclude Include="..\..\..\..\include\scan_json.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\..\..\..\include\drive_information_json.h">
<Filter>Header Files</Filter>
</ClInclude>
</ItemGroup>
<ItemGroup>
<ClCompile Include="..\..\..\..\src\device_statistics_json.c">
Expand All @@ -62,5 +65,8 @@
<ClCompile Include="..\..\..\..\src\scan_json.c">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\..\..\..\src\drive_information_json.c">
<Filter>Source Files</Filter>
</ClCompile>
</ItemGroup>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@
<ClInclude Include="..\..\..\..\include\smart_attribute_json.h" />
<ClInclude Include="..\..\..\..\include\farm_json.h" />
<ClInclude Include="..\..\..\..\include\scsi_defect_list_json.h" />
<ClInclude Include="..\..\..\..\include\drive_information_json.h" />
</ItemGroup>
<ItemGroup>
<ClCompile Include="..\..\..\..\src\cdl_json.c" />
Expand All @@ -84,6 +85,7 @@
<ClCompile Include="..\..\..\..\src\farm_json.c" />
<ClCompile Include="..\..\..\..\src\scsi_defect_list_json.c" />
<ClCompile Include="..\..\..\..\src\jsonformat_common.c" />
<ClCompile Include="..\..\..\..\src\drive_information_json.c" />
</ItemGroup>
<PropertyGroup Label="Globals">
<VCProjectVersion>15.0</VCProjectVersion>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@
<ClInclude Include="..\..\..\..\include\scan_json.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\..\..\..\include\drive_information_json.h">
<Filter>Header Files</Filter>
</ClInclude>
</ItemGroup>
<ItemGroup>
<ClCompile Include="..\..\..\..\src\device_statistics_json.c">
Expand All @@ -62,5 +65,8 @@
<ClCompile Include="..\..\..\..\src\scan_json.c">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\..\..\..\src\drive_information_json.c">
<Filter>Source Files</Filter>
</ClCompile>
</ItemGroup>
</Project>
1 change: 1 addition & 0 deletions Make/gcc/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ endif
LIB_SRC_FILES = \
$(SRC_DIR)cdl_json.c \
$(SRC_DIR)device_statistics_json.c \
$(SRC_DIR)drive_information_json.c \
$(SRC_DIR)farm_json.c \
$(SRC_DIR)jsonformat_common.c \
$(SRC_DIR)scan_json.c \
Expand Down
37 changes: 37 additions & 0 deletions include/drive_information_json.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
#pragma once
// SPDX-License-Identifier: MPL-2.0
//
// Do NOT modify or remove this copyright and license
//
// Copyright (c) 2012-2025 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 farm_json.h
// \brief This file defines types and functions related to the JSON-based output for FARM.

#pragma once
#include "jsonformat_common.h"

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

M_NONNULL_PARAM_LIST(1)
M_PARAM_RO(1)
M_PARAM_RO(3)
M_PARAM_RO(4)
M_PARAM_WO(5)
OPENSEA_JSONFORMAT_API eReturnValues create_JSON_Output_For_Drive_Information(tDevice* device,
bool showChildInformation,
const char* utilityName,
const char* buildVersion,
char** jsonFormat);
#if defined(__cplusplus)
}
#endif
1 change: 1 addition & 0 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,7 @@ endif

src_files = ['src/cdl_json.c',
'src/device_statistics_json.c',
'src/drive_information_json.c',
'src/farm_json.c',
'src/jsonformat_common.c',
'src/scan_json.c',
Expand Down
Loading