зеркало из https://github.com/mozilla/gecko-dev.git
Moved SocketPollFD functions from public header(prio.h) to this private header.
This commit is contained in:
Родитель
ea6c2f51ce
Коммит
78f068a3fe
|
@ -70,6 +70,46 @@ PR_EXTERN(PRFileDesc*) PR_ImportFile(PRInt32 osfd);
|
|||
PR_EXTERN(PRFileDesc*) PR_ImportTCPSocket(PRInt32 osfd);
|
||||
PR_EXTERN(PRFileDesc*) PR_ImportUDPSocket(PRInt32 osfd);
|
||||
|
||||
|
||||
/*
|
||||
*************************************************************************
|
||||
* FUNCTION: PR_CreateSocketPollFd
|
||||
* DESCRIPTION:
|
||||
* Create a PRFileDesc wrapper for a native socket handle, for use with
|
||||
* PR_Poll only
|
||||
* INPUTS:
|
||||
* None
|
||||
* OUTPUTS:
|
||||
* None
|
||||
* RETURN: PRFileDesc*
|
||||
* Upon successful completion, PR_CreateSocketPollFd returns a pointer
|
||||
* to the PRFileDesc created for the native socket handle
|
||||
* Returns a NULL pointer if the create of a new PRFileDesc failed
|
||||
*
|
||||
**************************************************************************
|
||||
*/
|
||||
|
||||
PR_EXTERN(PRFileDesc*) PR_CreateSocketPollFd(PRInt32 osfd);
|
||||
|
||||
/*
|
||||
*************************************************************************
|
||||
* FUNCTION: PR_DestroySocketPollFd
|
||||
* DESCRIPTION:
|
||||
* Destroy the PRFileDesc wrapper created by PR_CreateSocketPollFd
|
||||
* INPUTS:
|
||||
* None
|
||||
* OUTPUTS:
|
||||
* None
|
||||
* RETURN: PRFileDesc*
|
||||
* Upon successful completion, PR_DestroySocketPollFd returns
|
||||
* PR_SUCCESS, else PR_FAILURE
|
||||
*
|
||||
**************************************************************************
|
||||
*/
|
||||
|
||||
PR_EXTERN(PRStatus) PR_DestroySocketPollFd(PRFileDesc *fd);
|
||||
|
||||
|
||||
/*
|
||||
** Macros for PR_Socket
|
||||
**
|
||||
|
|
Загрузка…
Ссылка в новой задаче