summaryrefslogtreecommitdiff
path: root/build/buildio.h
blob: 1f8e972ebcd0b3c4382382864b2a28477e29f130 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#ifndef	_H_BUILDIO_
#define	_H_BUILDIO_

/* XXX this information will move elsewhere eventually */

#include "cpio.h"

typedef struct cpioSourceArchive {
    CFD_t	cpioCfd;
    int		cpioArchiveSize;
    FD_t	cpioFdIn;
    /*@only@*/struct cpioFileMapping *cpioList;
    int		cpioCount;
    struct rpmlead *lead;	/* XXX FIXME: exorcize lead/arch/os */
} CSA_t;

#ifdef __cplusplus
extern "C" {
#endif

int readRPM(const char *fileName, Spec *specp, struct rpmlead *lead,
		Header *sigs, CSA_t *csa);

int writeRPM(Header header, const char *fileName, int type,
		CSA_t *csa, char *passPhrase, char **cookie);

#ifdef __cplusplus
}
#endif

#endif	/* _H_BUILDIO_ */