summaryrefslogtreecommitdiff
path: root/src/journal/journal-file.c
diff options
context:
space:
mode:
authorMichal Schmidt <mschmidt@redhat.com>2014-12-16 20:54:56 +0100
committerMichal Schmidt <mschmidt@redhat.com>2014-12-18 11:56:19 +0100
commit1fc605b0e130149a44abfa38c33f4535cfe548ea (patch)
tree4341b3adfd057df42d3d1d529cf22472784b89f1 /src/journal/journal-file.c
parent99cc7653a83af6647f28ac0cbedf6f6062e92b72 (diff)
journal: abstract the resetting of JournalFile's location
Diffstat (limited to 'src/journal/journal-file.c')
-rw-r--r--src/journal/journal-file.c4
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,