rpm  4.12.0.1
rpmarchive.h
Go to the documentation of this file.
1 #ifndef H_ARCHIVE
2 #define H_ARCHIVE
3 
8 #define RPMERR_CHECK_ERRNO -32768
9 
26 
47 };
48 
49 #ifdef __cplusplus
50 extern "C" {
51 #endif
52 
58 char * rpmfileStrerror(int rc);
59 
72 
84  rpmfi rpmfiNewArchiveReader(FD_t fd, rpmfiles files, int itype);
85 
91 int rpmfiArchiveClose(rpmfi fi);
92 
99 
107 size_t rpmfiArchiveWrite(rpmfi fi, const void * buf, size_t size);
108 
115 int rpmfiArchiveWriteFile(rpmfi fi, FD_t fd);
116 
124 size_t rpmfiArchiveRead(rpmfi fi, void * buf, size_t size);
125 
132 
140 int rpmfiArchiveReadToFile(rpmfi fi, FD_t fd, int nodigest);
141 
142 #ifdef __cplusplus
143 }
144 #endif
145 
146 #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:13
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