mirror of
https://github.com/MidnightCommander/mc
synced 2025-01-03 10:04:32 +03:00
vfs: create enum vfs_linear_state_t instead of defines.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
parent
95e1ab3064
commit
af466458b7
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user