MdeModulePkg/Variable: Parameterize VARIABLE_INFO_ENTRY buffer
UpdateVariableInfo () currently accepts parameters regarding updates to be made to a global variable of type VARIABLE_INFO_ENTRY. This change passes the structure by pointer to UpdateVariableInfo () so structures other than the fixed global variable can be updated. Cc: Dandan Bi <dandan.bi@intel.com> Cc: Ard Biesheuvel <ard.biesheuvel@linaro.org> Cc: Eric Dong <eric.dong@intel.com> Cc: Laszlo Ersek <lersek@redhat.com> Cc: Liming Gao <liming.gao@intel.com> Cc: Michael D Kinney <michael.d.kinney@intel.com> Cc: Ray Ni <ray.ni@intel.com> Cc: Jian J Wang <jian.j.wang@intel.com> Cc: Hao A Wu <hao.a.wu@intel.com> Cc: Jiewen Yao <jiewen.yao@intel.com> Signed-off-by: Michael Kubacki <michael.a.kubacki@intel.com> Reviewed-by: Jian J Wang <jian.j.wang@intel.com> Reviewed-by: Hao A Wu <hao.a.wu@intel.com>
This commit is contained in:
@@ -286,13 +286,14 @@ VariableServiceGetNextVariableInternal (
|
||||
the transaction. Data is allocated by this routine, but never
|
||||
freed.
|
||||
|
||||
@param[in] VariableName Name of the Variable to track.
|
||||
@param[in] VendorGuid Guid of the Variable to track.
|
||||
@param[in] Volatile TRUE if volatile FALSE if non-volatile.
|
||||
@param[in] Read TRUE if GetVariable() was called.
|
||||
@param[in] Write TRUE if SetVariable() was called.
|
||||
@param[in] Delete TRUE if deleted via SetVariable().
|
||||
@param[in] Cache TRUE for a cache hit.
|
||||
@param[in] VariableName Name of the Variable to track.
|
||||
@param[in] VendorGuid Guid of the Variable to track.
|
||||
@param[in] Volatile TRUE if volatile FALSE if non-volatile.
|
||||
@param[in] Read TRUE if GetVariable() was called.
|
||||
@param[in] Write TRUE if SetVariable() was called.
|
||||
@param[in] Delete TRUE if deleted via SetVariable().
|
||||
@param[in] Cache TRUE for a cache hit.
|
||||
@param[in,out] VariableInfo Pointer to a pointer of VARIABLE_INFO_ENTRY structures.
|
||||
|
||||
**/
|
||||
VOID
|
||||
@@ -303,7 +304,8 @@ UpdateVariableInfo (
|
||||
IN BOOLEAN Read,
|
||||
IN BOOLEAN Write,
|
||||
IN BOOLEAN Delete,
|
||||
IN BOOLEAN Cache
|
||||
IN BOOLEAN Cache,
|
||||
IN OUT VARIABLE_INFO_ENTRY **VariableInfo
|
||||
);
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user