rpm  5.4.15
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 char bson_timestamp_t * ts
Definition: bson.h:1004
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:1674
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:1075
The FD_t File Handle data structure.
struct pgpDig_s * pgpDig
Definition: rpmiotypes.h:97
rpmRC rpmReadPackageFile(rpmts ts, FD_t fd, const char *fn, Header *hdrp)
Return package header from file handle, verifying digests/signatures.
Definition: package.c:114
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:1662
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:1646
rpmRC rpmpkgWrite(const char *fn, FD_t fd, void *ptr, const char **msg)
Write item onto file descriptor.
Definition: pkgio.c:1692