buildio.h
Go to the documentation of this file.
#ifndef _H_BUILDIO_
#define _H_BUILDIO_
#include "rpmbuild.h"
typedef /*@abstract@*/ struct cpioSourceArchive_s {
rpmuint32_t cpioArchiveSize;
/*@relnull@*/
FD_t cpioFdIn;
/*@refcounted@*/ /*@relnull@*/
rpmfi cpioList;
/*@only@*/
struct rpmlead * lead; /* XXX FIXME: exorcize lead/arch/os */
} * CSA_t;
#ifdef __cplusplus
extern "C" {
#endif
#if defined(DEAD)
/*@unused@*/ int readRPM(/*@null@*/ const char * fileName,
/*@out@*/ Spec * specp,
/*@out@*/ void * l,
/*@out@*/ Header * sigs,
CSA_t csa)
/*@globals rpmGlobalMacroContext, h_errno,
fileSystem, internalState @*/
/*@modifies *specp, *lead, *sigs, csa, csa->cpioFdIn,
rpmGlobalMacroContext, fileSystem, internalState @*/;
#endif
rpmRC writeRPM(Header * hdrp, /*@null@*/ unsigned char ** pkgidp,
const char * fileName,
CSA_t csa,
/*@null@*/ char * passPhrase,
/*@out@*/ const char ** cookie)
/*@globals rpmGlobalMacroContext, h_errno,
fileSystem, internalState @*/
/*@modifies *hdrp, *pkgidp, *cookie, csa, csa->cpioArchiveSize,
rpmGlobalMacroContext, fileSystem, internalState @*/;
#ifdef __cplusplus
}
#endif
#endif /* _H_BUILDIO_ */