]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/libsystemd/sd-journal/sd-journal.c
journal: Introduce journal_file_data_payload()
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Thu, 29 Sep 2022 10:09:09 +0000 (12:09 +0200)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Fri, 7 Oct 2022 10:28:05 +0000 (12:28 +0200)
commit0e35afff1db475b46281fac75fa3fc2d7f26cae7
tree10524664ee6e1a113f9cce2efef47380b4e06943
parenta9089a6604066a8fa8138af2a6388be48f2a80ef
journal: Introduce journal_file_data_payload()

journal_file_data_payload() retrieves the payload of a Data object,
optionally decompressing it and checking to see if matches a given
field. This function replaces all the decompression code in the sd-journal
codebase with a single function.

This commit should not introduce any changes in sd-journal behavior.
src/libsystemd/sd-journal/journal-file.c
src/libsystemd/sd-journal/journal-file.h
src/libsystemd/sd-journal/sd-journal.c