Whamcloud - gitweb
e2fsck: mark that we don't care about the return value of e2fsck_lookup()
[tools/e2fsprogs.git] / ext2ed / ext2ed.h
index 1e3af18..0ac77b7 100644 (file)
@@ -28,13 +28,9 @@ Copyright (C) 1995 Gadi Oxman
 
 */
 
-#ifndef ETC_DIR
-#define ETC_DIR        "/etc"          /* Where to find the config file */
-#endif
-
 #define DEBUG                                          /* Activate self-sanity checks */
 
-#include <linux/ext2_fs.h>                             /* Main kernel ext2 include file */
+#include <ext2fs/ext2_fs.h>                            /* Main kernel ext2 include file */
 #include <sys/stat.h>
 
 #include <ncurses.h>
@@ -45,14 +41,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 +89,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 +129,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 +140,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;
 };
@@ -248,7 +249,7 @@ void signal_SIGSEGV_handler (int sig_num);
 
 /* general_com.c */
 
-/* General commands which are aviable always */
+/* General commands which are available always */
 
 extern void help (char *command_line);
 extern void set (char *command_line);
@@ -274,7 +275,7 @@ void detailed_help (char *text);
 
 /* ext2_com.c */
 
-/* Extended2 filesystem genereal commands - Aviable only when editing an
+/* Extended2 filesystem general commands - Available only when editing an
    ext2 filesystem */
 
 extern void type_ext2___super (char *command_line);