Export rpmio fdGetFILE()

This commit is contained in:
Panu Matilainen 2007-10-29 09:20:59 +02:00
parent da6a613eb3
commit 3357b1fc76
3 changed files with 10 additions and 11 deletions

View File

@ -41,8 +41,6 @@ extern int h_errno;
#define UFDONLY(fd) /* assert(fdGetIo(fd) == ufdio) */
#define fdGetFILE(_fd) ((FILE *)fdGetFp(_fd))
/**
*/
#if _USE_LIBIO
@ -176,6 +174,11 @@ int fdFileno(void * cookie)
return fd->fps[0].fdno;
}
FILE * fdGetFILE(FD_t fd)
{
return ((FILE *)fdGetFp(fd));
}
/* =============================================================== */
/**

View File

@ -218,6 +218,11 @@ off_t fdSize(FD_t fd);
*/
FD_t fdDup(int fdno);
/** \ingroup rpmio
* Get associated FILE stream from fd (if any)
*/
FILE * fdGetFILE(FD_t fd);
/**
*/
extern FD_t fdLink (void * cookie, const char * msg);

View File

@ -345,15 +345,6 @@ void fdSetIo(FD_t fd, FDIO_t io)
fd->fps[fd->nfps].io = io;
}
/** \ingroup rpmio
*/
static inline
FILE * fdGetFILE(FD_t fd)
{
FDSANE(fd);
return ((FILE *)fd->fps[fd->nfps].fp);
}
/** \ingroup rpmio
*/
static inline