]> git.ipfire.org Git - thirdparty/systemd.git/blob - src/boot/efi/cpio.h
boot: Replace UINTN with size_t
[thirdparty/systemd.git] / src / boot / efi / cpio.h
1 /* SPDX-License-Identifier: LGPL-2.1-or-later */
2 #pragma once
3
4 #include <efi.h>
5 #include <stdbool.h>
6 #include <uchar.h>
7
8 EFI_STATUS pack_cpio(
9 EFI_LOADED_IMAGE_PROTOCOL *loaded_image,
10 const char16_t *dropin_dir,
11 const char16_t *match_suffix,
12 const char *target_dir_prefix,
13 uint32_t dir_mode,
14 uint32_t access_mode,
15 uint32_t tpm_pcr,
16 const char16_t *tpm_description,
17 void **ret_buffer,
18 size_t *ret_buffer_size,
19 bool *ret_measured);
20
21 EFI_STATUS pack_cpio_literal(
22 const void *data,
23 size_t data_size,
24 const char *target_dir_prefix,
25 const char16_t *target_filename,
26 uint32_t dir_mode,
27 uint32_t access_mode,
28 uint32_t tpm_pcr,
29 const char16_t *tpm_description,
30 void **ret_buffer,
31 size_t *ret_buffer_size,
32 bool *ret_measured);