blob: cad2916f2c52c32b44ab76035a1df1eacea2f4eb [file] [log] [blame]
#pragma once
#include <cstdint>
#include <string>
#include <tuple>
namespace google
{
namespace ipmi
{
class HandlerInterface
{
public:
virtual ~HandlerInterface() = default;
/**
* Return ethernet details (hard-coded).
*
* @return tuple of ethernet details (channel, if name).
*/
virtual std::tuple<std::uint8_t, std::string> getEthDetails() const = 0;
};
class Handler : public HandlerInterface
{
public:
Handler() = default;
~Handler() = default;
std::tuple<std::uint8_t, std::string> getEthDetails() const override;
};
extern Handler handlerImpl;
} // namespace ipmi
} // namespace google