]> git.proxmox.com Git - mirror_edk2.git/commitdiff
BaseTools: Add the missing basic definition in C BaseType.h
authorLiming Gao <liming.gao@intel.com>
Thu, 8 Feb 2018 13:13:49 +0000 (21:13 +0800)
committerLiming Gao <liming.gao@intel.com>
Mon, 26 Feb 2018 05:18:15 +0000 (13:18 +0800)
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Liming Gao <liming.gao@intel.com>
Reviewed-by: Yonghong Zhu <yonghong.zhu@intel.com>
BaseTools/Source/C/Include/Common/BaseTypes.h

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