]> git.ipfire.org Git - thirdparty/systemd.git/commit
sd-journal: introduce cleanup function and hash ops for Directory
authorYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 8 Dec 2023 07:01:06 +0000 (16:01 +0900)
committerLuca Boccassi <luca.boccassi@gmail.com>
Mon, 1 Jan 2024 18:29:04 +0000 (19:29 +0100)
commit83a0417550e30e43730e09bb6c46ae10e30b6373
tree50e05b46a0cf02e97b0e9bdffe5a8845989feac0
parent86b8b66675d2ec34614ffc4ae972e691abe216e3
sd-journal: introduce cleanup function and hash ops for Directory

This makes the folloing:
- Each Directory object now has a reference to sd-journal.
- Hence, directory_free(), which is renamed from remove_directory(), can
  be called without sd-journal as an argument.
- Introduces hash ops for Directory, so the finalization becomes
  slightly simpler.
- Allocate hashmaps that store Directory objects when necessary.
- Split out add_directory_impl().

No functional changes, just refactoring.
src/libsystemd/sd-journal/journal-internal.h
src/libsystemd/sd-journal/sd-journal.c