Voice API for Windows Operating Systems Library Reference — November 2003 371
install and retrieve user-defined I/O functions — dx_setdevuio( )
main(argc, argv)
int argc;
char *argv[];
{
/* Open channel */
if ((chdev = dx_open("dxxxB1C1",0)) == -1) {
printf("Cannot open channel\n");
/* Perform system error processing */
exit(1);
}
.
. /* Other initialization */
.
/* Initialize the device specific UIO structure */
devio.u_read = appread;
devio.u_write = appwrite;
devio.u_seek = appseek;
/* Install the applications I/O routines */
if (
dx_setdevuio(chdev, &devio, &getiop)
== -1) {
printf("error registering the UIO routines = %d\n", ATDV_LASTERR(chdev) );
}
}
!
!!
!See Also

dx_setuio( )