| #ifndef PRODUCTION_SUSHID_SAFEPOWER_AGENT_BMC_REDFISH_H_ |
| #define PRODUCTION_SUSHID_SAFEPOWER_AGENT_BMC_REDFISH_H_ |
| #include <nlohmann/json.hpp> |
| |
| #include <safepower_agent.pb.h> |
| #include <state_persistence.pb.h> |
| |
| #include "absl/strings/string_view.h" |
| #include "absl/status/statusor.h" |
| #include "absl/functional/any_invocable.h" |
| |
| #include "boost/asio/ip/tcp.hpp" // NOLINT |
| |
| namespace safepower_agent { |
| |
| namespace Redfish { |
| |
| void Get(absl::string_view URI, |
| absl::AnyInvocable |
| <void(absl::StatusOr<nlohmann::json>) && > |
| callback, |
| absl::string_view ip = "127.0.0.1", |
| uint16_t port = 80); |
| |
| } // namespace Redfish |
| |
| } // namespace safepower_agent |
| |
| #endif // PRODUCTION_SUSHID_SAFEPOWER_AGENT_BMC_REDFISH_H_ |