diff options
Diffstat (limited to 'MdePkg/Include/Protocol/RestEx.h')
-rw-r--r-- | MdePkg/Include/Protocol/RestEx.h | 110 |
1 files changed, 55 insertions, 55 deletions
diff --git a/MdePkg/Include/Protocol/RestEx.h b/MdePkg/Include/Protocol/RestEx.h index dc1b4381b9..e9bc7be94f 100644 --- a/MdePkg/Include/Protocol/RestEx.h +++ b/MdePkg/Include/Protocol/RestEx.h @@ -21,7 +21,7 @@ #include <Protocol/Http.h>
//
-//GUID definitions
+// GUID definitions
//
#define EFI_REST_EX_SERVICE_BINDING_PROTOCOL_GUID \
{ \
@@ -35,25 +35,25 @@ typedef struct _EFI_REST_EX_PROTOCOL EFI_REST_EX_PROTOCOL;
-//*******************************************************
-//EFI_REST_EX_SERVICE_INFO_VER
-//*******************************************************
+// *******************************************************
+// EFI_REST_EX_SERVICE_INFO_VER
+// *******************************************************
typedef struct {
- UINT8 Major;
- UINT8 Minor;
+ UINT8 Major;
+ UINT8 Minor;
} EFI_REST_EX_SERVICE_INFO_VER;
-//*******************************************************
-//EFI_REST_EX_SERVICE_INFO_HEADER
-//*******************************************************
+// *******************************************************
+// EFI_REST_EX_SERVICE_INFO_HEADER
+// *******************************************************
typedef struct {
- UINT32 Length;
- EFI_REST_EX_SERVICE_INFO_VER RestServiceInfoVer;
+ UINT32 Length;
+ EFI_REST_EX_SERVICE_INFO_VER RestServiceInfoVer;
} EFI_REST_EX_SERVICE_INFO_HEADER;
-//*******************************************************
+// *******************************************************
// EFI_REST_EX_SERVICE_TYPE
-//*******************************************************
+// *******************************************************
typedef enum {
EfiRestExServiceUnspecific = 1,
EfiRestExServiceRedfish,
@@ -62,66 +62,66 @@ typedef enum { EfiRestExServiceTypeMax
} EFI_REST_EX_SERVICE_TYPE;
-//*******************************************************
+// *******************************************************
// EFI_REST_EX_SERVICE_ACCESS_MODE
-//*******************************************************
+// *******************************************************
typedef enum {
- EfiRestExServiceInBandAccess = 1,
+ EfiRestExServiceInBandAccess = 1,
EfiRestExServiceOutOfBandAccess = 2,
EfiRestExServiceModeMax
} EFI_REST_EX_SERVICE_ACCESS_MODE;
-//*******************************************************
+// *******************************************************
// EFI_REST_EX_CONFIG_TYPE
-//*******************************************************
+// *******************************************************
typedef enum {
EfiRestExConfigHttp,
EfiRestExConfigUnspecific,
EfiRestExConfigTypeMax
} EFI_REST_EX_CONFIG_TYPE;
-//*******************************************************
-//EFI_REST_EX_SERVICE_INFO v1.0
-//*******************************************************
+// *******************************************************
+// EFI_REST_EX_SERVICE_INFO v1.0
+// *******************************************************
typedef struct {
- EFI_REST_EX_SERVICE_INFO_HEADER EfiRestExServiceInfoHeader;
- EFI_REST_EX_SERVICE_TYPE RestServiceType;
- EFI_REST_EX_SERVICE_ACCESS_MODE RestServiceAccessMode;
- EFI_GUID VendorRestServiceName;
- UINT32 VendorSpecificDataLength;
- UINT8 *VendorSpecifcData;
- EFI_REST_EX_CONFIG_TYPE RestExConfigType;
- UINT8 RestExConfigDataLength;
+ EFI_REST_EX_SERVICE_INFO_HEADER EfiRestExServiceInfoHeader;
+ EFI_REST_EX_SERVICE_TYPE RestServiceType;
+ EFI_REST_EX_SERVICE_ACCESS_MODE RestServiceAccessMode;
+ EFI_GUID VendorRestServiceName;
+ UINT32 VendorSpecificDataLength;
+ UINT8 *VendorSpecifcData;
+ EFI_REST_EX_CONFIG_TYPE RestExConfigType;
+ UINT8 RestExConfigDataLength;
} EFI_REST_EX_SERVICE_INFO_V_1_0;
-//*******************************************************
-//EFI_REST_EX_SERVICE_INFO
-//*******************************************************
+// *******************************************************
+// EFI_REST_EX_SERVICE_INFO
+// *******************************************************
typedef union {
- EFI_REST_EX_SERVICE_INFO_HEADER EfiRestExServiceInfoHeader;
- EFI_REST_EX_SERVICE_INFO_V_1_0 EfiRestExServiceInfoV10;
+ EFI_REST_EX_SERVICE_INFO_HEADER EfiRestExServiceInfoHeader;
+ EFI_REST_EX_SERVICE_INFO_V_1_0 EfiRestExServiceInfoV10;
} EFI_REST_EX_SERVICE_INFO;
-//*******************************************************
+// *******************************************************
// EFI_REST_EX_HTTP_CONFIG_DATA
-//*******************************************************
+// *******************************************************
typedef struct {
EFI_HTTP_CONFIG_DATA HttpConfigData;
UINT32 SendReceiveTimeout;
} EFI_REST_EX_HTTP_CONFIG_DATA;
-//*******************************************************
-//EFI_REST_EX_CONFIG_DATA
-//*******************************************************
+// *******************************************************
+// EFI_REST_EX_CONFIG_DATA
+// *******************************************************
typedef UINT8 *EFI_REST_EX_CONFIG_DATA;
-//*******************************************************
-//EFI_REST_EX_TOKEN
-//*******************************************************
+// *******************************************************
+// EFI_REST_EX_TOKEN
+// *******************************************************
typedef struct {
- EFI_EVENT Event;
- EFI_STATUS Status;
- EFI_HTTP_MESSAGE *ResponseMessage;
+ EFI_EVENT Event;
+ EFI_STATUS Status;
+ EFI_HTTP_MESSAGE *ResponseMessage;
} EFI_REST_EX_TOKEN;
/**
@@ -361,7 +361,7 @@ EFI_STATUS IN EFI_REST_EX_PROTOCOL *This,
IN EFI_HTTP_MESSAGE *RequestMessage OPTIONAL,
IN EFI_REST_EX_TOKEN *RestExToken
-);
+ );
///
/// EFI REST(EX) protocols are designed to support REST communication between EFI REST client
@@ -375,16 +375,16 @@ EFI_STATUS /// interface after the corresponding configuration is initialized.
///
struct _EFI_REST_EX_PROTOCOL {
- EFI_REST_SEND_RECEIVE SendReceive;
- EFI_REST_GET_TIME GetServiceTime;
- EFI_REST_EX_GET_SERVICE GetService;
- EFI_REST_EX_GET_MODE_DATA GetModeData;
- EFI_REST_EX_CONFIGURE Configure;
- EFI_REST_EX_ASYNC_SEND_RECEIVE AyncSendReceive;
- EFI_REST_EX_EVENT_SERVICE EventService;
+ EFI_REST_SEND_RECEIVE SendReceive;
+ EFI_REST_GET_TIME GetServiceTime;
+ EFI_REST_EX_GET_SERVICE GetService;
+ EFI_REST_EX_GET_MODE_DATA GetModeData;
+ EFI_REST_EX_CONFIGURE Configure;
+ EFI_REST_EX_ASYNC_SEND_RECEIVE AyncSendReceive;
+ EFI_REST_EX_EVENT_SERVICE EventService;
};
-extern EFI_GUID gEfiRestExServiceBindingProtocolGuid;
-extern EFI_GUID gEfiRestExProtocolGuid;
+extern EFI_GUID gEfiRestExServiceBindingProtocolGuid;
+extern EFI_GUID gEfiRestExProtocolGuid;
#endif
|