BaseTools: Add the missing basic definition in C BaseType.h

Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Liming Gao <liming.gao@intel.com>
Reviewed-by: Yonghong Zhu <yonghong.zhu@intel.com>
This commit is contained in:
Liming Gao 2018-02-08 21:13:49 +08:00
parent 0feca62c7a
commit 3e44e9f534
1 changed files with 25 additions and 0 deletions

View File

@ -122,6 +122,31 @@
#endif #endif
///
/// 128 bit buffer containing a unique identifier value.
/// Unless otherwise specified, aligned on a 64 bit boundary.
///
typedef struct {
UINT32 Data1;
UINT16 Data2;
UINT16 Data3;
UINT8 Data4[8];
} GUID;
///
/// 4-byte buffer. An IPv4 internet protocol address.
///
typedef struct {
UINT8 Addr[4];
} IPv4_ADDRESS;
///
/// 16-byte buffer. An IPv6 internet protocol address.
///
typedef struct {
UINT8 Addr[16];
} IPv6_ADDRESS;
// //
// Macro that returns the byte offset of a field in a data structure. // Macro that returns the byte offset of a field in a data structure.
// //