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:
Michael Jerris committed 2007-05-20 04:14:23 +00:00
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)
{