summaryrefslogtreecommitdiffstats
path: root/src/dir.h
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2009-01-14 22:13:47 +0100
committerChristophe Grenier <grenier@cgsecurity.org>2009-01-14 22:13:47 +0100
commit1650fe5b8b6cea638c280df13605aea816718a00 (patch)
treefed11bd9361236aba47157d859607c109db05814 /src/dir.h
parent56e1c29b2c0614b0b3230946d72e1eaf37618bcc (diff)
Split ncurses text interface from functions
Diffstat (limited to 'src/dir.h')
-rw-r--r--src/dir.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/dir.h b/src/dir.h
index a21764b..8dcb716 100644
--- a/src/dir.h
+++ b/src/dir.h
@@ -21,6 +21,9 @@
*/
#ifndef _DIR_H
#define _DIR_H
+#ifdef __cplusplus
+extern "C" {
+#endif
#ifdef HAVE_SYS_STAT_H
#include <sys/stat.h>
#endif
@@ -52,6 +55,7 @@ struct dir_data
};
#define FILE_STATUS_DELETED 1
+#define FILE_STATUS_MARKED 2
/* TODO: add status to file_info and migrate file_data to file_info */
struct file_data
@@ -75,7 +79,6 @@ int dir_aff_log(const disk_t *disk_car, const partition_t *partition, const dir_
int log_list_file(const disk_t *disk_car, const partition_t *partition, const dir_data_t *dir_data, const file_info_t*list);
unsigned int 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);
int set_date(const char *pathname, time_t actime, time_t modtime);
@@ -128,4 +131,7 @@ void mkdir_local_for_file(const char *filename);
#define LINUX_S_ISSOCK(m) (((m) & LINUX_S_IFMT) == LINUX_S_IFSOCK)
int filesort(const struct td_list_head *a, const struct td_list_head *b);
+#ifdef __cplusplus
+} /* closing brace for extern "C" */
+#endif
#endif