ShellPkg/Dp: Add null pointer check
[mirror_edk2.git] / ShellPkg / Library / UefiShellNetwork2CommandsLib / UefiShellNetwork2CommandsLib.inf
1 ##  @file\r
2 # Provides shell network2 functions\r
3 #\r
4 # Copyright (c) 2016, Intel Corporation. All rights reserved. <BR>\r
5 #\r
6 #  This program and the accompanying materials\r
7 #  are licensed and made available under the terms and conditions of the BSD License\r
8 #  which accompanies this distribution. The full text of the license may be found at\r
9 #  http://opensource.org/licenses/bsd-license.php\r
10 #  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
11 #  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
12 #\r
13 #\r
14 ##\r
15 \r
16 [Defines]\r
17   INF_VERSION                    = 0x00010006\r
18   BASE_NAME                      = UefiShellNetwork2CommandsLib\r
19   FILE_GUID                      = D94E3B82-908E-46bf-A7B9-C7B7F17B1B7D\r
20   MODULE_TYPE                    = UEFI_APPLICATION\r
21   VERSION_STRING                 = 1.0\r
22   LIBRARY_CLASS                  = NULL|UEFI_APPLICATION UEFI_DRIVER\r
23   CONSTRUCTOR                    = ShellNetwork2CommandsLibConstructor\r
24   DESTRUCTOR                     = ShellNetwork2CommandsLibDestructor\r
25 \r
26 [Sources.common]\r
27   UefiShellNetwork2CommandsLib.uni\r
28   UefiShellNetwork2CommandsLib.c\r
29   UefiShellNetwork2CommandsLib.h\r
30   Ping6.c\r
31   Ifconfig6.c\r
32 \r
33 [Packages]\r
34   MdePkg/MdePkg.dec\r
35   ShellPkg/ShellPkg.dec\r
36   MdeModulePkg/MdeModulePkg.dec\r
37 \r
38 [LibraryClasses]\r
39   MemoryAllocationLib\r
40   BaseLib\r
41   BaseMemoryLib\r
42   DebugLib\r
43   ShellCommandLib\r
44   ShellLib\r
45   UefiLib\r
46   UefiRuntimeServicesTableLib\r
47   UefiBootServicesTableLib\r
48   PcdLib\r
49   HiiLib\r
50   FileHandleLib\r
51   NetLib\r
52 \r
53 [Pcd]\r
54   gEfiShellPkgTokenSpaceGuid.PcdShellProfileMask ## CONSUMES\r
55 \r
56 [Protocols]\r
57   gEfiCpuArchProtocolGuid                       ## CONSUMES\r
58   gEfiTimerArchProtocolGuid                     ## CONSUMES\r
59   gEfiIp6ProtocolGuid                           ## SOMETIMES_CONSUMES\r
60   gEfiIp6ServiceBindingProtocolGuid             ## SOMETIMES_CONSUMES\r
61   gEfiIp6ConfigProtocolGuid                     ## SOMETIMES_CONSUMES\r
62 \r
63 [Guids]\r
64   gShellNetwork2HiiGuid                         ## SOMETIMES_CONSUMES ## HII\r