forked from systemd/systemd
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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.
- Loading branch information
Showing
2 changed files
with
115 additions
and
93 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -62,6 +62,7 @@ struct Location { | |
}; | ||
|
||
struct Directory { | ||
sd_journal *journal; | ||
char *path; | ||
int wd; | ||
bool is_root; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters