Using NewPackageList vs HiiAddPackages


Justin
 

DriverSample in MdeModulePkg uses the HiiAddPackages function to add the uni file contents to the driver. The Wizard driver from the HII lab guide uses the NewPackageList function to do the same.

What are the differences (apart from function parameters) between them and what are the advantages of using one above the other?


Liming Gao
 

HiiAddPackages() is HiiLib API. NewPackageList() is HiiDataBase protocol service.
HiiAddPackages() wraps NewPackageList() service and simplify its usage.

Thanks
Liming

-----Original Message-----
From: discuss@edk2.groups.io [mailto:discuss@edk2.groups.io] On Behalf Of
Justin
Sent: Monday, October 14, 2019 8:20 PM
To: discuss@edk2.groups.io
Subject: [edk2-discuss] Using NewPackageList vs HiiAddPackages

DriverSample in MdeModulePkg uses the HiiAddPackages function to add the
uni file contents to the driver. The Wizard driver from the HII lab guide uses
the NewPackageList function to do the same.

What are the differences (apart from function parameters) between them
and what are the advantages of using one above the other?