chiark / gitweb /
Revert f_type fixups
[elogind.git] / src / journal / journal-internal.h
index 3accf14c05ee98734d62b68cef11c8dc7b1248fb..eea56e4713b0e7e6b367c8c12422c59c820f2f16 100644 (file)
@@ -113,7 +113,7 @@ struct sd_journal {
 
         int inotify_fd;
 
-        Match *level0, *level1;
+        Match *level0, *level1, *level2;
 
         unsigned current_invalidate_counter, last_invalidate_counter;
 
@@ -132,3 +132,9 @@ struct sd_journal {
 
 char *journal_make_match_string(sd_journal *j);
 void journal_print_header(sd_journal *j);
+
+static inline void journal_closep(sd_journal **j) {
+        sd_journal_close(*j);
+}
+
+#define _cleanup_journal_close_ _cleanup_(journal_closep)