xref: /openbmc/pldm/oem/meta/libpldmresponder/file_io_type_http_boot.hpp (revision dc26dc12352e79502c4709e206049cc462ee0f93)
1 #pragma once
2 
3 #include "file_io_by_type.hpp"
4 
5 #include <libpldm/oem/meta/file_io.h>
6 
7 namespace pldm::responder::oem_meta
8 {
9 /** @class PostCodeHandler
10  *
11  *  @brief Inherits and implements FileHandler. This class is used
12  *  to store incoming postcode
13  */
14 class HttpBootHandler : public FileHandler
15 {
16   public:
17     HttpBootHandler() = default;
18     HttpBootHandler(const HttpBootHandler&) = delete;
19     HttpBootHandler(HttpBootHandler&&) = delete;
20     HttpBootHandler& operator=(const HttpBootHandler&) = delete;
21     HttpBootHandler& operator=(HttpBootHandler&&) = delete;
22 
23     ~HttpBootHandler() = default;
24 
25     /** @brief Method to parse read file IO for Http Boot command (type: 0x03)
26      *         and returning the Http boot certification stored in BMC.
27      *  @param[in] data - eventData
28      *  @return  PLDM status code
29      */
30     int read(struct pldm_oem_meta_file_io_read_resp* data) override;
31 };
32 
33 } // namespace pldm::responder::oem_meta
34