export le_socket from ext/sockets

This commit is contained in:
Antony Dovgal 2009-08-31 08:41:03 +00:00
parent 4cc35aeaaf
commit fe7e08432e
2 changed files with 8 additions and 0 deletions

View File

@ -91,6 +91,8 @@ struct sockaddr_un {
};
#endif
PHPAPI int php_sockets_le_socket(void);
/* Prototypes */
#ifdef ilia_0 /* not needed, only causes a compiler warning */
static int php_open_listen_sock(php_socket **php_sock, int port, int backlog TSRMLS_DC);

View File

@ -323,6 +323,12 @@ ZEND_GET_MODULE(sockets)
/* inet_ntop should be used instead of inet_ntoa */
int inet_ntoa_lock = 0;
PHPAPI int php_sockets_le_socket(void) /* {{{ */
{
return le_socket;
}
/* }}} */
static void php_destroy_socket(zend_rsrc_list_entry *rsrc TSRMLS_DC) /* {{{ */
{
php_socket *php_sock = (php_socket *) rsrc->ptr;