summaryrefslogtreecommitdiffstats
path: root/src/dir.h
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2008-08-11 07:53:47 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2008-08-11 07:53:47 +0200
commit7ba7a6e19caad6f27e94bc51693ce3484be8c7d9 (patch)
tree727ff5c6080fbcb7ace4687c6d8eac15078b86a4 /src/dir.h
parentf57bc706bb65a0b710db53d16fb95b0c80a04042 (diff)
Sort deleted NTFS files
Diffstat (limited to 'src/dir.h')
-rw-r--r--src/dir.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/dir.h b/src/dir.h
index a888648..2d54d17 100644
--- a/src/dir.h
+++ b/src/dir.h
@@ -34,7 +34,6 @@
typedef struct dir_data dir_data_t;
typedef struct file_data file_data_t;
-typedef struct file_info file_info_t;
struct dir_data
{
@@ -63,14 +62,18 @@ struct file_data
unsigned int status;
};
-struct file_info {
+typedef struct
+{
struct td_list_head list;
char name[4096];
struct stat stat;
-};
+ unsigned int status;
+} file_info_t;
int dir_aff_log(const disk_t *disk_car, const partition_t *partition, const dir_data_t *dir_data, const file_data_t*dir_list);
+int log_list_file(const disk_t *disk_car, const partition_t *partition, const dir_data_t *dir_data, const file_info_t*list);
void delete_list_file(file_data_t *file_list);
+void delete_list_file_info(struct td_list_head *list);
int dir_partition_aff(disk_t *disk_car, const partition_t *partition, dir_data_t *dir_data, const unsigned long int inode, char **current_cmd);
int dir_whole_partition_log(disk_t *disk_car, const partition_t *partition, dir_data_t *dir_data, const unsigned long int inode);
void mode_string (const unsigned int mode, char *str);