summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwtc%netscape.com <devnull@localhost>1999-04-01 05:11:27 +0000
committerwtc%netscape.com <devnull@localhost>1999-04-01 05:11:27 +0000
commit89cef9f11fba8b2336d308bc0ab4fa2470420abd (patch)
tree2ecaad86eef59bfe468cdec96097f325b32199d8
parent0e85127ef673ba60cb107e6f70e942010d2eb9ec (diff)
downloadnspr-hg-89cef9f11fba8b2336d308bc0ab4fa2470420abd.tar.gz
Moved SocketPollFD functions from public header(prio.h) to this private header.
-rw-r--r--pr/include/private/pprio.h40
1 files changed, 40 insertions, 0 deletions
diff --git a/pr/include/private/pprio.h b/pr/include/private/pprio.h
index 7e73b31e..a442ef8d 100644
--- a/pr/include/private/pprio.h
+++ b/pr/include/private/pprio.h
@@ -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
**