rpm  5.2.1
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 
64 rpmRC writeRPM(Header * hdrp, /*@null@*/ unsigned char ** pkgidp,
65  const char * fileName,
66  CSA_t csa,
67  /*@null@*/ char * passPhrase,
68  /*@out@*/ const char ** cookie)
69  /*@globals rpmGlobalMacroContext, h_errno,
70  fileSystem, internalState @*/
71  /*@modifies *hdrp, *pkgidp, *cookie, csa, csa->cpioArchiveSize,
72  rpmGlobalMacroContext, fileSystem, internalState @*/;
73 
74 #ifdef __cplusplus
75 }
76 #endif
77 
78 #endif /* _H_BUILDIO_ */