rpm  5.4.10
pkgio.h
Go to the documentation of this file.
1 #ifndef _H_PKGIO
2 #define _H_PKGIO
3 
9 #include <rpmio.h> /* XXX FD_t typedef */
10 #include <rpmpgp.h> /* XXX pgpDig typedef */
11 #include <rpmtag.h> /* XXX Header typedef */
12 
13 #ifdef __cplusplus
14 extern "C" {
15 #endif
16 
30 rpmRC headerCheck(pgpDig dig, const void * uh, size_t uc,
31  /*@out@*/ /*@null@*/ const char ** msg)
32  /*@globals fileSystem, internalState @*/
33  /*@modifies dig, *msg, fileSystem, internalState @*/;
34 
45  const char * fn, /*@null@*/ /*@out@*/ Header * hdrp)
46  /*@globals fileSystem, internalState @*/
47  /*@modifies ts, fd, *hdrp, fileSystem, internalState @*/;
48 
55 size_t rpmpkgSizeof(const char * fn, /*@null@*/ const void * ptr)
56  /*@*/;
57 
66 rpmRC rpmpkgWrite(const char * fn, FD_t fd, void * ptr, const char ** msg)
67  /*@globals fileSystem, internalState @*/
68  /*@modifies fd, ptr, *msg, fileSystem, internalState @*/;
69 
78 rpmRC rpmpkgRead(const char * fn, FD_t fd, /*@null@*/ /*@out@*/ void * ptr,
79  const char ** msg)
80  /*@globals fileSystem, internalState @*/
81  /*@modifies fd, *ptr, *msg, fileSystem, internalState @*/;
82 
91 rpmRC rpmpkgCheck(const char * fn, FD_t fd, const void * ptr, const char ** msg)
92  /*@globals fileSystem, internalState @*/
93  /*@modifies ptr, *msg, fileSystem, internalState @*/;
94 
95 #ifdef __cplusplus
96 }
97 #endif
98 
99 #endif /* _H_PKGIO */
OpenPGP constants and structures from RFC-2440.
rpmRC rpmpkgRead(const char *fn, FD_t fd, void *ptr, const char **msg)
Read item from file descriptor.
Definition: pkgio.c:1647
The Header data structure.
rpmRC headerCheck(pgpDig dig, const void *uh, size_t uc, const char **msg)
Check header consistency, performing headerGetEntry() the hard way.
Definition: pkgio.c:1027
The FD_t File Handle data structure.
struct pgpDig_s * pgpDig
Definition: rpmiotypes.h:83
rpmRC rpmReadPackageFile(rpmts ts, FD_t fd, const char *fn, Header *hdrp)
Return package header from file handle, verifying digests/signatures.
Definition: package.c:428
enum rpmRC_e rpmRC
RPM return codes.
rpmRC rpmpkgCheck(const char *fn, FD_t fd, const void *ptr, const char **msg)
Verify item integrity.
Definition: pkgio.c:1635
struct rpmts_s * rpmts
The RPM Transaction Set.
Definition: rpmtypes.h:14
size_t rpmpkgSizeof(const char *fn, const void *ptr)
Return size of item in bytes.
Definition: pkgio.c:1619
rpmRC rpmpkgWrite(const char *fn, FD_t fd, void *ptr, const char **msg)
Write item onto file descriptor.
Definition: pkgio.c:1665