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 */