Home
last modified time | relevance | path

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

123

/openbmc/phosphor-host-ipmid/user_channel/
H A Dcipher_mgmt.cpp32 using Json = nlohmann::json; typedef
59 Json data = readCSPrivilegeLevels(cipherSuiteDefaultPrivFileName); in loadCSPrivilegesToMap()
78 void CipherConfig::updateCSPrivilegesMap(const Json& jsonData) in updateCSPrivilegesMap()
96 Json CipherConfig::readCSPrivilegeLevels(const std::string& csFileName) in readCSPrivilegeLevels()
105 Json data = nullptr; in readCSPrivilegeLevels()
108 data = Json::parse(jsonFile, nullptr, false); in readCSPrivilegeLevels()
110 catch (const Json::parse_error& e) in readCSPrivilegeLevels()
119 int CipherConfig::writeCSPrivilegeLevels(const Json& jsonData) in writeCSPrivilegeLevels()
202 Json jsonData; in setCSPrivilegeLevels()
217 Json privData; in setCSPrivilegeLevels()
H A Dchannel_mgmt.cpp821 Json data = nullptr; in readJsonFile()
826 catch (const Json::parse_error& e) in readJsonFile()
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()
1070 catch (const Json::exception& e) in readChannelVolatileData()
1136 catch (const Json::exception& e) in readChannelPersistData()
1156 Json outData; in writeChannelVolatileData()
1164 Json jsonObj; in writeChannelVolatileData()
1205 Json outData; in writeChannelPersistData()
[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.cpp113 using Json = nlohmann::json; typedef
1166 static const Json constructJsonPayloadEnables( in constructJsonPayloadEnables()
1172 Json jsonPayloadEnabled; in constructJsonPayloadEnables()
1182 jsonPayloadEnabled.push_back(Json::object_t::value_type( in constructJsonPayloadEnables()
1185 jsonPayloadEnabled.push_back(Json::object_t::value_type( in constructJsonPayloadEnables()
1241 Json jsonUsersTbl = Json::array(); in readUserData()
1242 jsonUsersTbl = Json::parse(iUsrData, nullptr, false); in readUserData()
1310 catch (const Json::out_of_range& e) in readUserData()
1361 Json jsonUsersTbl = Json::array(); in writeUserData()
1365 Json jsonUserInfo; in writeUserData()
[all …]
/openbmc/phosphor-led-manager/manager/
H A Djson-parser.hpp17 using Json = nlohmann::json; typedef
30 Json readJson(const fs::path& path) in readJson()
42 return Json::parse(jsonFile); in readJson()
102 const phosphor::led::GroupMap loadJsonConfigV1(const Json& json) in loadJsonConfigV1()
108 const Json empty{}; in loadJsonConfigV1()
/openbmc/pldm/libpldmresponder/
H A Dfru_parser.cpp20 using Json = nlohmann::json; typedef
24 const Json emptyJson{};
25 const std::vector<Json> emptyJsonList{};
48 auto data = Json::parse(jsonFile, nullptr, false); in setupDefaultDBusLookup()
117 auto data = Json::parse(jsonFile, nullptr, false); in setupFruRecordMap()
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
90 inline Json readJson(const std::string& path) in readJson()
105 return Json::parse(jsonFile); in readJson()
117 StatestoDbusVal populateMapping(const std::string& type, const Json& dBusValues,
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_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()
74 void BIOSEnumAttribute::buildValMap(const Json& dbusVals) in buildValMap()
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_attribute.hpp24 using Json = nlohmann::json; typedef
37 BIOSAttribute(const Json& entry,
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()
/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;
H A Dlibpldmresponder_systemspecific_bios_test.cpp46 auto j = Json::parse(file); in SetUpTestCase()
51 std::optional<Json> findJsonEntry(const std::string& name) in findJsonEntry()
75 static std::vector<Json> jsons;
79 std::vector<Json> TestSystemSpecificBIOSConfig::jsons;
/openbmc/phosphor-virtual-sensor/
H A DvirtualSensor.hpp32 using Json = nlohmann::json; typedef
98 const Json& sensorConfig, const std::string& name) : in VirtualSensor()
184 void initVirtualSensor(const Json& sensorConfig,
204 void createThresholds(const Json& threshold, const std::string& objPath);
292 Json parseConfigFile();
H A DvirtualSensor.cpp53 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()
238 static const Json empty{}; in initVirtualSensor()
393 Json thresholds; in initVirtualSensor()
563 void VirtualSensor::createThresholds(const Json& threshold, in createThresholds()
753 Json VirtualSensors::parseConfigFile() in parseConfigFile()
779 auto data = Json::parse(jsonFile, nullptr, false); in parseConfigFile()
946 static const Json empty{}; in createVirtualSensors()
/openbmc/pldm/softoff/
H A Dsoftoff.hpp16 using Json = nlohmann::json; typedef
88 Json parseConfig();
H A Dsoftoff.cpp58 const std::vector<Json> emptyJsonList{}; in SoftPowerOff()
155 Json SoftPowerOff::parseConfig() in parseConfig()
169 return Json::parse(jsonFile); in parseConfig()
/openbmc/pldm/host-bmc/
H A Ddbus_to_host_effecters.cpp27 const Json& dBusValues, std::vector<PropertyValue>& propertyValues, in populatePropVals()
56 auto data = Json::parse(jsonFile, nullptr, false); in parseEffecterJson()
62 const Json empty{}; in parseEffecterJson()
63 const std::vector<Json> emptyList{}; in parseEffecterJson()
90 Json propertyValues = jsonDbusInfo["property_values"]; in parseEffecterJson()
/openbmc/google-ipmi-sys/
H A Dmeson.options2 …usr/share/google-ipmi-sys/bifurcation.json', description: 'Path to Static Bifurcation Json config')

123