5 * \file build/buildio.h
6 * XXX this information will move elsewhere eventually
13 typedef struct cpioSourceArchive {
14 unsigned int cpioArchiveSize;
16 /*@dependent@*/ TFI_t cpioList;
17 struct rpmlead * lead; /* XXX FIXME: exorcize lead/arch/os */
25 * Read rpm package components from file.
26 * @param filename file name of package (or NULL to use stdin)
27 * @retval specp spec structure to carry package header (or NULL)
28 * @retval lead package lead
29 * @retval sigs package signature
31 * @return 0 on success
33 int readRPM(const char *fileName, /*@out@*/ Spec *specp, /*@out@*/ struct rpmlead *lead,
34 /*@out@*/ Header *sigs, CSA_t *csa);
37 * Write rpm package to file.
39 * @warning The first header argument is now passed by reference in order to
40 * return a reloaded contiguous header to the caller.
42 * @retval hdrp header to write (final header is returned).
43 * @param filename file name of package
44 * @param type RPMLEAD_SOURCE/RPMLEAD_BINARY
47 * @retval cookie generated cookie (i.e build host/time)
48 * @return 0 on success
50 int writeRPM(Header *hdrp, const char *fileName, int type,
51 CSA_t *csa, char *passPhrase, /*@out@*/ const char **cookie);
57 #endif /* _H_BUILDIO_ */