Sanity.
[platform/upstream/rpm.git] / build / buildio.h
1 #ifndef _H_BUILDIO_
2 #define _H_BUILDIO_
3
4 /* XXX this information will move elsewhere eventually */
5
6 #include "cpio.h"
7
8 typedef struct cpioSourceArchive {
9     CFD_t       cpioCfd;
10     int         cpioArchiveSize;
11     FD_t        cpioFdIn;
12     /*@only@*/struct cpioFileMapping *cpioList;
13     int         cpioCount;
14     struct rpmlead *lead;       /* XXX FIXME: exorcize lead/arch/os */
15 } CSA_t;
16
17 #ifdef __cplusplus
18 extern "C" {
19 #endif
20
21 int readRPM(char *fileName, Spec *specp, struct rpmlead *lead,
22                 Header *sigs, CSA_t *csa);
23
24 int writeRPM(Header header, char *fileName, int type,
25                 CSA_t *csa, char *passPhrase, char **cookie);
26
27 #ifdef __cplusplus
28 }
29 #endif
30
31 #endif  /* _H_BUILDIO_ */