Export rpmio fdGetFILE()
This commit is contained in:
parent
da6a613eb3
commit
3357b1fc76
|
@ -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));
|
||||
}
|
||||
|
||||
/* =============================================================== */
|
||||
|
||||
/**
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue