25 lines
812 B
C
25 lines
812 B
C
#pragma once
|
|
|
|
#include <stdint.h>
|
|
#include <sys/types.h>
|
|
|
|
// These public libarchive functions are exported by macOS. The SDK ships the
|
|
// library interface but omits the headers, so declare the subset used here.
|
|
struct archive;
|
|
struct archive_entry;
|
|
|
|
enum {
|
|
ARCHIVE_EOF = 1,
|
|
ARCHIVE_OK = 0
|
|
};
|
|
|
|
struct archive *archive_read_new(void);
|
|
int archive_read_support_format_zip(struct archive *);
|
|
int archive_read_open_filename(struct archive *, const char *, size_t);
|
|
int archive_read_free(struct archive *);
|
|
int archive_read_next_header(struct archive *, struct archive_entry **);
|
|
ssize_t archive_read_data(struct archive *, void *, size_t);
|
|
mode_t archive_entry_filetype(struct archive_entry *);
|
|
int64_t archive_entry_size(struct archive_entry *);
|
|
const char *archive_entry_hardlink(struct archive_entry *);
|