
Description | Cautions | Example | Errors
Name: |
int dx_close(dev) | |
Inputs: |
int dev |
|
Returns: |
0 if successful | |
-1 if error | ||
Includes: |
srllib.h | |
Category: |
Device Management | |
The dx_close( ) function closes Dialogic devices opened previously by using dx_open( ). It releases the handle and breaks any link the calling process has with the device through this handle. It will release the handle whether the device is busy or idle.
The function parameter is defined as follows:
Parameter |
Description |
dev |
specifies the valid Dialogic device handle obtained when a board or channel was opened using dx_open( ). |
Once a device is closed, a process can no longer perform any action on that device using that device handle. Other handles for that device that exist in the same process or other processes will still be valid. The only process affected by dx_close( ) is the process that called the function.
#include <srllib.h>
#include <dxxxlib.h>
#include <windows.h>
main()
{
DX_CAP cap;
int chdev;
/* continue processing */
if (dx_close (chdev) ==-1)
If this function returns -1 to indicate failure, a system error has occurred; use dx_fileerrno( ) to obtain the system error value. Refer to the dx_fileerrno( ) function for a list of the possible system error values.
Click here to contact Dialogic Customer Engineering
Copyright 2002, Dialogic Corporation