*/
-#ifndef VAR_DIR
- #define VAR_DIR "/var/lib/ext2ed" /* The configuration file will be searched here */
+#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 <linux/stat.h>
+#include <ext2fs/ext2_fs.h> /* Main kernel ext2 include file */
+#include <sys/stat.h>
-#ifdef OLD_NCURSES /* The ncurses interface */
- #include <ncurses/ncurses.h>
-#else
- #include <ncurses/curses.h>
-#endif
+#include <ncurses.h>
#define MAX_FIELDS 400
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;
extern void redraw_all (void);
extern void close_windows (void);
-#endif /* EXT2ED_EDITOR_H */
\ No newline at end of file
+#endif /* EXT2ED_EDITOR_H */