TianoCore EDK2 master
Loading...
Searching...
No Matches
MiscNumberOfInstallableLanguagesFunction.c File Reference

Go to the source code of this file.

Functions

VOID EFIAPI GetNextLanguage (IN OUT CHAR8 **LangCode, OUT CHAR8 *Lang)
 
UINT16 EFIAPI GetSupportedLanguageNumber (IN EFI_HII_HANDLE HiiHandle)
 
 SMBIOS_MISC_TABLE_FUNCTION (MiscNumberOfInstallableLanguages)
 

Detailed Description

Based on files under Nt32Pkg/MiscSubClassPlatformDxe/

Copyright (c) 2021, NUVIA Inc. All rights reserved.
Copyright (c) 2009 - 2012, Intel Corporation. All rights reserved.
Copyright (c) 2015, Hisilicon Limited. All rights reserved.
Copyright (c) 2015, Linaro Limited. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent

Definition in file MiscNumberOfInstallableLanguagesFunction.c.

Function Documentation

◆ GetNextLanguage()

VOID EFIAPI GetNextLanguage ( IN OUT CHAR8 **  LangCode,
OUT CHAR8 *  Lang 
)

Get next language from language code list (with separator ';').

Parameters
LangCodeInput: point to first language in the list. On Output: point to next language in the list, or NULL if no more language in the list.
LangThe first language in the list.

Definition at line 34 of file MiscNumberOfInstallableLanguagesFunction.c.

◆ GetSupportedLanguageNumber()

UINT16 EFIAPI GetSupportedLanguageNumber ( IN EFI_HII_HANDLE  HiiHandle)

This function returns the number of supported languages on HiiHandle.

Parameters
HiiHandleThe HII package list handle.
Return values
Thenumber of supported languages.

Definition at line 72 of file MiscNumberOfInstallableLanguagesFunction.c.

◆ SMBIOS_MISC_TABLE_FUNCTION()

SMBIOS_MISC_TABLE_FUNCTION ( MiscNumberOfInstallableLanguages  )

This function makes boot time changes to the contents of the MiscNumberOfInstallableLanguages (Type 13) record.

Parameters
RecordDataPointer to SMBIOS table with default values.
SmbiosSMBIOS protocol.
Return values
EFI_SUCCESSThe SMBIOS table was successfully added.
EFI_INVALID_PARAMETERInvalid parameter was found.
EFI_OUT_OF_RESOURCESFailed to allocate required memory.

Definition at line 114 of file MiscNumberOfInstallableLanguagesFunction.c.