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 41de6de
Show file tree
Hide file tree
Showing 6 changed files with 32 additions and 24 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
14 changes: 9 additions & 5 deletions uefi_firmware/compression/LZMA/LzmaDecompress.c
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,10 @@ buffer was returned ScratchSize.
EFI_STATUS
EFIAPI
LzmaGetInfo (
CONST VOID *Source,
UINT32 SourceSize,
UINT32 *DestinationSize
CONST VOID *Source,
size_t SourceSize,
size_t *DestinationSize,
size_t *_ScratchSize
)
{
UINT64 DecodedSize;
Expand Down Expand Up @@ -131,8 +132,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
14 changes: 9 additions & 5 deletions uefi_firmware/compression/LZMA/LzmaDecompress.h
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,10 @@ extern "C" {
EFI_STATUS
EFIAPI
LzmaGetInfo (
CONST VOID *Source,
UINT32 SourceSize,
UINT32 *DestinationSize
CONST VOID *Source,
size_t SourceSize,
size_t *DestinationSize,
size_t *_ScratchSize
);

/*
Expand All @@ -82,8 +83,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
8 changes: 4 additions & 4 deletions uefi_firmware/compression/Tiano/Decompress.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Module Name:

EFI_STATUS
EfiGetInfo (
IN VOID *Source,
IN CONST VOID *Source,
IN size_t SrcSize,
OUT size_t *DstSize,
OUT size_t *ScratchSize
Expand All @@ -53,7 +53,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 @@ -84,7 +84,7 @@ Routine Description:

EFI_STATUS
TianoGetInfo (
IN VOID *Source,
IN CONST VOID *Source,
IN size_t SrcSize,
OUT size_t *DstSize,
OUT size_t *ScratchSize
Expand All @@ -111,7 +111,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 41de6de

Please sign in to comment.