Packages
packtype.utils.package
get_constants(pkg)
Get the constants defined in a Packtype package.
Returns:
Type | Description |
---|---|
Iterable[tuple[str, Constant]]
|
Iterable of tuples of the constant name and definition |
get_enums(pkg)
Get the enums defined in a Packtype package.
Returns:
Type | Description |
---|---|
Iterable[tuple[str, type[Enum]]]
|
Iterable of tuples of the enum name and definition |
get_imports(pkg)
List the imports of a Packtype package.
Returns:
Type | Description |
---|---|
Iterable[tuple[str, str]]
|
Iterable of tuples of the foreign package name and the imported object's name |
get_scalars(pkg)
Get the scalars defined in a Packtype package.
Returns:
Type | Description |
---|---|
Iterable[tuple[str, type[Scalar]]]
|
Iterable of tuples of the scalar name and definition |
get_structs_and_unions(pkg)
Get the structs and unions defined in a Packtype package.
Returns:
Type | Description |
---|---|
Iterable[tuple[str, type[Struct | Union]]]
|
Iterable of tuples of the struct/union name and definition |