From: Stefan E. <se...@us...> - 2004-02-20 16:29:20
|
Update of /cvsroot/blob/blob/include/blob In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15774 Modified Files: generic_io.h Log Message: Add flags component to io drivers. Index: generic_io.h =================================================================== RCS file: /cvsroot/blob/blob/include/blob/generic_io.h,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- generic_io.h 10 May 2002 15:35:37 -0000 1.2 +++ generic_io.h 20 Feb 2004 16:18:01 -0000 1.3 @@ -100,7 +100,7 @@ */ -#define IO_NAME_LEN 32 +#define IO_NAME_LEN 32 #define IO_MAX_DRIVER 16 struct _io_def; @@ -139,7 +139,11 @@ */ typedef int (*io_write_func)( unsigned char *dest, unsigned char *src, size_t amount, struct _io_def *driver ); +#define GIO_FLAG_R (1<<0) +#define GIO_FLAG_W (1<<1) + typedef struct _io_def { + unsigned short flags; /* driver subfunctions, see below */ io_configure_func conf; io_read_func read; |