diff --git a/lib/vfs/xdirentry.h b/lib/vfs/xdirentry.h index 4c9372140..68073efd2 100644 --- a/lib/vfs/xdirentry.h +++ b/lib/vfs/xdirentry.h @@ -41,11 +41,6 @@ #define FH ((vfs_file_handler_t *) fh) #define FH_SUPER FH->ino->super -#define LS_NOT_LINEAR 0 -#define LS_LINEAR_CLOSED 1 -#define LS_LINEAR_OPEN 2 -#define LS_LINEAR_PREOPEN 3 - /*** enums ***************************************************************************************/ /* For vfs_s_subclass->flags */ @@ -56,6 +51,14 @@ typedef enum VFS_S_USETMP = 1L << 2, } vfs_subclass_flags_t; +typedef enum +{ + LS_NOT_LINEAR = 0, + LS_LINEAR_CLOSED = 1, + LS_LINEAR_OPEN = 2, + LS_LINEAR_PREOPEN = 3 +} vfs_linear_state_t; + /*** structures declarations (and typedefs of structures)*****************************************/ /* Single connection or archive */ @@ -107,7 +110,7 @@ typedef struct off_t pos; /* This is for module's use */ int handle; /* This is for module's use, but if != -1, will be mc_close()d */ gboolean changed; /* Did this file change? */ - int linear; /* Is that file open with O_LINEAR? */ + vfs_linear_state_t linear; /* Is that file open with O_LINEAR? */ void *data; /* This is for filesystem-specific use */ } vfs_file_handler_t;