Main Page Modules Data Structures File List Data Fields Globals Related Pages

# build/buildio.h

Go to the documentation of this file.

    00001 #ifndef _H_BUILDIO_
    00002 #define _H_BUILDIO_
    00003
    00011 #include "rpmbuild.h"
    00012
    00015 typedef /*@abstract@*/ struct cpioSourceArchive_s {
    00016     unsigned int cpioArchiveSize;
    00017     FD_t        cpioFdIn;
    00018     rpmfi       cpioList;
    00019 /*@only@*/ struct rpmlead * lead;       /* XXX FIXME: exorcize lead/arch/os */
    00020 } * CSA_t;
    00021
    00022 #ifdef __cplusplus
    00023 extern "C" {
    00024 #endif
    00025
    00035 /*@unused@*/ int readRPM(/*@null@*/ const char * fileName,
    00036                 /*@out@*/ Spec * specp,
    00037                 /*@out@*/ struct rpmlead * lead,
    00038                 /*@out@*/ Header * sigs,
    00039                 CSA_t csa)
    00040         /*@globals rpmGlobalMacroContext,
    00041                 fileSystem, internalState @*/
    00042         /*@modifies *specp, *lead, *sigs, csa, csa->cpioFdIn,
    00043                 rpmGlobalMacroContext, fileSystem, internalState @*/;
    00044
    00059 int writeRPM(Header * hdrp,
    00060                 const char * fileName,
    00061                 int type,
    00062                 CSA_t csa,
    00063                 /*@null@*/ char * passPhrase,
    00064                 /*@out@*/ const char ** cookie)
    00065         /*@globals rpmGlobalMacroContext,
    00066                 fileSystem, internalState @*/
    00067         /*@modifies *hdrp, *cookie, csa, csa->cpioArchiveSize,
    00068                 rpmGlobalMacroContext, fileSystem, internalState @*/;
    00069
    00070 #ifdef __cplusplus
    00071 }
    00072 #endif
    00073
    00074 #endif  /* _H_BUILDIO_ */