build/buildio.h

Go to the documentation of this file.
00001 #ifndef _H_BUILDIO_
00002 #define _H_BUILDIO_
00003 
00011 #include "rpmbuild.h"
00012 
00015 typedef /*@abstract@*/ struct cpioSourceArchive_s {
00016     unsigned int cpioArchiveSize;
00017     FD_t        cpioFdIn;
00018 /*@refcounted@*/ /*@relnull@*/
00019     rpmfi       cpioList;
00020 /*@only@*/
00021     struct rpmlead * lead;      /* XXX FIXME: exorcize lead/arch/os */
00022 } * CSA_t;
00023 
00024 #ifdef __cplusplus
00025 extern "C" {
00026 #endif
00027 
00037 /*@unused@*/ int readRPM(/*@null@*/ const char * fileName,
00038                 /*@out@*/ Spec * specp,
00039                 /*@out@*/ struct rpmlead * lead,
00040                 /*@out@*/ Header * sigs,
00041                 CSA_t csa)
00042         /*@globals rpmGlobalMacroContext, h_errno,
00043                 fileSystem, internalState @*/
00044         /*@modifies *specp, *lead, *sigs, csa, csa->cpioFdIn,
00045                 rpmGlobalMacroContext, fileSystem, internalState @*/;
00046 
00062 int writeRPM(Header * hdrp, /*@null@*/ unsigned char ** pkgidp,
00063                 const char * fileName,
00064                 int type,
00065                 CSA_t csa,
00066                 /*@null@*/ char * passPhrase,
00067                 /*@out@*/ const char ** cookie)
00068         /*@globals rpmGlobalMacroContext, h_errno,
00069                 fileSystem, internalState @*/
00070         /*@modifies *hdrp, *pkgidp, *cookie, csa, csa->cpioArchiveSize,
00071                 rpmGlobalMacroContext, fileSystem, internalState @*/;
00072 
00073 #ifdef __cplusplus
00074 }
00075 #endif
00076 
00077 #endif  /* _H_BUILDIO_ */

Generated on Fri Oct 12 08:44:53 2007 for rpm by  doxygen 1.5.2