#ifndef C_API_PROTOCOL_MSGS_ERROR_H
#define C_API_PROTOCOL_MSGS_ERROR_H

#ifdef __cplusplus
extern "C" {
#endif

#include <stdint.h>
#include <stddef.h>
#include "protocol_msgs/ErrorReference.h"

#define PROTOCOL_MSGS_ERROR_LEVEL_WARNING "WARNING"
#define PROTOCOL_MSGS_ERROR_LEVEL_FATAL "FATAL"

typedef struct
{
  char *errorType;
  ErrorReference *errorReferences;
  size_t errorReferences_count;
  char *errorDescription;
  char *errorLevel;
} Error;

#ifdef __cplusplus
}
#endif

#endif // C_API_PROTOCOL_MSGS_ERROR_H
