]> git.proxmox.com Git - mirror_edk2.git/commit - OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgSecLib.inf
OvmfPkg/QemuFwCfgLib: move InternalQemuFwCfgIsAvailable() to lib instances
authorLaszlo Ersek <lersek@redhat.com>
Wed, 30 Nov 2016 09:22:30 +0000 (10:22 +0100)
committerLaszlo Ersek <lersek@redhat.com>
Mon, 5 Dec 2016 18:44:34 +0000 (19:44 +0100)
commit5297c0bf832df31107d1e1681d72728a2caf5765
tree74cf18f4e5f2db02efeb776bcb1e67cc8ca72658
parent1cb33be961b48a1094d27028761343f146d9e20c
OvmfPkg/QemuFwCfgLib: move InternalQemuFwCfgIsAvailable() to lib instances

InternalQemuFwCfgIsAvailable() is an API that is incorrectly exposed by
the "OvmfPkg/Include/Library/QemuFwCfgLib.h" library class header; the API
is meant to be used internally to library instances (if it's needed at
all).

In OvmfPkg, we have two lib instances (for SEC and PEI/DXE); they provide
different implementations of InternalQemuFwCfgIsAvailable(), for the
shared file "OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgLib.c". Move the API
declaration to a new internal header called "QemuFwCfgLibInternal.h", and
drop EFIAPI in the process.

Cc: Jordan Justen <jordan.l.justen@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
OvmfPkg/Include/Library/QemuFwCfgLib.h
OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgLib.c
OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgLib.inf
OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgLibInternal.h [new file with mode: 0644]
OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgPeiDxe.c
OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgSec.c
OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgSecLib.inf