The DX_UIO data structure contains parameters for User-Defined Input/Output.
This structure, returned by dx_setuio( ), contains pointers to user-defined I/O functions for accessing nonstandard storage devices.
5.13.2. DX_UIO DefinitionThe typedef for the structure is as follows:
/*
* Structure for user-defined I/O functions
*/
typedef struct DX_UIO {
int (*u_read) ( );
int (*u_write) ( );
int (*u_seek) ( );
} DX_UIO;
5.13.3. DX_UIO Parameters
Parameter |
Description |
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. |
Click here to contact Dialogic Customer Engineering
Copyright 2002, Dialogic Corporation