ioctl(ixj, PHONE_CAPABILITIES_CHECK, struct phone_capability *pCap)
Return Value
Returns 1 if the driver supports the capability passed to it. Otherwise it returns 0.
Parameters
A pointer to a phone_capability structure.
typedef enum { vendor = 0, device, port, codec, dsp } phone_cap; struct phone_capability { char desc[80]; phone_cap captype; int cap; int handle; };
Remarks
None.
See Also:
PHONE_CAPABILITIES, PHONE_CAPABILITIES_LIST, PHONE_QUERY_CODEC
Example:
struct phone_capability capreq; capreq.captype = codec; capreq.cap = TS85; printf("TS85 = %d\n", ioctl(ixj, PHONE_CAPABILITIES_CHECK, &capreq)); capreq.cap = G723_63; printf("g.723.1 6.3 = %d\n", ioctl(ixj, PHONE_CAPABILITIES_CHECK,&capreq));
©1996-2001 Quicknet Technologies, Inc.