mirror of
https://github.com/apple/container.git
synced 2026-10-16 11:09:21 +00:00
- Closes #532. - Relocate all zstd calls down into CArchive, and export a function zstd_decompress_fd(src_fd, dst_fd) that ContainerizationArchive can use. This eliminates problems that can occur when treating Swift warnings as errors in Xcode projects that use ContainerizationArchive.
13 lines
334 B
C
13 lines
334 B
C
//
|
|
|
|
#pragma once
|
|
|
|
#include "archive.h"
|
|
#include <stdint.h>
|
|
|
|
void archive_set_error_wrapper(struct archive *a, int error_number, const char *error_string);
|
|
|
|
/// Decompress a zstd-compressed file at \p src_fd into \p dst_fd.
|
|
/// Returns 0 on success, or a non-zero error code on failure.
|
|
int zstd_decompress_fd(int src_fd, int dst_fd);
|