X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=ext2ed%2Fext2ed.h;h=2ee483e8e2a84016c6631dd3d669c01c8eb3f32c;hb=aef07950e22a5a7b26cdcb9709dd9818b21025c6;hp=1e3af18a321208813c36e3b7c66fdb1f581ffb4e;hpb=b5ffeadece25f7dca04847dfc013e979fe36e3a6;p=tools%2Fe2fsprogs.git diff --git a/ext2ed/ext2ed.h b/ext2ed/ext2ed.h index 1e3af18..2ee483e 100644 --- a/ext2ed/ext2ed.h +++ b/ext2ed/ext2ed.h @@ -34,7 +34,7 @@ Copyright (C) 1995 Gadi Oxman #define DEBUG /* Activate self-sanity checks */ -#include /* Main kernel ext2 include file */ +#include /* Main kernel ext2 include file */ #include #include @@ -45,14 +45,14 @@ Copyright (C) 1995 Gadi Oxman #define MAX_COMMANDS_NUM 30 /* Maximum number of commands of one type */ #define REMEMBER_COUNT 30 /* Object memory size */ -/* +/* The user screen consists of four parts: 1. Title window (title_win). 2. Show (status) window (show_win). 3. Main show pad (show_pad). 4. Command window (command_win). - + */ /* @@ -93,12 +93,17 @@ struct struct_descriptor { /* Describes an object */ unsigned char name [60]; unsigned short fields_num; unsigned char field_names [MAX_FIELDS][80]; + unsigned char field_types [MAX_FIELDS]; unsigned short field_lengths [MAX_FIELDS]; unsigned short field_positions [MAX_FIELDS]; struct struct_commands type_commands; struct struct_descriptor *prev,*next; }; +#define FIELD_TYPE_INT 1 +#define FIELD_TYPE_UINT 2 +#define FIELD_TYPE_CHAR 3 + struct struct_type_data { /* The object's data is usually here */ long offset_in_block; @@ -128,7 +133,7 @@ struct struct_file_system_info { /* Important information about the filesystem struct struct_file_info { /* Used to handle files and directories */ struct ext2_inode *inode_ptr; - + long inode_offset; long global_block_num,global_block_offset; long block_num,blocks_count; @@ -139,7 +144,7 @@ struct struct_file_info { /* Used to handle files and directories */ int display; /* The following is used if the file is a directory */ - + long dir_entry_num,dir_entries_count; long dir_entry_offset; };