| /openbmc/entity-manager/configurations/ |
| H A D | meson.build | 4 '3y-power/3ypower_vast2112_psu.json', 5 'acbel/r1ca2122a_psu.json', 6 'acbel/rica_psu.json', 7 'ampere/mtjade.json', 8 'ampere/mtjefferson_bmc.json', 9 'ampere/mtjefferson_bp.json', 10 'ampere/mtjefferson_mb.json', 11 'ampere/mtjefferson_riser.json', 12 'ampere/mtmitchell_bmc.json', 13 'ampere/mtmitchell_bp.json', [all …]
|
| /openbmc/bmcweb/test/redfish-core/lib/ |
| H A D | service_root_test.cpp | 24 nlohmann::json& json = res.jsonValue; in assertServiceRootGet() local 25 EXPECT_EQ(json["@odata.id"], "/redfish/v1"); in assertServiceRootGet() 26 EXPECT_EQ(json["@odata.type"], "#ServiceRoot.v1_15_0.ServiceRoot"); in assertServiceRootGet() 28 EXPECT_EQ(json["AccountService"]["@odata.id"], in assertServiceRootGet() 30 EXPECT_EQ(json["AccountService"].size(), 1); in assertServiceRootGet() 32 EXPECT_EQ(json["CertificateService"]["@odata.id"], in assertServiceRootGet() 34 EXPECT_EQ(json["CertificateService"].size(), 1); in assertServiceRootGet() 36 EXPECT_EQ(json["Chassis"]["@odata.id"], "/redfish/v1/Chassis"); in assertServiceRootGet() 37 EXPECT_EQ(json["Chassis"].size(), 1); in assertServiceRootGet() 39 EXPECT_EQ(json["EventService"]["@odata.id"], "/redfish/v1/EventService"); in assertServiceRootGet() [all …]
|
| /openbmc/qemu/tests/qapi-schema/ |
| H A D | meson.build | 6 'alternate-any.json', 7 'alternate-array.json', 8 'alternate-base.json', 9 'alternate-branch-if-invalid.json', 10 'alternate-clash.json', 11 'alternate-conflict-dict.json', 12 'alternate-conflict-enum-bool.json', 13 'alternate-conflict-enum-int.json', 14 'alternate-conflict-lists.json', 15 'alternate-conflict-string.json', [all …]
|
| /openbmc/phosphor-power/phosphor-regulators/test/ |
| H A D | validate-regulators-config_tests.cpp | 39 using json = nlohmann::json; typedef 42 const json validConfigFile = R"( 224 void writeDataToFile(const json configFileJson, std::string fileName) in writeDataToFile() 232 void expectJsonValid(const json configFileJson) in expectJsonValid() 241 void expectJsonInvalid(const json configFileJson, in expectJsonInvalid() 268 json configFile = validConfigFile; in TEST() 273 json configFile = validConfigFile; in TEST() 280 json configFile = validConfigFile; in TEST() 281 json andAction = in TEST() 295 json configFile = validConfigFile; in TEST() [all …]
|
| H A D | config_file_parser_tests.cpp | 72 using json = nlohmann::json; typedef 83 const json& contents) in writeConfigFile() 93 const json configFileContents = R"( in TEST() 156 const json configFileContents = R"( in TEST() 198 const json configFileContents = R"( { "foo": "bar" } )"_json; in TEST() 217 const json element = R"( in TEST() 231 const json element = R"( in TEST() 244 const json element = R"( in TEST() 258 const json element = R"( in TEST() 273 const json element = R"( in TEST() [all …]
|
| /openbmc/entity-manager/schemas/ |
| H A D | meson.build | 4 'cpld.json', 5 'exposes_record.json', 6 'firmware.json', 7 'global.json', 8 'gpio_presence.json', 9 'ibm.json', 10 'intel.json', 11 'leak_detector.json', 12 'legacy.json', 13 'mctp.json', [all …]
|
| /openbmc/qemu/qapi/ |
| H A D | qapi-schema.json | 28 { 'include': 'pragma.json' } 36 { 'include': 'error.json' } 37 { 'include': 'common.json' } 38 { 'include': 'sockets.json' } 39 { 'include': 'run-state.json' } 40 { 'include': 'crypto.json' } 41 { 'include': 'job.json' } 42 { 'include': 'accelerator.json' } 43 { 'include': 'block.json' } 44 { 'include': 'block-export.json' } [all …]
|
| /openbmc/openbmc/meta-phosphor/recipes-phosphor/ipmi/ |
| H A D | phosphor-ipmi-config.bb | 7 file://cipher_list.json \ 8 file://dcmi_cap.json \ 9 file://dcmi_sensors.json \ 10 file://dev_id.json \ 11 file://power_reading.json \ 12 file://channel_access.json \ 13 file://channel_config.json \ 14 file://entity-map.json \ 15 file://cs_privilege_levels.json \ 29 install -m 0644 -D ${UNPACKDIR}/cipher_list.json \ [all …]
|
| /openbmc/phosphor-power/phosphor-regulators/src/ |
| H A D | config_file_parser.hpp | 90 std::unique_ptr<Action> parseAction(const nlohmann::json& element); 103 const nlohmann::json& element); 115 std::unique_ptr<AndAction> parseAnd(const nlohmann::json& element); 127 std::unique_ptr<Chassis> parseChassis(const nlohmann::json& element); 140 const nlohmann::json& element); 153 const nlohmann::json& element); 166 const nlohmann::json& element); 179 const nlohmann::json& element); 191 std::unique_ptr<Device> parseDevice(const nlohmann::json& element); 204 const nlohmann::json& element); [all …]
|
| /openbmc/phosphor-fan-presence/control/ |
| H A D | meson.build | 16 include_dirs += ['./json', './json/actions', './json/triggers'] 18 'json/dbus_zone.cpp', 19 'json/event.cpp', 20 'json/fan.cpp', 21 'json/group.cpp', 22 'json/manager.cpp', 23 'json/profile.cpp', 24 'json/zone.cpp', 25 'json/actions/count_state_floor.cpp', 26 'json/actions/count_state_target.cpp', [all …]
|
| /openbmc/bmcweb/redfish-core/include/ |
| H A D | error_messages.hpp | 36 nlohmann::json::object_t success(); 48 nlohmann::json::object_t generalError(); 58 nlohmann::json::object_t created(); 69 nlohmann::json::object_t noOperation(); 80 nlohmann::json::object_t propertyDuplicate(std::string_view arg1); 92 nlohmann::json::object_t propertyUnknown(std::string_view arg1); 105 nlohmann::json::object_t propertyValueTypeError(const nlohmann::json& arg1, 108 void propertyValueTypeError(crow::Response& res, const nlohmann::json& arg1, 120 nlohmann::json::object_t propertyValueFormatError(const nlohmann::json& arg1, 123 void propertyValueFormatError(crow::Response& res, const nlohmann::json& arg1, [all …]
|
| H A D | resource_messages.hpp | 30 nlohmann::json::object_t resourceCreated(); 32 nlohmann::json::object_t resourceRemoved(); 34 nlohmann::json::object_t resourceErrorsDetected(std::string_view arg1, 37 nlohmann::json::object_t resourceErrorsCorrected(std::string_view arg1, 40 nlohmann::json::object_t resourceErrorThresholdExceeded(std::string_view arg1, 43 nlohmann::json::object_t resourceErrorThresholdCleared(std::string_view arg1, 46 nlohmann::json::object_t resourceWarningThresholdExceeded(std::string_view arg1, 49 nlohmann::json::object_t resourceWarningThresholdCleared(std::string_view arg1, 52 nlohmann::json::object_t resourceStatusChangedOK(std::string_view arg1, 55 nlohmann::json::object_t resourceStatusChangedWarning(std::string_view arg1, [all …]
|
| H A D | update_messages.hpp | 30 nlohmann::json::object_t targetDetermined(std::string_view arg1, 33 nlohmann::json::object_t allTargetsDetermined(); 35 nlohmann::json::object_t noTargetsDetermined(std::string_view arg1); 37 nlohmann::json::object_t updateInProgress(); 39 nlohmann::json::object_t transferringToComponent(std::string_view arg1, 42 nlohmann::json::object_t verifyingAtComponent(std::string_view arg1, 45 nlohmann::json::object_t installingOnComponent(std::string_view arg1, 48 nlohmann::json::object_t applyingOnComponent(std::string_view arg1, 51 nlohmann::json::object_t transferFailed(std::string_view arg1, 54 nlohmann::json::object_t verificationFailed(std::string_view arg1, [all …]
|
| H A D | telemetry_readings.hpp | 24 inline nlohmann::json toMetricValues(const Readings& readings) in toMetricValues() 26 nlohmann::json metricValues = nlohmann::json::array_t(); in toMetricValues() 30 nlohmann::json::object_t metricReport; in toMetricValues() 41 inline bool fillReport(nlohmann::json& json, const std::string& id, in fillReport() argument 44 json["@odata.type"] = "#MetricReport.v1_3_0.MetricReport"; in fillReport() 45 json["@odata.id"] = boost::urls::format( in fillReport() 47 json["Id"] = id; in fillReport() 48 json["Name"] = id; in fillReport() 49 json["MetricReportDefinition"]["@odata.id"] = boost::urls::format( in fillReport() 53 json["Timestamp"] = redfish::time_utils::getDateTimeUintMs(timestamp); in fillReport() [all …]
|
| /openbmc/entity-manager/test/entity_manager/ |
| H A D | test_entity-manager.cpp | 15 nlohmann::json j = {{"foo", "$bus"}}; in TEST() 21 nlohmann::json expected = 23; in TEST() 27 nlohmann::json j = {{"foo", "$TEST"}}; in TEST() 33 nlohmann::json expected = "Test"; in TEST() 39 nlohmann::json j = {{"foo", "the $TEST"}}; in TEST() 45 nlohmann::json expected = "the Test"; in TEST() 51 nlohmann::json j = {{"foo", "the $TEST worked"}}; in TEST() 57 nlohmann::json expected = "the Test worked"; in TEST() 63 nlohmann::json j = {{"foo", "the Test $TEST"}}; in TEST() 69 nlohmann::json expected = "the Test 23"; in TEST() [all …]
|
| /openbmc/openbmc/meta-ampere/meta-jade/recipes-phosphor/fans/ |
| H A D | phosphor-fan_%.bbappend | 5 PACKAGECONFIG:append = " json" 7 SRC_URI:append = " file://events.json \ 8 file://fans.json \ 9 file://groups.json \ 10 file://zones.json \ 11 file://monitor.json \ 12 file://presence.json \ 20 cp ${UNPACKDIR}/events.json ${S}/control/config_files/${MACHINE}/events.json 21 cp ${UNPACKDIR}/fans.json ${S}/control/config_files/${MACHINE}/fans.json 22 cp ${UNPACKDIR}/groups.json ${S}/control/config_files/${MACHINE}/groups.json [all …]
|
| /openbmc/openbmc/meta-ampere/meta-mitchell/recipes-phosphor/fans/ |
| H A D | phosphor-fan_%.bbappend | 3 PACKAGECONFIG:append = " json" 7 CONTROL_CONFIGS = "events.json fans.json zones.json groups_2p.json groups_1p.json" 11 file://events.json \ 12 file://fans.json \ 13 file://groups_1p.json \ 14 file://groups_2p.json \ [all...] |
| /openbmc/openbmc/meta-ibm/recipes-phosphor/inventory/ |
| H A D | phosphor-inventory-manager_%.bbappend | 3 SRC_URI:append:ibm-ac-server = " file://associations.json" 9 file://ibm,rainier-2u_associations.json \ 10 file://ibm,rainier-4u_associations.json \ 11 file://ibm,everest_associations.json \ 12 file://ibm,blueridge-2u_associations.json \ 13 file://ibm,blueridge-4u_associations.json \ 14 file://ibm,fuji_associations.json \ 19 install -m 0755 ${UNPACKDIR}/associations.json ${D}${base_datadir}/associations.json 24 …m 0755 ${UNPACKDIR}/ibm,rainier-2u_associations.json ${D}${base_datadir}/ibm,rainier-2u_associatio… 25 …m 0755 ${UNPACKDIR}/ibm,rainier-4u_associations.json ${D}${base_datadir}/ibm,rainier-4u_associatio… [all …]
|
| /openbmc/bmcweb/redfish-core/src/ |
| H A D | error_message_utils.cpp | 16 void addMessageToErrorJson(nlohmann::json& target, in addMessageToErrorJson() 17 const nlohmann::json& message) in addMessageToErrorJson() 56 extendedInfo = nlohmann::json::array(); in addMessageToErrorJson() 62 void moveErrorsToErrorJson(nlohmann::json& target, nlohmann::json& source) in moveErrorsToErrorJson() 64 nlohmann::json::object_t* sourceObj = in moveErrorsToErrorJson() 65 source.get_ptr<nlohmann::json::object_t*>(); in moveErrorsToErrorJson() 71 nlohmann::json::object_t::iterator errorIt = sourceObj->find("error"); in moveErrorsToErrorJson() 79 nlohmann::json::object_t* errorObj = in moveErrorsToErrorJson() 80 errorIt->second.get_ptr<nlohmann::json::object_t*>(); in moveErrorsToErrorJson() 86 nlohmann::json::object_t::iterator extendedInfoIt = in moveErrorsToErrorJson() [all …]
|
| /openbmc/phosphor-host-ipmid/oem/nvidia/ |
| H A D | biosconfigcommands.cpp | 44 nlohmann::json json; in ipmiSetBiosPassword() local 61 json[keyHashAlgo] = "SHA256"; in ipmiSetBiosPassword() 66 json[keySeed] = salt; in ipmiSetBiosPassword() 67 json[keyAdminPwdHash] = hash; in ipmiSetBiosPassword() 70 json[keyHashAlgo] = "SHA256"; in ipmiSetBiosPassword() 71 json[keySeed] = salt; in ipmiSetBiosPassword() 72 json[keyAdminPwdHash] = hash; in ipmiSetBiosPassword() 75 json[keyHashAlgo] = "SHA384"; in ipmiSetBiosPassword() 76 json[keySeed] = salt; in ipmiSetBiosPassword() 77 json[keyAdminPwdHash] = hash; in ipmiSetBiosPassword() [all …]
|
| /openbmc/openbmc/meta-ampere/meta-jefferson/recipes-phosphor/fans/ |
| H A D | phosphor-fan_%.bbappend | 3 PACKAGECONFIG:append = " json" 7 CONTROL_CONFIGS = "events.json fans.json zones.json groups.json" 11 file://events.json \ 12 file://fans.json \ 13 file://groups.json \ 14 file://zones.json \ 15 file://monitor.json \ [all...] |
| /openbmc/phosphor-power/test/ |
| H A D | json_parser_utils_tests.cpp | 30 using json = nlohmann::json; typedef 36 const json element = R"( { "format": "linear" } )"_json; in TEST() 37 const json& propertyElement = getRequiredProperty(element, "format"); in TEST() 44 const json element = R"( { "volts": 1.03 } )"_json; in TEST() 58 const json element = R"( 0 )"_json; in TEST() 65 const json element = R"( 7 )"_json; in TEST() 73 const json element = R"( "${bit_pos}" )"_json; in TEST() 81 const json element = R"( 1.03 )"_json; in TEST() 93 const json element = R"( -1 )"_json; in TEST() 105 const json element = R"( 8 )"_json; in TEST() [all …]
|
| /openbmc/openbmc/meta-ibm/recipes-phosphor/logging/ |
| H A D | phosphor-logging_%.bbappend | 5 SRC_URI:append:p10bmc = " file://com.ibm.Hardware.Chassis.Model.Rainier2U_dev_callouts.json" 6 SRC_URI:append:p10bmc = " file://com.ibm.Hardware.Chassis.Model.Rainier4U_dev_callouts.json" 7 SRC_URI:append:p10bmc = " file://com.ibm.Hardware.Chassis.Model.Everest_dev_callouts.json" 8 SRC_URI:append:p10bmc = " file://com.ibm.Hardware.Chassis.Model.Bonnell_dev_callouts.json" 9 SRC_URI:append:p10bmc = " file://com.ibm.Hardware.Chassis.Model.Balcones_dev_callouts.json" 10 …mc = " ${datadir}/phosphor-logging/pels/com.ibm.Hardware.Chassis.Model.Rainier2U_dev_callouts.json" 11 …mc = " ${datadir}/phosphor-logging/pels/com.ibm.Hardware.Chassis.Model.Rainier4U_dev_callouts.json" 12 …0bmc = " ${datadir}/phosphor-logging/pels/com.ibm.Hardware.Chassis.Model.Everest_dev_callouts.json" 13 …0bmc = " ${datadir}/phosphor-logging/pels/com.ibm.Hardware.Chassis.Model.Bonnell_dev_callouts.json" 14 …bmc = " ${datadir}/phosphor-logging/pels/com.ibm.Hardware.Chassis.Model.Balcones_dev_callouts.json" [all …]
|
| /openbmc/entity-manager/src/entity_manager/ |
| H A D | dbus_interface.cpp | 69 nlohmann::json& systemConfiguration) in createDeleteObjectMethod() 83 nlohmann::json::json_pointer ptr(jsonPointerPath); in createDeleteObjectMethod() 100 static bool checkArrayElementsSameType(nlohmann::json& value) in checkArrayElementsSameType() 102 nlohmann::json::array_t* arr = value.get_ptr<nlohmann::json::array_t*>(); in checkArrayElementsSameType() 113 nlohmann::json::value_t firstType = value[0].type(); in checkArrayElementsSameType() 114 return std::ranges::all_of(value, [firstType](const nlohmann::json& el) { in checkArrayElementsSameType() 119 static nlohmann::json::value_t getDBusType( in getDBusType() 120 const nlohmann::json& value, nlohmann::json::value_t type, in getDBusType() 123 const bool array = value.type() == nlohmann::json::value_t::array; in getDBusType() 134 return nlohmann::json::value_t::number_float; in getDBusType() [all …]
|
| /openbmc/openbmc/meta-openembedded/meta-oe/recipes-connectivity/pcapplusplus/pcapplusplus/ |
| H A D | 0001-Remove-whitespace-in-operator-_json.patch | 9 git/3rdParty/json/include/json.hpp:24428:58: error: identifier '_json' preceded by whitespace in a … 14 Upstream-Status: Backport [ Its fixed in json import post 2024.9 release ] 17 3rdParty/json/include/json.hpp | 8 ++++---- 20 diff --git a/3rdParty/json/include/json.hpp b/3rdParty/json/include/json.hpp 22 --- a/3rdParty/json/include/json.hpp 23 +++ b/3rdParty/json/include/json.hpp 26 /// @sa https://json.nlohmann.me/api/basic_json/operator_literal_json/ 28 -inline nlohmann::json operator "" _json(const char* s, std::size_t n) 29 +inline nlohmann::json operator ""_json(const char* s, std::size_t n) 31 return nlohmann::json::parse(s, s + n); [all …]
|