Get the lead exactly right w/o reading rpmrc.
[tools/librpm-tizen.git] / build / buildio.h
1 #ifndef _H_bUILDIO_
2 #define _H_BUILDIO_
3
4 /* XXX this information will move elsewhere soon */
5
6 #include "cpio.h"
7
8 typedef struct cpioSourceArchive {
9     CFD_t       cpioCfd;
10     int         cpioArchiveSize;
11     int         cpioFdIn;
12     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 writeRPM(Header header, char *fileName, int type,
22                 CSA_t *csa, char *passPhrase, char **cookie);
23
24 #ifdef __cplusplus
25 }
26 #endif
27
28 #endif  /* _H_BUILDIO_ */