summaryrefslogtreecommitdiffstats
path: root/src/dir.h
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2008-04-29 20:37:45 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2008-04-29 20:37:45 +0200
commit2ee784cf7a57bb9569bec6c20150c15e7b3102ed (patch)
tree7179a9963384f813e5fba01ba7d7b519be368a9d /src/dir.h
parentec3188c5af756da44ecdef5deef1429c1f2e701d (diff)
Deleted files can be shown or not when listing files.
Diffstat (limited to 'src/dir.h')
-rw-r--r--src/dir.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/dir.h b/src/dir.h
index 927d0ff..9627a5b 100644
--- a/src/dir.h
+++ b/src/dir.h
@@ -24,11 +24,12 @@
#ifdef HAVE_SYS_STAT_H
#include <sys/stat.h>
#endif
-#define INTER_DIR 16
#define DIR_NAME_LEN 1024
#define FLAG_LIST_DELETED 1
#define FLAG_LIST_MASK12 2
#define FLAG_LIST_MASK16 4
+/* capabilities */
+#define CAPA_LIST_DELETED 1
typedef struct dir_data dir_data_t;
typedef struct file_data file_data_t;
@@ -39,6 +40,7 @@ struct dir_data
unsigned long int current_inode;
int verbose;
unsigned int param;
+ unsigned int capabilities;
file_data_t *(*get_dir)(disk_t *disk_car, const partition_t *partition, dir_data_t *dir_data, const unsigned long int first_inode);
int (*copy_file)(disk_t *disk_car, const partition_t *partition, dir_data_t *dir_data, const file_data_t *file);
void (*close)(dir_data_t *dir_data);