blob: 9d365b97d13a2eb67741ccc965a621db4fd6f023 [file] [log] [blame]
#pragma once
#include <cstdint>
#include <string>
#include <unordered_set>
#define PLDM_MAX_REQUEST_BYTES 2048
#define MAX_RETRIES_FOR_REQUEST 500
#define MAX_RETRIES_MCTP_SOCK_FAILURE 3 // should be always >= 1
#define ASSERT_MIN_MCTP_RETRIES(value) assert((value) >= 1)
#define MAX_LOOP_ITERATION_STATE_MACHINE 50
#define DEFAULT_INITIAL_VAL 0
constexpr uint8_t DEST_EID = 9;
// TODO(@harshtya): Change instance id to be dynamic
constexpr uint8_t INSTANCE_ID = 1;
constexpr bool DEBUG = true;
const std::unordered_set<std::string> UNSUPPORTED_RESOURCES = {
"/redfish/v1/Cables", "/redfish/v1/Systems"};
enum class ContextState
{
RDE_CONTEXT_FREE,
RDE_CONTEXT_NOT_FREE,
RDE_NO_CONTEXT_FOUND,
};