diff options
author | Christophe Grenier <[email protected]> | 2019-10-13 11:30:39 +0200 |
---|---|---|
committer | Christophe Grenier <[email protected]> | 2019-10-13 11:30:39 +0200 |
commit | 62c0d6c34d27383bf000945a0cf809af25e513c3 (patch) | |
tree | a5141681dc6121b36e6eacdba4a6aa2bee5d8fcc /src/filegen.h | |
parent | 54fb54dd4b0e16438a5e415f988a979ab8659ee7 (diff) |
move get_prev_location_smart() from src/photorec.h to src/filegen.h
Avoid using ftello and fseeko when using frama-c
Diffstat (limited to 'src/filegen.h')
-rw-r--r-- | src/filegen.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/filegen.h b/src/filegen.h index 75f66b8f..2436fc6d 100644 --- a/src/filegen.h +++ b/src/filegen.h @@ -286,6 +286,12 @@ time_t get_time_from_YYYY_MM_DD_HHMMSS(const char *date_asc); @*/ time_t get_time_from_YYYYMMDD_HHMMSS(const char *date_asc); +/*@ + @ requires \valid(list_search_space); + @ requires \valid(current_search_space); + @ requires \valid(offset); + @*/ +void get_prev_location_smart(alloc_data_t *list_search_space, alloc_data_t **current_search_space, uint64_t *offset, const uint64_t prev_location); #ifdef __cplusplus } /* closing brace for extern "C" */ #endif |