| 1 |
/* SPDX-License-Identifier: LGPL-2.1-or-later */ |
| 2 |
#pragma once |
| 3 |
|
| 4 |
#include "shared-forward.h" |
| 5 |
#include "logs-show.h" |
| 6 |
|
| 7 |
/* The lists below are supposed to return the superset of unit names possibly matched by rules added with |
| 8 |
* add_matches_for_unit() and add_matches_for_user_unit(). */ |
| 9 |
#define SYSTEM_UNITS \ |
| 10 |
"_SYSTEMD_UNIT\0" \ |
| 11 |
"UNIT\0" \ |
| 12 |
"OBJECT_SYSTEMD_UNIT\0" |
| 13 |
|
| 14 |
#define SYSTEM_UNITS_FULL \ |
| 15 |
SYSTEM_UNITS \ |
| 16 |
"COREDUMP_UNIT\0" \ |
| 17 |
"_SYSTEMD_SLICE\0" |
| 18 |
|
| 19 |
#define USER_UNITS \ |
| 20 |
"_SYSTEMD_USER_UNIT\0" \ |
| 21 |
"USER_UNIT\0" \ |
| 22 |
"OBJECT_SYSTEMD_USER_UNIT\0" |
| 23 |
|
| 24 |
#define USER_UNITS_FULL \ |
| 25 |
USER_UNITS \ |
| 26 |
"COREDUMP_USER_UNIT\0" \ |
| 27 |
"_SYSTEMD_USER_SLICE\0" |
| 28 |
|
| 29 |
char* format_timestamp_maybe_utc(char *buf, size_t l, usec_t t); |
| 30 |
int acquire_journal(sd_journal **ret); |
| 31 |
bool journal_boot_has_effect(sd_journal *j); |
| 32 |
int journal_acquire_boot(sd_journal *j); |
| 33 |
int get_possible_units(sd_journal *j, const char *fields, char * const *patterns, Set **ret); |
| 34 |
int acquire_unit(sd_journal *j, const char *option_name, const char **ret_unit, LogIdType *ret_type); |
| 35 |
int journal_acquire_invocation(sd_journal *j); |