rpm  5.4.14
pkgio.h
Go to the documentation of this file.
1 #ifndef _H_PKGIO
2 #define _H_PKGIO
3 
9 #include <stdint.h> /* XXX unint32_t typedef */
10 #include <rpmtypes.h>
11 #include <rpmio.h> /* XXX FD_t typedef */
12 #include <rpmpgp.h> /* XXX pgpDig typedef */
13 #include <rpmtag.h> /* XXX Header typedef */
14 
15 #ifdef __cplusplus
16 extern "C" {
17 #endif
18 
32 rpmRC headerCheck(pgpDig dig, const void * uh, size_t uc,
33  /*@out@*/ /*@null@*/ const char ** msg)
34  /*@globals fileSystem, internalState @*/
35  /*@modifies dig, *msg, fileSystem, internalState @*/;
36 
47  const char * fn, /*@null@*/ /*@out@*/ Header * hdrp)
48  /*@globals fileSystem, internalState @*/
49  /*@modifies ts, fd, *hdrp, fileSystem, internalState @*/;
50 
57 size_t rpmpkgSizeof(const char * fn, /*@null@*/ const void * ptr)
58  /*@*/;
59 
68 rpmRC rpmpkgWrite(const char * fn, FD_t fd, void * ptr, const char ** msg)
69  /*@globals fileSystem, internalState @*/
70  /*@modifies fd, ptr, *msg, fileSystem, internalState @*/;
71 
80 rpmRC rpmpkgRead(const char * fn, FD_t fd, /*@null@*/ /*@out@*/ void * ptr,
81  const char ** msg)
82  /*@globals fileSystem, internalState @*/
83  /*@modifies fd, *ptr, *msg, fileSystem, internalState @*/;
84 
93 rpmRC rpmpkgCheck(const char * fn, FD_t fd, const void * ptr, const char ** msg)
94  /*@globals fileSystem, internalState @*/
95  /*@modifies ptr, *msg, fileSystem, internalState @*/;
96 
97 #ifdef __cplusplus
98 }
99 #endif
100 
101 #endif /* _H_PKGIO */
const void * uh
Definition: rpmts-py.c:977
OpenPGP constants and structures from RFC-2440.
rpmRC rpmpkgWrite(const char *fn, FD_t fd, void *ptr, const char **msg)
Write item onto file descriptor.
Definition: pkgio.c:1665
struct rpmts_s * rpmts
The RPM Transaction Set.
Definition: rpmtypes.h:14
The Header data structure.
rpmRC headerCheck(pgpDig dig, const void *uh, size_t uc, const char **msg)
Check header consistency, performing headerGet() the hard way.
Definition: pkgio.c:1027
rpmRC rpmpkgCheck(const char *fn, FD_t fd, const void *ptr, const char **msg)
Verify item integrity.
Definition: pkgio.c:1635
struct pgpDig_s * pgpDig
Definition: rpmiotypes.h:86
exit Fhe p ptr
Definition: db3.c:2119
enum rpmRC_e rpmRC
RPM return codes.
Definition: signature.c:616
size_t rpmpkgSizeof(const char *fn, const void *ptr)
Return size of item in bytes.
Definition: pkgio.c:1619
rpmRC rpmReadPackageFile(rpmts ts, FD_t fd, const char *fn, Header *hdrp)
Return package header from file handle, verifying digests/signatures.
Definition: package.c:83
The FD_t File Handle data structure.
node fd
Definition: rpmfd-py.c:124
const char * msg
Definition: rpmts-py.c:976
rpmRC rpmpkgRead(const char *fn, FD_t fd, void *ptr, const char **msg)
Read item from file descriptor.
Definition: pkgio.c:1647
int uc
Definition: rpmts-py.c:978
pgpDig dig
Definition: rpmts-py.c:979
size_t fn
Definition: macro.c:1698