summaryrefslogtreecommitdiffstats
path: root/src/filegen.h
diff options
context:
space:
mode:
authorChristophe Grenier <[email protected]>2011-09-17 17:11:16 +0200
committerChristophe Grenier <[email protected]>2011-09-17 17:11:16 +0200
commitfbb41a9677e13d0dcae6c176b61de99476dbd32e (patch)
tree5c5933b1978d5414ee37ebe0e3b545e4de7b45f8 /src/filegen.h
parent54897586fd7fb4a103c6a5af2486232df8c2ba84 (diff)
new function file_rsearch() to search a pattern in a file from the end
Diffstat (limited to 'src/filegen.h')
-rw-r--r--src/filegen.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/filegen.h b/src/filegen.h
index 3a12992e..5949ec90 100644
--- a/src/filegen.h
+++ b/src/filegen.h
@@ -124,6 +124,7 @@ typedef struct
void free_header_check(void);
void file_allow_nl(file_recovery_t *file_recovery, const unsigned int nl_mode);
+uint64_t file_rsearch(FILE *handle, uint64_t offset, const void*footer, const unsigned int footer_length);
void file_search_footer(file_recovery_t *file_recovery, const void*footer, const unsigned int footer_length, const unsigned int extra_length);
void file_search_lc_footer(file_recovery_t *file_recovery, const unsigned char*footer, const unsigned int footer_length);
void del_search_space(alloc_data_t *list_search_space, const uint64_t start, const uint64_t end);