]> git.proxmox.com Git - mirror_edk2.git/commit
MdeModulePkg/HiiDB: Reorganize codes of exporting HII settings
authorDandan Bi <dandan.bi@intel.com>
Thu, 11 Oct 2018 06:37:09 +0000 (14:37 +0800)
committerHao Wu <hao.a.wu@intel.com>
Fri, 26 Oct 2018 07:08:40 +0000 (15:08 +0800)
commitadb2c050128c62ab96bdec95f648f9a18603b028
tree05cd7f551339d71abdc8064960b168ee3472214c
parent599bb2be1f2b119dcde9e5a7515dc6f3d19eb29d
MdeModulePkg/HiiDB: Reorganize codes of exporting HII settings

REF: https://bugzilla.tianocore.org/show_bug.cgi?id=1235

Function "HiiGetConfigurationSetting" may be called
when HiiDatabase contents have been updated.
And it is just to call function "HiiGetDatabaseInfo" to
get the contents in HiiDatabase and call function
"HiiGetConfigRespInfo" and get the configuration response
string form HII drivers.

So here we can remove function "HiiGetConfigurationSetting"
and make caller to call "HiiGetDatabaseInfo" and
"HiiGetConfigRespInfo" directly.

And thus it also can distinguish which code blocks are to
operate HiiDatabase contents and which code blocks are not.
Then it's easy to know which code blocks should be atomic
when updating HiiDatabase contents.

Cc: Liming Gao <liming.gao@intel.com>
Cc: Eric Dong <eric.dong@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Dandan Bi <dandan.bi@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
MdeModulePkg/Universal/HiiDatabaseDxe/Database.c
MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabase.h
MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseEntry.c