9 #define RPMERR_CHECK_ERRNO -32768
struct _FD_s * FD_t
RPM IO file descriptor type.
struct rpmfiles_s * rpmfiles
int rpmfiArchiveClose(rpmfi fi)
Close payload archive.
char * rpmfileStrerror(int rc)
Return formatted error message on payload handling failure.
int rpmfiArchiveHasContent(rpmfi fi)
Has current file content stored in the archive.
ssize_t rpmfiArchiveRead(rpmfi fi, void *buf, size_t size)
Read content from current file in archive.
rpmfilesErrorCodes
Error codes for archive and file handling.
@ RPMERR_UNKNOWN_FILETYPE
rpm_loff_t rpmfiArchiveTell(rpmfi fi)
Return current position in payload archive.
int rpmfiArchiveReadToFile(rpmfi fi, FD_t fd, int nodigest)
Write content from current file in archive to a file.
size_t rpmfiArchiveWrite(rpmfi fi, const void *buf, size_t size)
Write content into current file in archive.
int rpmfiArchiveWriteFile(rpmfi fi, FD_t fd)
Write content from given file into current file in archive.
rpmfi rpmfiNewArchiveReader(FD_t fd, rpmfiles files, int itype)
Get new file iterator for looping over the archive content.
rpmfi rpmfiNewArchiveWriter(FD_t fd, rpmfiles files)
Get new file iterator for writing the archive content.