mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-10-26 21:24:16 +00:00
move wanpipe's close function to the cross platform abstraction.
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@42 a93c3328-9c30-0410-af19-c9cd2b2d52af
This commit is contained in:
1 parent
426739b6b9
commit
6424510af9
2 files changed
+13
-7
No files matched your search
@@ -146,6 +146,18 @@ static sng_fd_t tdmv_api_open_span_chan(int span, int chan)
|
||||
#endif
|
||||
}
|
||||
|
||||
void tdmv_api_close_socket(sng_fd_t *sp)
|
||||
{
|
||||
if( *sp != INVALID_HANDLE_VALUE){
|
||||
#if defined(__WINDOWS__)
|
||||
CloseHandle(*sp);
|
||||
#else
|
||||
close(*sp);
|
||||
#endif
|
||||
*sp = INVALID_HANDLE_VALUE;
|
||||
}
|
||||
}
|
||||
|
||||
#ifdef __WINDOWS__
|
||||
static int wanpipe_api_ioctl(sng_fd_t fd, wan_cmd_api_t *api_cmd)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user