]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
expose apr socket put
authorDarren Schreiber <darren@2600hz.com>
Sat, 27 Sep 2014 22:01:39 +0000 (15:01 -0700)
committerDarren Schreiber <darren@2600hz.com>
Sat, 27 Sep 2014 22:02:41 +0000 (15:02 -0700)
src/include/switch_apr.h
src/switch_apr.c

index 50096d5affad798d2d4bcdfeb58ae7847c042a0f..ea08dc797b3b86f8aab9b710883a2d51ffe8f0ba 100644 (file)
@@ -1406,6 +1406,7 @@ SWITCH_DECLARE(switch_interval_time_t) switch_interval_time_from_timeval(struct
 SWITCH_DECLARE(switch_status_t) switch_socket_create_pollfd(switch_pollfd_t **pollfd, switch_socket_t *sock, int16_t flags, void *client_data, switch_memory_pool_t *pool);
 SWITCH_DECLARE(switch_status_t) switch_match_glob(const char *pattern, switch_array_header_t ** result, switch_memory_pool_t *pool);
 SWITCH_DECLARE(switch_status_t) switch_os_sock_get(switch_os_socket_t *thesock, switch_socket_t *sock);
+SWITCH_DECLARE(switch_status_t) switch_os_sock_put(switch_socket_t **sock, switch_os_socket_t *thesock, switch_memory_pool_t *pool);
 SWITCH_DECLARE(switch_status_t) switch_socket_addr_get(switch_sockaddr_t ** sa, switch_bool_t remote, switch_socket_t *sock);
 SWITCH_DECLARE(switch_status_t) switch_os_sock_put(switch_socket_t **sock, switch_os_socket_t *thesock, switch_memory_pool_t *pool);
 /**
index e77be82897c07a146ab4c845a9769d8af8ed1149..bad894604cd315720bc16b593579affbce34b2fb 100644 (file)
@@ -663,6 +663,11 @@ SWITCH_DECLARE(switch_status_t) switch_os_sock_get(switch_os_socket_t *thesock,
        return apr_os_sock_get(thesock, sock);
 }
 
+SWITCH_DECLARE(switch_status_t) switch_os_sock_put(switch_socket_t **sock, switch_os_socket_t *thesock, switch_memory_pool_t *pool)
+{
+       return apr_os_sock_put(sock, thesock, pool);
+}
+
 SWITCH_DECLARE(switch_status_t) switch_socket_addr_get(switch_sockaddr_t ** sa, switch_bool_t remote, switch_socket_t *sock)
 {
        return apr_socket_addr_get(sa, (apr_interface_e) remote, sock);