(Page 10 of 11 in this chapter)
typedef struct _query_timeslot_parms
{
DRVINT size ; /* size of this structure in bytes */
DRVINT stream ; /* set to network stream (16) */
DRVINT timeslot ; /* timeslot of line interface to query */
DRVINT item ; /* must be set to HYBRID_ID */
DRVINT buffer[1] ; /* buffer to receive line interface type */
} QUERY_TIMESLOT_PARMS
QUERY_TIMESLOT_PARMS op;
op.stream = 16;
op.timeslot = 15;
op.size = sizeof(op);
op.item = HYBRID_ID;
CxDriverCommand( SwHd,QUERY_TIMESLOT, (SWPINT FAR *) &op, sizeof(op)/sizeof(SWPINT)) ;
op.buffer[0] will contain the line interface type.
(Page 10 of 11 in this chapter)