Intel 05-1832-002 User Manual

Page of 564
Voice API for Windows Operating Systems Library Reference — November 2003
519
user-defined input/output — DX_UIO
DX_UIO
user-defined input/output 
typedef struct DX_UIO {
      int  (*u_read) ( );
      int  (*u_write) ( );
      int  (*u_seek) ( );
} DX_UIO;
!
!
!
Description
The DX_UIO data structure contains parameters for user-defined input/output.
This structure, returned by 
, contains pointers to user-defined I/O functions for 
accessing non-standard storage devices.
!
!
!
Field Descriptions
The fields of the DX_UIO data structure are described as follows:
u_read 
points to the user-defined read( ) function, which returns an integer equal to the number of 
bytes read or -1 for error
u_write 
points to the user-defined write( ) function, which returns an integer equal to the number of 
bytes written or -1 for error
u_seek 
points to the user-defined lseek( ) function, which returns a long equal to the offset into the I/O 
device where the read or write is to start or -1 for error
!
!
!
Example
For an example of how to use the DX_UIO structure, see the Example section for