Skip to content

Commit

Permalink
fix: Update CompressionTypes typedefs
Browse files Browse the repository at this point in the history
  • Loading branch information
theopolis committed Oct 1, 2024
1 parent ae16a7a commit e390d4c
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 18 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on: [push, pull_request]
jobs:
build_sdist:
name: Build sdist
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
steps:
- name: Checkout source
uses: actions/checkout@v3
Expand Down Expand Up @@ -64,7 +64,7 @@ jobs:

publish_pypi:
name: Publish artifacts to PyPI
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
needs: [build_sdist, build_wheels]
permissions:
Expand Down
4 changes: 2 additions & 2 deletions uefi_firmware/compression/Include/CompressionTypes.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ EFI_STATUS
typedef
EFI_STATUS
(*GETINFO_FUNCTION) (
IN VOID *Source,
IN CONST VOID *Source,
IN size_t SrcSize,
OUT size_t *DstSize,
OUT size_t *ScratchSize
Expand All @@ -48,7 +48,7 @@ EFI_STATUS
typedef
EFI_STATUS
(*DECOMPRESS_FUNCTION) (
IN VOID *Source,
IN CONST VOID *Source,
IN size_t SrcSize,
IN OUT VOID *Destination,
IN size_t DstSize,
Expand Down
11 changes: 7 additions & 4 deletions uefi_firmware/compression/LZMA/LzmaDecompress.c
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,8 @@ EFI_STATUS
EFIAPI
LzmaGetInfo (
CONST VOID *Source,
UINT32 SourceSize,
UINT32 *DestinationSize
size_t SourceSize,
size_t *DestinationSize
)
{
UINT64 DecodedSize;
Expand Down Expand Up @@ -131,8 +131,11 @@ EFI_STATUS
EFIAPI
LzmaDecompress (
CONST VOID *Source,
UINT32 SourceSize,
VOID *Destination
size_t SourceSize,
VOID *Destination,
size_t _DstSize,
VOID *_Scratch,
size_t _ScratchSize
)
{
SRes LzmaResult;
Expand Down
11 changes: 7 additions & 4 deletions uefi_firmware/compression/LZMA/LzmaDecompress.h
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ extern "C" {
EFIAPI
LzmaGetInfo (
CONST VOID *Source,
UINT32 SourceSize,
UINT32 *DestinationSize
size_t SourceSize,
size_t *DestinationSize
);

/*
Expand All @@ -82,8 +82,11 @@ extern "C" {
EFIAPI
LzmaDecompress (
CONST VOID *Source,
UINT32 SourceSize,
VOID *Destination
size_t SourceSize,
VOID *Destination,
size_t _DstSize,
VOID *_Scratch,
size_t _ScratchSize
);

#ifdef __cplusplus
Expand Down
12 changes: 6 additions & 6 deletions uefi_firmware/compression/Tiano/Decompress.c
Original file line number Diff line number Diff line change
Expand Up @@ -680,7 +680,7 @@ Returns: (VOID)

EFI_STATUS
GetInfo (
IN VOID *Source,
IN CONST VOID *Source,
IN size_t SrcSize,
OUT size_t *DstSize,
OUT size_t *ScratchSize
Expand Down Expand Up @@ -720,7 +720,7 @@ Routine Description:

EFI_STATUS
Decompress (
IN VOID *Source,
IN CONST VOID *Source,
IN size_t SrcSize,
IN OUT VOID *Destination,
IN size_t DstSize,
Expand Down Expand Up @@ -814,7 +814,7 @@ Routine Description:

EFI_STATUS
EfiGetInfo (
IN VOID *Source,
IN CONST VOID *Source,
IN size_t SrcSize,
OUT size_t *DstSize,
OUT size_t *ScratchSize
Expand Down Expand Up @@ -844,7 +844,7 @@ Routine Description:

EFI_STATUS
TianoGetInfo ( //-V524
IN VOID *Source,
IN CONST VOID *Source,
IN size_t SrcSize,
OUT size_t *DstSize,
OUT size_t *ScratchSize
Expand Down Expand Up @@ -874,7 +874,7 @@ Routine Description:

EFI_STATUS
EfiDecompress (
IN VOID *Source,
IN CONST VOID *Source,
IN size_t SrcSize,
IN OUT VOID *Destination,
IN size_t DstSize,
Expand Down Expand Up @@ -909,7 +909,7 @@ Routine Description:

EFI_STATUS
TianoDecompress (
IN VOID *Source,
IN CONST VOID *Source,
IN size_t SrcSize,
IN OUT VOID *Destination,
IN size_t DstSize,
Expand Down

0 comments on commit e390d4c

Please sign in to comment.