| /openbmc/phosphor-dbus-monitor/src/test/ |
| H A D | propertywatchtest.hpp | 33 static Ret op(DBusInterfaceType& dbus, const std::string& busName, in op() 34 const std::string& path, const std::string& interface, in op() 35 const std::string& method, Args&&... args) in op() 46 const std::vector<std::string>&> 48 static GetObject op(DBusInterfaceType& dbus, const std::string& busName, in op() 49 const std::string& path, const std::string& interface, in op() 50 const std::string& method, const MapperPath& objectPath, in op() 51 const std::vector<std::string>& interfaces) in op() 62 const std::string&> 65 DBusInterfaceType& dbus, const std::string& busName, in op() [all …]
|
| /openbmc/phosphor-logging/extensions/openpower-pels/ |
| H A D | data_interface.hpp | 51 virtual std::string getMachineTypeModel() const = 0; 58 virtual std::string getMachineSerialNumber() const = 0; 92 void subscribeToHostStateChange(const std::string& name, in subscribeToHostStateChange() 103 void unsubscribeFromHostStateChange(const std::string& name) in unsubscribeFromHostStateChange() 109 std::function<void(const std::string& /* locationCode */)>; 121 void subscribeToFruPresent(const std::string& name, FRUPresentFunc func) in subscribeToFruPresent() 131 virtual std::string getBMCFWVersion() const in getBMCFWVersion() 141 virtual std::string getServerFWVersion() const in getServerFWVersion() 151 virtual std::string getBMCFWVersionID() const in getBMCFWVersionID() 163 std::optional<std::string> getProcessName(const std::string& pid) const in getProcessName() [all …]
|
| /openbmc/phosphor-host-ipmid/include/ipmid/ |
| H A D | utils.hpp | 51 ServiceCache(const std::string& intf, const std::string& path); 52 ServiceCache(std::string&& intf, std::string&& path); 60 const std::string& getService(sdbusplus::bus_t& bus); 84 const std::string intf; 86 const std::string path; 88 std::optional<std::string> cachedService; 90 std::optional<std::string> cachedBusName; 101 std::string getService(sdbusplus::bus_t& bus, const std::string& intf, 102 const std::string& path); 112 const std::string& subtreePath = ROOT, int32_t depth = 0); [all …]
|
| /openbmc/phosphor-fan-presence/ |
| H A D | sdbusplus.hpp | 37 explicit DBusError(const std::string& msg) : std::runtime_error(msg) {} in DBusError() 48 DBusMethodError(const std::string& busName, const std::string& path, in DBusMethodError() 49 const std::string& interface, const std::string& method) : in DBusMethodError() 55 const std::string busName; 56 const std::string path; 57 const std::string interface; 58 const std::string method; 70 DBusServiceError(const std::string& path, const std::string& interface) : in DBusServiceError() 76 const std::string path; 77 const std::string interface; [all …]
|
| /openbmc/phosphor-certificate-manager/ |
| H A D | certs_manager.hpp | 68 CertificateType type, const std::string& unit, 69 const std::string& installPath); 79 std::string install(const std::string filePath) override; 90 std::string path) override; 100 std::string filePath) override; 114 const std::string& filePath); 188 std::string generateCSR( 189 std::vector<std::string> alternativeNames, 190 std::string challengePassword, std::string city, std::string commonName, 191 std::string contactPerson, std::string country, std::string email, [all …]
|
| H A D | certificate.hpp | 69 using InstallFunc = std::function<void(const std::string&)>; 70 using AppendPrivKeyFunc = std::function<void(const std::string&)>; 102 Certificate(sdbusplus::bus_t& bus, const std::string& objPath, 103 CertificateType type, const std::string& installPath, 104 const std::string& uploadPath, Watch* watch, Manager& parent, 122 Certificate(sdbusplus::bus_t& bus, const std::string& objPath, 123 const CertificateType& type, const std::string& installPath, 124 X509_STORE& x509Store, const std::string& pem, Watch* watchPtr, 133 void install(const std::string& filePath, bool restore); 143 void install(X509_STORE& x509Store, const std::string& pem, bool restore); [all …]
|
| /openbmc/phosphor-psu-code-mgmt/src/ |
| H A D | utils.hpp | 36 std::vector<std::string> getPSUInventoryPaths(sdbusplus::bus_t& bus); 49 std::string getService(sdbusplus::bus_t& bus, const char* path, 63 std::vector<std::string> getServices(sdbusplus::bus_t& bus, const char* path, 92 std::string getVersionId(const std::string& version); 100 std::string getVersion(const std::string& inventoryPath); 108 std::string getModel(const std::string& inventoryPath); 117 std::string getLatestVersion(const std::set<std::string>& versions); 126 bool isAssociated(const std::string& psuInventoryPath, 142 using PropertyType = std::variant<std::string, bool>; 146 virtual std::vector<std::string> getPSUInventoryPaths( [all …]
|
| H A D | item_updater.hpp | 56 ItemUpdater(sdbusplus::bus_t& bus, const std::string& path) : in ItemUpdater() 78 void erase(const std::string& versionId); 85 void createActiveAssociation(const std::string& path) override; 92 void addFunctionalAssociation(const std::string& path) override; 99 void addUpdateableAssociation(const std::string& path) override; 105 void removeAssociation(const std::string& path) override; 112 void onUpdateDone(const std::string& versionId, 113 const std::string& psuInventoryPath) override; 117 std::map<std::string, utils::UtilsInterface::PropertyType>; 119 std::map<std::string, [all …]
|
| /openbmc/phosphor-power/tools/power-utils/ |
| H A D | updater.hpp | 53 bool update(sdbusplus::bus_t& bus, const std::string& psuInventoryPath, 54 const std::string& imageDir); 68 const std::string& psuInventoryPath, 69 const std::string& imageDir); 88 Updater(const std::string& psuInventoryPath, const std::string& devPath, 89 const std::string& imageDir); 127 const std::string& getPsuInventoryPath() const in getPsuInventoryPath() 133 const std::string& getDevPath() const in getDevPath() 139 const std::string& getDevName() const in getDevName() 145 const std::string& getImageDir() const in getImageDir() [all …]
|
| /openbmc/phosphor-user-manager/ |
| H A D | user_mgr.hpp | 54 std::pair<std::vector<std::string>, std::vector<std::string>>; 67 using Privilege = std::string; 68 using GroupList = std::vector<std::string>; 70 using PropertyName = std::string; 82 using Interface = std::string; 90 std::string getCSVFromVector(std::span<const std::string> vec); 92 bool removeStringFromCSV(std::string& csvStr, const std::string& delStr); 95 std::vector<std::string> executeCmd(const char* path, ArgTypes&&... tArgs) in executeCmd() 159 std::vector<std::string> results; in executeCmd() 163 std::string line = buffer; in executeCmd() [all …]
|
| /openbmc/telemetry/src/utils/ |
| H A D | tstring.hpp | 13 static std::string str() in str() 21 static std::string str() in str() 29 static std::string str() in str() 37 static std::string str() in str() 45 static std::string str() in str() 53 static std::string str() in str() 61 static std::string str() in str() 69 static std::string str() in str() 77 static std::string str() in str() 85 static std::string str() in str() [all …]
|
| /openbmc/bmcweb/include/ |
| H A D | dbus_utility.hpp | 35 std::vector<std::tuple<std::string, std::string, std::string>>, 36 std::vector<std::string>, 38 std::string, 51 std::tuple<uint64_t, std::vector<std::tuple<std::string, double, uint64_t>>>, 52 std::tuple<uint64_t, std::vector<std::tuple<std::string, std::string, double, uint64_t>>>, 54 std::vector<std::tuple<std::string, std::string>>, 58 std::vector<std::tuple<sdbusplus::message::object_path, std::string>>, 59 std::string, std::string, uint64_t>>, 60 std::vector<std::pair<sdbusplus::message::object_path, std::string>>, 61 std::vector<std::tuple<std::string, uint64_t, std::string, double>>, [all …]
|
| /openbmc/openpower-vpd-parser/vpd-manager/include/ |
| H A D | types.hpp | 20 std::string, bool, std::string, std::string, std::string, 21 std::variant<int64_t, std::string>, std::variant<int64_t, std::string>, 22 std::vector<std::tuple<std::string, std::variant<int64_t, std::string>, 23 std::string>>>; 25 std::variant<std::monostate, std::map<std::string, BiosProperty>>; 26 using BiosBaseTableType = std::map<std::string, BiosBaseTable>; 28 std::variant<std::monostate, int64_t, std::string>; 29 using BiosAttributePendingValue = std::variant<int64_t, std::string>; 30 using BiosGetAttrRetType = std::tuple<std::string, BiosAttributeCurrentValue, 33 std::pair<std::string, std::tuple<std::string, BiosAttributePendingValue>>; [all …]
|
| /openbmc/phosphor-certificate-manager/test/ |
| H A D | certs_manager_test.cpp | 46 bool compareFiles(const std::string& file1, const std::string& file2) in compareFiles() 84 certDir = std::string(dirPtr) + "/certs"; in SetUp() 105 std::string cmd = "openssl req -x509 -sha256 -newkey rsa:2048 "; in createNewCertificate() 153 bool compareFiles(const std::string& file1, const std::string& file2) in compareFiles() 176 std::string getCertSubjectNameHash(const std::string& certFilePath) in getCertSubjectNameHash() 182 std::string(); in getCertSubjectNameHash() 189 std::string(); in getCertSubjectNameHash() 195 std::string(); in getCertSubjectNameHash() 202 return std::string(hashBuf); in getCertSubjectNameHash() 207 std::string certificateFile, CSRFile, privateKeyFile, rsaPrivateKeyFilePath; [all …]
|
| /openbmc/phosphor-fan-presence/control/json/ |
| H A D | manager.hpp | 70 std::tuple<std::string, std::vector<std::unique_ptr<ActionBase>>&, 86 using SignalObject = std::tuple<std::string, std::string, std::string>; 124 using Intf_v = std::string; 125 using Prop_v = std::string; 186 static const std::vector<std::string>& getActiveProfiles(); 212 confFile.string())); in getConfig() 217 std::vector<std::string> profiles; in getConfig() 221 profile.template get<std::string>()); in getConfig() 273 static bool hasOwner(const std::string& path, const std::string& intf); 282 void setOwner(const std::string& serv, bool hasOwner); [all …]
|
| /openbmc/phosphor-power/ |
| H A D | json_parser_utils.hpp | 49 extern const std::map<std::string, std::string> NO_VARIABLES; 64 const std::string& property) in getRequiredProperty() 88 const std::map<std::string, std::string>& variables = NO_VARIABLES); 103 const std::map<std::string, std::string>& variables = NO_VARIABLES); 118 const std::map<std::string, std::string>& variables = NO_VARIABLES); 133 const std::map<std::string, std::string>& variables = NO_VARIABLES); 152 const std::map<std::string, std::string>& variables = NO_VARIABLES); 168 const std::map<std::string, std::string>& variables = NO_VARIABLES); 183 const std::map<std::string, std::string>& variables = NO_VARIABLES); 198 const std::map<std::string, std::string>& variables = NO_VARIABLES); [all …]
|
| /openbmc/phosphor-power/phosphor-regulators/src/ |
| H A D | journal.hpp | 58 virtual std::vector<std::string> getMessages(const std::string& field, 59 const std::string& fieldValue, 67 virtual void logDebug(const std::string& message) = 0; 74 virtual void logDebug(const std::vector<std::string>& messages) = 0; 81 virtual void logError(const std::string& message) = 0; 88 virtual void logError(const std::vector<std::string>& messages) = 0; 95 virtual void logInfo(const std::string& message) = 0; 102 virtual void logInfo(const std::vector<std::string>& messages) = 0; 122 virtual std::vector<std::string> getMessages(const std::string& field, 123 const std::string& fieldValue, [all …]
|
| /openbmc/openpower-pnor-code-mgmt/test/ |
| H A D | test_signature.cpp | 18 void command(const std::string& cmd) in command() 32 std::string tmpDir(testPath); in SetUp() 34 std::string imageDir = mkdtemp(const_cast<char*>(tmpDir.c_str())); in SetUp() 37 std::string tmpConfDir(testPath); in SetUp() 39 std::string confDir = mkdtemp(const_cast<char*>(tmpConfDir.c_str())); in SetUp() 53 command("mkdir " + extractPath.string()); in SetUp() 54 command("mkdir " + signedConfPath.string()); in SetUp() 55 command("mkdir " + signedConfPNORPath.string()); in SetUp() 57 std::string hashFile = signedConfPNORPath.string() + "/hashfunc"; in SetUp() 60 std::string manifestFile = extractPath.string() + "/" + "MANIFEST"; in SetUp() [all …]
|
| /openbmc/pldm/platform-mc/ |
| H A D | dbus_impl_fru.cpp | 10 std::string PldmEntityReq::partNumber(std::string value) in partNumber() 15 std::string PldmEntityReq::serialNumber(std::string value) in serialNumber() 20 std::string PldmEntityReq::manufacturer(std::string value) in manufacturer() 25 std::string PldmEntityReq::buildDate(std::string value) in buildDate() 30 std::string PldmEntityReq::model(std::string value) in model() 35 std::string PldmEntityReq::subModel(std::string value) in subModel() 40 std::string PldmEntityReq::sparePartNumber(std::string value) in sparePartNumber() 45 std::string PldmEntityReq::assetTag(std::string value) in assetTag() 50 std::string PldmEntityReq::version(std::string value) in version() 55 std::vector<std::string> PldmEntityReq::names(std::vector<std::string> values) in names()
|
| /openbmc/service-config-manager/inc/ |
| H A D | srvcfg_manager.hpp | 53 std::variant<std::string, int64_t, uint64_t, double, int32_t, uint32_t, 55 std::vector<std::tuple<std::string, std::string>>>; 62 const std::string& objPath_, const std::string& baseUnitName, 63 const std::string& instanceName, 64 const std::string& serviceObjPath, 65 const std::string& socketObjPath); 88 std::string objPath; 89 std::string baseUnitName; 90 std::string instanceName; 91 std::string instantiatedUnitName; [all …]
|
| /openbmc/openpower-hw-diags/util/ |
| H A D | dbus.hpp | 15 using DBusValue = std::variant<std::string, bool, std::vector<uint8_t>, 16 std::vector<std::string>, int32_t>; 17 using DBusProperty = std::string; 18 using DBusInterface = std::string; 19 using DBusService = std::string; 20 using DBusPath = std::string; 33 int find(const std::string& i_interface, std::string& o_path, 34 std::string& o_service); 44 int findService(const std::string& i_interface, const std::string& i_path, 45 std::string& o_service); [all …]
|
| /openbmc/entity-manager/src/entity_manager/ |
| H A D | topology.hpp | 8 using Association = std::tuple<std::string, std::string, std::string>; 11 std::declval<std::map<std::string, std::string>&>())); 16 std::string name; 17 std::string reverse; 19 AssocName(const std::string& name, const std::string& reverse, 20 const std::set<std::string>& allowedOnBoardTypes, 21 const std::set<std::string>& allowedOnBoardTypesReverse); 26 std::set<std::string> allowedOnBoardTypes; 30 std::set<std::string> allowedOnBoardTypesReverse; 45 void addBoard(const std::string& path, const std::string& boardType, [all …]
|
| /openbmc/openpower-occ-control/ |
| H A D | utils.hpp | 23 std::variant<uint32_t, bool, double, std::string, std::vector<std::string>>; 41 const std::string getService(const std::string& path, 42 const std::string& interface); 54 const PropertyValue getProperty(const std::string& objectPath, 55 const std::string& interface, 56 const std::string& propertyName); 66 void setProperty(const std::string& objectPath, const std::string& interface, 67 const std::string& propertyName, PropertyValue&& value); 78 std::vector<std::string> getSubtreePaths( 79 const std::vector<std::string>& interfaces, const std::string& path = "/"); [all …]
|
| /openbmc/openpower-vpd-parser/vpd-tool/include/ |
| H A D | tool_types.hpp | 20 std::vector<std::tuple<std::string, std::string, std::string>>, 21 std::vector<std::string>, 23 std::string, 37 std::tuple<uint64_t, std::vector<std::tuple<std::string, std::string, double, uint64_t>>>, 38 std::vector<std::tuple<std::string, std::string>>, 41 std::vector<std::tuple<sdbusplus::message::object_path, std::string, 42 std::string, std::string>> 46 using IpzType = std::tuple<std::string, std::string>; 49 using ReadVpdParams = std::variant<IpzType, std::string>; 52 using KwData = std::tuple<std::string, BinaryVector>; [all …]
|
| /openbmc/phosphor-objmgr/src/ |
| H A D | handler.hpp | 9 const std::string& objectPath, 13 const InterfaceMapType& interfaceMap, std::string reqPath, 14 std::vector<std::string>& interfaces); 17 const std::string& path, 18 std::vector<std::string>& interfaces); 21 const InterfaceMapType& interfaceMap, std::string reqPath, int32_t depth, 22 std::vector<std::string>& interfaces); 24 std::vector<std::string> getSubTreePaths(const InterfaceMapType& interfaceMap, 25 std::string reqPath, int32_t depth, 26 std::vector<std::string>& interfaces); [all …]
|