| Index: net/base/nss_memio.h
|
| diff --git a/net/base/nss_memio.h b/net/base/nss_memio.h
|
| index b2b873bdca39f4be7b6b4a7d0de5abdd7dc489f5..0cadb2f6056623cd87c52c93f0517ca02e0f28ff 100644
|
| --- a/net/base/nss_memio.h
|
| +++ b/net/base/nss_memio.h
|
| @@ -37,10 +37,10 @@ typedef struct memio_Private memio_Private;
|
| ----------------------------------------------------------------------*/
|
|
|
| /* Create the I/O layer and its two circular buffers. */
|
| -PRFileDesc *memio_CreateIOLayer(int readbufsize, int writebufsize);
|
| +PRFileDesc* memio_CreateIOLayer(int readbufsize, int writebufsize);
|
|
|
| /* Must call before trying to make an ssl connection */
|
| -void memio_SetPeerName(PRFileDesc *fd, const PRNetAddr *peername);
|
| +void memio_SetPeerName(PRFileDesc* fd, const PRNetAddr* peername);
|
|
|
| /* Return a private pointer needed by the following
|
| * four functions. (We could have passed a PRFileDesc to
|
| @@ -48,25 +48,25 @@ void memio_SetPeerName(PRFileDesc *fd, const PRNetAddr *peername);
|
| * to grab the pointer once and cache it.
|
| * This may be a premature optimization.)
|
| */
|
| -memio_Private *memio_GetSecret(PRFileDesc *fd);
|
| +memio_Private* memio_GetSecret(PRFileDesc* fd);
|
|
|
| /* Ask memio how many bytes were requested by a higher layer if the
|
| * last attempt to read data resulted in PR_WOULD_BLOCK_ERROR, due to the
|
| * transport buffer being empty. If the last attempt to read data from the
|
| * memio did not result in PR_WOULD_BLOCK_ERROR, returns 0.
|
| */
|
| -int memio_GetReadRequest(memio_Private *secret);
|
| +int memio_GetReadRequest(memio_Private* secret);
|
|
|
| /* Ask memio where to put bytes from the network, and how many it can handle.
|
| * Returns bytes available to write, or 0 if none available.
|
| * Puts current buffer position into *buf.
|
| */
|
| -int memio_GetReadParams(memio_Private *secret, char **buf);
|
| +int memio_GetReadParams(memio_Private* secret, char** buf);
|
|
|
| /* Ask memio how many bytes are contained in the internal buffer.
|
| * Returns bytes available to read, or 0 if none available.
|
| */
|
| -int memio_GetReadableBufferSize(memio_Private *secret);
|
| +int memio_GetReadableBufferSize(memio_Private* secret);
|
|
|
| /* Tell memio how many bytes were read from the network.
|
| * If bytes_read is 0, causes EOF to be reported to
|
| @@ -76,16 +76,18 @@ int memio_GetReadableBufferSize(memio_Private *secret);
|
| * map from Unix errors to NSPR error codes.
|
| * On EWOULDBLOCK or the equivalent, don't call this function.
|
| */
|
| -void memio_PutReadResult(memio_Private *secret, int bytes_read);
|
| +void memio_PutReadResult(memio_Private* secret, int bytes_read);
|
|
|
| /* Ask memio what data it has to send to the network.
|
| * If there was previous a write error, the NSPR error code is returned.
|
| * Otherwise, it returns 0 and provides up to two buffers of data by
|
| * writing the positions and lengths into |buf1|, |len1| and |buf2|, |len2|.
|
| */
|
| -int memio_GetWriteParams(memio_Private *secret,
|
| - const char **buf1, unsigned int *len1,
|
| - const char **buf2, unsigned int *len2);
|
| +int memio_GetWriteParams(memio_Private* secret,
|
| + const char** buf1,
|
| + unsigned int* len1,
|
| + const char** buf2,
|
| + unsigned int* len2);
|
|
|
| /* Tell memio how many bytes were sent to the network.
|
| * If bytes_written is < 0, it is treated as an NSPR error code.
|
| @@ -93,7 +95,7 @@ int memio_GetWriteParams(memio_Private *secret,
|
| * map from Unix errors to NSPR error codes.
|
| * On EWOULDBLOCK or the equivalent, don't call this function.
|
| */
|
| -void memio_PutWriteResult(memio_Private *secret, int bytes_written);
|
| +void memio_PutWriteResult(memio_Private* secret, int bytes_written);
|
|
|
| #ifdef __cplusplus
|
| }
|
|
|