Guid list
guid_list ¶
Simple list of GuidListEntry objects parsed from edk2 specific files.
GuidListEntry ¶
A object representing a Guid.
Attributes:
Name | Type | Description |
---|---|---|
name |
str
|
name of guid |
guid |
str
|
registry format guid in string format |
filepath |
str
|
absolute path to file where this guid was found |
__init__ ¶
__init__(
name: str, guid: str, filepath: str
) -> GuidListEntry
Create GuidListEntry for later review and compare.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
name |
str
|
name of guid |
required |
guid |
str
|
registry format guid in string format |
required |
filepath |
str
|
absolute path to file where this guid was found |
required |
GuidList ¶
Static class for returning Guids.
guidlist_from_filesystem
staticmethod
¶
guidlist_from_filesystem(
folder: str, ignore_lines: list = list()
) -> list
Create a list of GuidListEntry from files found in the file system.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
folder |
str
|
path string to root folder to walk |
required |
ignore_lines |
list
|
list of gitignore syntax to ignore files and folders |
list()
|
Returns:
Type | Description |
---|---|
list[GuidListEntry]
|
guids |
parse_guids_from_edk2_file
staticmethod
¶
parse_guids_from_edk2_file(filename: str) -> list
Parse edk2 files for guids.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
filename |
str
|
abspath to dec file |
required |
Returns:
Type | Description |
---|---|
list[GuidListEntry]
|
guids |
parse_guids_from_dec
staticmethod
¶
parse_guids_from_dec(stream: IO, filename: str) -> list
Find all guids in a dec file contents contained with stream.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
stream |
IO
|
lines of dec file content |
required |
filename |
str
|
abspath to dec file |
required |
Returns:
Type | Description |
---|---|
list[GuidListEntry]
|
Guids |
parse_guids_from_inf
staticmethod
¶
parse_guids_from_inf(filename: str) -> list
Find the module guid in an Edk2 inf file.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
filename |
str
|
abspath to inf file |
required |
Returns:
Type | Description |
---|---|
list[GuidListEntry]
|
Guids |