/openbmc/phosphor-host-ipmid/user_channel/ |
H A D | cipher_mgmt.cpp | 31 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() 201 Json jsonData; in setCSPrivilegeLevels() 216 Json privData; in setCSPrivilegeLevels()
|
H A D | channel_mgmt.cpp | 806 Json ChannelConfig::readJsonFile(const std::string& configFile) in readJsonFile() 815 Json data = nullptr; in readJsonFile() 818 data = Json::parse(jsonFile, nullptr, false); in readJsonFile() 820 catch (const Json::parse_error& e) in readJsonFile() 830 const Json& jsonData) in writeJsonFile() 911 Json data = readJsonFile(channelConfigDefaultFilename); in loadChannelConfig() 934 Json jsonChData = data[chKey].get<Json>(); in loadChannelConfig() 942 Json jsonChInfo = jsonChData[channelInfoString].get<Json>(); in loadChannelConfig() [all...] |
H A D | channel_mgmt.hpp | 33 using Json = nlohmann::json; typedef 329 * @return Json object 331 Json readJsonFile(const std::string& configFile); 340 int writeJsonFile(const std::string& configFile, const Json& jsonData);
|
H A D | user_mgmt.cpp | 112 using Json = nlohmann::json; typedef 1157 static const Json constructJsonPayloadEnables( in constructJsonPayloadEnables() 1163 Json jsonPayloadEnabled; in constructJsonPayloadEnables() 1173 jsonPayloadEnabled.push_back(Json::object_t::value_type( in constructJsonPayloadEnables() 1176 jsonPayloadEnabled.push_back(Json::object_t::value_type( in constructJsonPayloadEnables() 1232 Json jsonUsersTbl = Json::array(); in readUserData() 1233 jsonUsersTbl = Json::parse(iUsrData, nullptr, false); in readUserData() 1245 Json userInfo = jsonUsersTbl[usrIndex - 1]; // json array starts with 0. in readUserData() 1300 catch (const Json in readUserData() [all...] |
/openbmc/phosphor-led-manager/manager/ |
H A D | json-parser.hpp | 18 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/ |
H A D | fru_parser.cpp | 20 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 D | event_parser.cpp | 18 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 D | pdr_utils.hpp | 72 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 D | event_parser.hpp | 74 using Json = nlohmann::json; typedef 135 StateToDBusValue mapStateToDBusVal(const Json& eventStates, 136 const Json& propertyValues,
|
H A D | pdr_state_effecter.hpp | 18 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 D | bios_enum_attribute.cpp | 17 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 D | pdr_state_sensor.hpp | 17 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 D | bios_attribute.hpp | 24 using Json = nlohmann::json; typedef 37 BIOSAttribute(const Json& entry,
|
H A D | bios_enum_attribute.hpp | 31 BIOSEnumAttribute(const Json& entry, 105 void buildValMap(const Json& dbusVals);
|
H A D | pdr_numeric_effecter.hpp | 17 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()
|
/openbmc/pldm/libpldmresponder/test/ |
H A D | libpldmresponder_bios_attribute_test.cpp | 13 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 D | libpldmresponder_bios_config_test.cpp | 42 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 D | libpldmresponder_systemspecific_bios_test.cpp | 46 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 D | virtualSensor.hpp | 32 using Json = nlohmann::json; typedef 98 const Json& sensorConfig, const std::string& name) : in VirtualSensor() 183 void initVirtualSensor(const Json& sensorConfig, 198 void createThresholds(const Json& threshold, const std::string& objPath); 286 Json parseConfigFile();
|
H A D | virtualSensor.cpp | 51 AssociationList getAssociationsFromJson(const Json& j) in getAssociationsFromJson() 153 void parseThresholds(Json& thresholds, const PropertyMap& propertyMap, in parseThresholds() 222 void VirtualSensor::initVirtualSensor(const Json& sensorConfig, in initVirtualSensor() 225 static const Json empty{}; in initVirtualSensor() 378 Json thresholds; in initVirtualSensor() 479 void VirtualSensor::createThresholds(const Json& threshold, in createThresholds() 651 Json VirtualSensors::parseConfigFile() in parseConfigFile() 677 auto data = Json::parse(jsonFile, nullptr, false); in parseConfigFile() 844 static const Json empty{}; in createVirtualSensors()
|
/openbmc/pldm/softoff/ |
H A D | softoff.hpp | 16 using Json = nlohmann::json; typedef 88 Json parseConfig();
|
H A D | softoff.cpp | 57 const std::vector<Json> emptyJsonList{}; in SoftPowerOff() 154 Json SoftPowerOff::parseConfig() in parseConfig() 168 return Json::parse(jsonFile); in parseConfig()
|
/openbmc/pldm/host-bmc/ |
H A D | dbus_to_terminus_effecters.cpp |
|
H A D | utils.cpp | 224 const Json emptyJson{}; in parseEntityMap() 227 auto data = Json::parse(jsonFile); in parseEntityMap()
|
/openbmc/phosphor-host-ipmid/app/ |
H A D | channel.hpp | 31 using Json = nlohmann::json; typedef
|