rpm  5.4.10
buildio.h
Go to the documentation of this file.
1 #ifndef _H_BUILDIO_
2 #define _H_BUILDIO_
3 
11 #include "rpmbuild.h"
12 
15 typedef /*@abstract@*/ struct cpioSourceArchive_s {
17 /*@relnull@*/
19 /*@refcounted@*/ /*@relnull@*/
21 /*@only@*/
22  struct rpmlead * lead; /* XXX FIXME: exorcize lead/arch/os */
23 } * CSA_t;
24 
25 #ifdef __cplusplus
26 extern "C" {
27 #endif
28 
29 #if defined(DEAD)
30 
39 /*@unused@*/ int readRPM(/*@null@*/ const char * fileName,
40  /*@out@*/ Spec * specp,
41  /*@out@*/ void * l,
42  /*@out@*/ Header * sigs,
43  CSA_t csa)
44  /*@globals rpmGlobalMacroContext, h_errno,
45  fileSystem, internalState @*/
46  /*@modifies *specp, *lead, *sigs, csa, csa->cpioFdIn,
47  rpmGlobalMacroContext, fileSystem, internalState @*/;
48 #endif
49 
65 rpmRC writeRPM(Header * hdrp, /*@null@*/ unsigned char ** pkgidp,
66  const char * fileName,
67  CSA_t csa,
68  /*@null@*/ char * passPhrase,
69  /*@out@*/ const char ** cookie, void * _dig)
70  /*@globals rpmGlobalMacroContext, h_errno,
71  fileSystem, internalState @*/
72  /*@modifies *hdrp, *pkgidp, *cookie, csa, csa->cpioArchiveSize,
73  rpmGlobalMacroContext, fileSystem, internalState @*/;
74 
75 #ifdef __cplusplus
76 }
77 #endif
78 
79 #endif /* _H_BUILDIO_ */