rpm  4.14.0
rpmarchive.h
Go to the documentation of this file.
1 #ifndef H_ARCHIVE
2 #define H_ARCHIVE
3 
9 #define RPMERR_CHECK_ERRNO -32768
10 
29 
50 };
51 
52 #ifdef __cplusplus
53 extern "C" {
54 #endif
55 
61 char * rpmfileStrerror(int rc);
62 
75 
87  rpmfi rpmfiNewArchiveReader(FD_t fd, rpmfiles files, int itype);
88 
94 int rpmfiArchiveClose(rpmfi fi);
95 
102 
110 size_t rpmfiArchiveWrite(rpmfi fi, const void * buf, size_t size);
111 
118 int rpmfiArchiveWriteFile(rpmfi fi, FD_t fd);
119 
127 size_t rpmfiArchiveRead(rpmfi fi, void * buf, size_t size);
128 
135 
143 int rpmfiArchiveReadToFile(rpmfi fi, FD_t fd, int nodigest);
144 
145 #ifdef __cplusplus
146 }
147 #endif
148 
149 #endif /* H_ARCHIVE */
char * rpmfileStrerror(int rc)
Return formatted error message on payload handling failure.
int rpmfiArchiveClose(rpmfi fi)
Close payload archive.
size_t rpmfiArchiveRead(rpmfi fi, void *buf, size_t size)
Read content from current file in archive.
rpm_loff_t rpmfiArchiveTell(rpmfi fi)
Return current position in payload archive.
struct rpmfi_s * rpmfi
Definition: rpmtypes.h:66
size_t rpmfiArchiveWrite(rpmfi fi, const void *buf, size_t size)
Write content into current file in archive.
struct _FD_s * FD_t
RPM IO file descriptor type.
Definition: rpmtypes.h:98
int rpmfiArchiveHasContent(rpmfi fi)
Has current file content stored in the archive.
int rpmfiArchiveReadToFile(rpmfi fi, FD_t fd, int nodigest)
Write content from current file in archive to a file.
rpmfi rpmfiNewArchiveReader(FD_t fd, rpmfiles files, int itype)
Get new file iterator for looping over the archive content.
int rpmfiArchiveWriteFile(rpmfi fi, FD_t fd)
Write content from given file into current file in archive.
rpmfilesErrorCodes
Error codes for archive and file handling.
Definition: rpmarchive.h:14
rpmfi rpmfiNewArchiveWriter(FD_t fd, rpmfiles files)
Get new file iterator for writing the archive content.
struct rpmfiles_s * rpmfiles
Definition: rpmtypes.h:67
uint64_t rpm_loff_t
Definition: rpmtypes.h:51