Home
last modified time | relevance | path

Searched refs:Json (Results 1 – 25 of 57) sorted by relevance

123

/openbmc/phosphor-host-ipmid/user_channel/
H A Dcipher_mgmt.cpp31 using Json = nlohmann::json; typedef
58 Json data = readCSPrivilegeLevels(cipherSuiteDefaultPrivFileName); in loadCSPrivilegesToMap()
77 void CipherConfig::updateCSPrivilegesMap(const Json& jsonData) in updateCSPrivilegesMap()
95 Json CipherConfig::readCSPrivilegeLevels(const std::string& csFileName) in readCSPrivilegeLevels()
104 Json data = nullptr; in readCSPrivilegeLevels()
107 data = Json::parse(jsonFile, nullptr, false); in readCSPrivilegeLevels()
109 catch (const Json::parse_error& e) in readCSPrivilegeLevels()
119 int CipherConfig::writeCSPrivilegeLevels(const Json& jsonData) in writeCSPrivilegeLevels()
205 Json jsonData; in setCSPrivilegeLevels()
220 Json privData; in setCSPrivilegeLevels()
H A Dchannel_mgmt.cpp812 Json ChannelConfig::readJsonFile(const std::string& configFile) in readJsonFile()
821 Json data = nullptr; in readJsonFile()
824 data = Json::parse(jsonFile, nullptr, false); in readJsonFile()
826 catch (const Json::parse_error& e) in readJsonFile()
836 const Json& jsonData) in writeJsonFile()
917 Json data = readJsonFile(channelConfigDefaultFilename); in loadChannelConfig()
940 Json jsonChData = data[chKey].get<Json>(); in loadChannelConfig()
948 Json jsonChInfo = jsonChData[channelInfoString].get<Json>(); in loadChannelConfig()
1000 catch (const Json::exception& e) in loadChannelConfig()
1024 Json data = readJsonFile(channelVolatileDataFilename); in readChannelVolatileData()
[all …]
H A Dchannel_mgmt.hpp33 using Json = nlohmann::json; typedef
331 Json readJsonFile(const std::string& configFile);
340 int writeJsonFile(const std::string& configFile, const Json& jsonData);
H A Duser_mgmt.cpp47 using Json = nlohmann::json; typedef
1042 static const Json constructJsonPayloadEnables( in constructJsonPayloadEnables()
1048 Json jsonPayloadEnabled; in constructJsonPayloadEnables()
1058 jsonPayloadEnabled.push_back(Json::object_t::value_type( in constructJsonPayloadEnables()
1061 jsonPayloadEnabled.push_back(Json::object_t::value_type( in constructJsonPayloadEnables()
1117 Json jsonUsersTbl = Json::array(); in readUserData()
1118 jsonUsersTbl = Json::parse(iUsrData, nullptr, false); in readUserData()
1130 Json userInfo = jsonUsersTbl[usrIndex - 1]; // json array starts with 0. in readUserData()
1188 catch (const Json::out_of_range& e) in readUserData()
1239 Json jsonUsersTbl = Json::array(); in writeUserData()
[all …]
/openbmc/phosphor-led-manager/manager/
H A Djson-parser.hpp18 using Json = nlohmann::json; typedef
31 Json readJson(const fs::path& path) in readJson()
43 return Json::parse(jsonFile); in readJson()
79 static void loadJsonConfigV1GroupMember(const Json& member, in loadJsonConfigV1GroupMember()
100 static void loadJsonConfigV1Group(const Json& entry, in loadJsonConfigV1Group()
103 const Json empty{}; in loadJsonConfigV1Group()
136 phosphor::led::GroupMap loadJsonConfigV1(const Json& json) in loadJsonConfigV1()
141 const Json empty{}; in loadJsonConfigV1()
/openbmc/pldm/libpldmresponder/test/
H A Dlibpldmresponder_bios_attribute_test.cpp13 TestAttribute(const Json& entry, DBusHandler* const dbusHandler) : in TestAttribute()
61 using Json = nlohmann::json; in TEST() typedef
63 EXPECT_THROW((TestAttribute{jsonReadOnlyError, nullptr}), Json::exception); in TEST()
99 EXPECT_THROW((TestAttribute{jsonReadWriteError, nullptr}), Json::exception); in TEST()
H A Dlibpldmresponder_bios_config_test.cpp42 auto j = Json::parse(file); in SetUpTestCase()
47 std::optional<Json> findJsonEntry(const std::string& name) in findJsonEntry()
71 static std::vector<Json> jsons;
75 std::vector<Json> TestBIOSConfig::jsons;
/openbmc/pldm/libpldmresponder/
H A Devent_parser.cpp18 const Json emptyJson{};
19 const std::vector<Json> emptyJsonList{};
39 auto data = Json::parse(jsonFile, nullptr, false); in StateSensorHandler()
107 const Json& eventStates, const Json& propertyValues, std::string_view type) in mapStateToDBusVal()
H A Dpdr_utils.hpp72 using Json = nlohmann::json; typedef
92 inline Json readJson(const std::string& path) in readJson()
107 return Json::parse(jsonFile); in readJson()
119 StatestoDbusVal populateMapping(const std::string& type, const Json& dBusValues,
H A Dfru_parser.cpp24 using Json = nlohmann::json; typedef
35 const Json emptyJson{};
36 const std::vector<Json> emptyJsonList{};
59 auto data = Json::parse(jsonFile, nullptr, false); in setupDefaultDBusLookup()
132 auto data = Json::parse(jsonFile, nullptr, false); in setupFruRecordMap()
H A Devent_parser.hpp74 using Json = nlohmann::json; typedef
135 StateToDBusValue mapStateToDBusVal(const Json& eventStates,
136 const Json& propertyValues,
H A Dpdr_state_effecter.hpp18 using Json = nlohmann::json; typedef
20 static const Json empty{};
30 void generateStateEffecterPDR(const DBusInterface& dBusIntf, const Json& json, in generateStateEffecterPDR()
33 static const std::vector<Json> emptyList{}; in generateStateEffecterPDR()
H A Dbios_attribute.hpp24 using Json = nlohmann::json; typedef
37 BIOSAttribute(const Json& entry,
H A Dpdr_state_sensor.hpp17 using Json = nlohmann::json; typedef
19 static const Json empty{};
29 void generateStateSensorPDR(const DBusInterface& dBusIntf, const Json& json, in generateStateSensorPDR()
32 static const std::vector<Json> emptyList{}; in generateStateSensorPDR()
H A Dbios_enum_attribute.cpp17 BIOSEnumAttribute::BIOSEnumAttribute(const Json& entry, in BIOSEnumAttribute()
22 Json pv = entry.at("possible_values"); in BIOSEnumAttribute()
29 Json dv = entry.at("default_values"); in BIOSEnumAttribute()
35 Json vdn = entry.at("value_names"); in BIOSEnumAttribute()
75 void BIOSEnumAttribute::buildValMap(const Json& dbusVals) in buildValMap()
H A Dbios_enum_attribute.hpp31 BIOSEnumAttribute(const Json& entry,
105 void buildValMap(const Json& dbusVals);
H A Dpdr_numeric_effecter.hpp17 using Json = nlohmann::json; typedef
19 static const Json empty{};
29 void generateNumericEffecterPDR(const DBusInterface& dBusIntf, const Json& json, in generateNumericEffecterPDR()
33 static const std::vector<Json> emptyList{}; in generateNumericEffecterPDR()
H A Dbios_attribute.cpp17 BIOSAttribute::BIOSAttribute(const Json& entry, in BIOSAttribute()
H A Dbios_integer_attribute.hpp27 BIOSIntegerAttribute(const Json& entry,
/openbmc/pldm/softoff/
H A Dsoftoff.hpp16 using Json = nlohmann::json; typedef
88 Json parseConfig();
/openbmc/phosphor-virtual-sensor/src/
H A DvirtualSensor.hpp32 using Json = nlohmann::json; typedef
100 const Json& sensorConfig, const std::string& name, in VirtualSensor()
191 void initVirtualSensor(const Json& sensorConfig, const std::string& objPath,
206 void createThresholds(const Json& threshold, const std::string& objPath,
303 Json parseConfigFile();
H A DvirtualSensor.cpp64 AssociationList getAssociationsFromJson(const Json& j) in getAssociationsFromJson()
166 void parseThresholds(Json& thresholds, const PropertyMap& propertyMap, in parseThresholds()
235 void VirtualSensor::initVirtualSensor(const Json& sensorConfig, in initVirtualSensor()
239 static const Json empty{}; in initVirtualSensor()
393 Json thresholds; in initVirtualSensor()
514 const Json& threshold, const std::string& objPath, ValueIface::Unit units) in createThresholds()
685 Json VirtualSensors::parseConfigFile() in parseConfigFile()
711 auto data = Json::parse(jsonFile, nullptr, false); in parseConfigFile()
857 static const Json empty{}; in createVirtualSensors()
/openbmc/openbmc-test-automation/redfish/account_service/
H A Dtest_redfish_privilege_registry.robot40 ${url}= Get Redfish Privilege Registry Json URL
108 ${url}= Get Redfish Privilege Registry Json URL
190 Get Redfish Privilege Registry Json URL
191 [Documentation] Return the complete Privilege Registry Json URL.
193 # Get Privilege Registry version Json path in redfish.
/openbmc/phosphor-host-ipmid/app/
H A Dchannel.hpp31 using Json = nlohmann::json; typedef
/openbmc/google-ipmi-sys/
H A Dmeson.options6 description: 'Path to Static Bifurcation Json config',

123