TianoCore EDK2 master
Loading...
Searching...
No Matches
SmbiosStringTableLib.h
Go to the documentation of this file.
1
8#ifndef SMBIOS_STRING_TABLE_H_
9#define SMBIOS_STRING_TABLE_H_
10
13typedef struct StringElement {
16
18 CONST CHAR8 *String;
20
23typedef struct StringTable {
25 UINT8 StrCount;
26
28 // the NULL termination for each string)
30
33
37
50EFIAPI
52 IN STRING_TABLE *CONST StrTable,
53 IN CONST CHAR8 *Str,
54 OUT UINT8 *StrRef OPTIONAL
55 );
56
65EFIAPI
67 IN STRING_TABLE *CONST StrTable
68 );
69
82EFIAPI
84 IN STRING_TABLE *CONST StrTable,
85 IN CHAR8 *CONST SmbiosStringAreaStart,
86 IN CONST UINTN SmbiosStringAreaSize
87 );
88
100EFIAPI
102 IN STRING_TABLE *CONST StrTable,
103 IN UINTN MaxStringElements
104 );
105
114EFIAPI
116 IN STRING_TABLE *CONST StrTable
117 );
118
119#endif // SMBIOS_STRING_TABLE_H_
UINT64 UINTN
#define CONST
Definition: Base.h:259
#define IN
Definition: Base.h:279
#define OUT
Definition: Base.h:284
UINTN EFIAPI StringTableGetStringSetSize(IN STRING_TABLE *CONST StrTable)
EFI_STATUS EFIAPI StringTableInitialize(IN STRING_TABLE *CONST StrTable, IN UINTN MaxStringElements)
EFI_STATUS EFIAPI StringTableFree(IN STRING_TABLE *CONST StrTable)
EFI_STATUS EFIAPI StringTablePublishStringSet(IN STRING_TABLE *CONST StrTable, IN CHAR8 *CONST SmbiosStringAreaStart, IN CONST UINTN SmbiosStringAreaSize)
struct StringTable STRING_TABLE
EFI_STATUS EFIAPI StringTableAddString(IN STRING_TABLE *CONST StrTable, IN CONST CHAR8 *Str, OUT UINT8 *StrRef OPTIONAL)
struct StringElement STRING_ELEMENT
RETURN_STATUS EFI_STATUS
Definition: UefiBaseType.h:29
UINTN StringLen
Length of the string (does not include the NULL termination)
CONST CHAR8 * String
Reference to the string.
UINT8 MaxStringElements
Maximum string count.
STRING_ELEMENT * Elements
Pointer to the string table elements.
UINTN TotalStrLen
Total length of all strings in the table (does not include.
UINT8 StrCount
Count of strings in the table.