diff options
author | Michal Schmidt <mschmidt@redhat.com> | 2014-12-16 20:54:56 +0100 |
---|---|---|
committer | Michal Schmidt <mschmidt@redhat.com> | 2014-12-18 11:56:19 +0100 |
commit | 1fc605b0e130149a44abfa38c33f4535cfe548ea (patch) | |
tree | 4341b3adfd057df42d3d1d529cf22472784b89f1 /src/journal/journal-file.c | |
parent | 99cc7653a83af6647f28ac0cbedf6f6062e92b72 (diff) |
journal: abstract the resetting of JournalFile's location
Diffstat (limited to 'src/journal/journal-file.c')
-rw-r--r-- | src/journal/journal-file.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/journal/journal-file.c b/src/journal/journal-file.c index efe14b0d92..8cbdbb9f96 100644 --- a/src/journal/journal-file.c +++ b/src/journal/journal-file.c @@ -1928,6 +1928,10 @@ int journal_file_move_to_entry_by_monotonic( ret, offset, NULL); } +void journal_file_reset_location(JournalFile *f) { + f->current_offset = 0; +} + int journal_file_next_entry( JournalFile *f, Object *o, uint64_t p, |