diff options
author | Lennart Poettering <lennart@poettering.net> | 2019-11-27 12:11:24 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2020-01-31 15:02:29 +0100 |
commit | 456aa87906252169ecd3df9a44d0663f8bca5744 (patch) | |
tree | e4789920651b836b5968ac1ef84ab90ab431ea46 /src/systemd/sd-journal.h | |
parent | 2f5435a14757fd6f96f3d1faaa010a4464fb4825 (diff) | |
download | systemd-456aa87906252169ecd3df9a44d0663f8bca5744.tar.gz |
journal: allow opening journal files specific to some namespace
Diffstat (limited to 'src/systemd/sd-journal.h')
-rw-r--r-- | src/systemd/sd-journal.h | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/src/systemd/sd-journal.h b/src/systemd/sd-journal.h index dbca4ebce2..29ff40ab26 100644 --- a/src/systemd/sd-journal.h +++ b/src/systemd/sd-journal.h @@ -64,11 +64,13 @@ typedef struct sd_journal sd_journal; /* Open flags */ enum { - SD_JOURNAL_LOCAL_ONLY = 1 << 0, - SD_JOURNAL_RUNTIME_ONLY = 1 << 1, - SD_JOURNAL_SYSTEM = 1 << 2, - SD_JOURNAL_CURRENT_USER = 1 << 3, - SD_JOURNAL_OS_ROOT = 1 << 4, + SD_JOURNAL_LOCAL_ONLY = 1 << 0, + SD_JOURNAL_RUNTIME_ONLY = 1 << 1, + SD_JOURNAL_SYSTEM = 1 << 2, + SD_JOURNAL_CURRENT_USER = 1 << 3, + SD_JOURNAL_OS_ROOT = 1 << 4, + SD_JOURNAL_ALL_NAMESPACES = 1 << 5, /* Show all namespaces, not just the default or specified one */ + SD_JOURNAL_INCLUDE_DEFAULT_NAMESPACE = 1 << 6, /* Show default namespace in addition to specified one */ SD_JOURNAL_SYSTEM_ONLY _sd_deprecated_ = SD_JOURNAL_SYSTEM /* deprecated name */ }; @@ -81,6 +83,7 @@ enum { }; int sd_journal_open(sd_journal **ret, int flags); +int sd_journal_open_namespace(sd_journal **ret, const char *name_space, int flags); int sd_journal_open_directory(sd_journal **ret, const char *path, int flags); int sd_journal_open_directory_fd(sd_journal **ret, int fd, int flags); int sd_journal_open_files(sd_journal **ret, const char **paths, int flags); |