Patrick Williams | f06056b | 2021-04-16 13:38:55 -0500 | [diff] [blame] | 1 | #pragma once |
Patrick Williams | 0bb89f8 | 2021-04-16 16:30:04 -0500 | [diff] [blame] | 2 | #include <cstddef> |
| 3 | |
| 4 | #define PROCESS_META 1 |
Patrick Williams | f06056b | 2021-04-16 13:38:55 -0500 | [diff] [blame] | 5 | |
| 6 | // @TODO(stwcx): These values are currently configured in autoconf but never |
| 7 | // modified by anyone, nor could I see why they ever would be. |
| 8 | // Once autoconf is removed, they should be switched over to |
| 9 | // a constant in a header file. |
| 10 | |
Patrick Williams | 0bb89f8 | 2021-04-16 16:30:04 -0500 | [diff] [blame] | 11 | #define BMC_VERSION_FILE "/etc/os-release" |
Patrick Williams | f06056b | 2021-04-16 13:38:55 -0500 | [diff] [blame] | 12 | #define BUSNAME_LOGGING "xyz.openbmc_project.Logging" |
Patrick Williams | b2b2708 | 2021-04-16 20:24:12 -0500 | [diff] [blame] | 13 | #define BUSNAME_SYSLOG_CONFIG "xyz.openbmc_project.Syslog.Config" |
Patrick Williams | a517197 | 2021-04-16 20:10:01 -0500 | [diff] [blame] | 14 | #define BUSPATH_REMOTE_LOGGING_CONFIG \ |
| 15 | "/xyz/openbmc_project/logging/config/remote" |
Patrick Williams | 0bb89f8 | 2021-04-16 16:30:04 -0500 | [diff] [blame] | 16 | #define CALLOUT_FWD_ASSOCIATION "callout" |
| 17 | #define CALLOUT_REV_ASSOCIATION "fault" |
| 18 | #define INVENTORY_ROOT "/xyz/openbmc_project/inventory" |
| 19 | #define OBJ_ENTRY "/xyz/openbmc_project/logging/entry" |
Patrick Williams | f06056b | 2021-04-16 13:38:55 -0500 | [diff] [blame] | 20 | #define OBJ_INTERNAL "/xyz/openbmc_project/logging/internal/manager" |
Patrick Williams | 0bb89f8 | 2021-04-16 16:30:04 -0500 | [diff] [blame] | 21 | #define OBJ_LOGGING "/xyz/openbmc_project/logging" |
Patrick Williams | b2b2708 | 2021-04-16 20:24:12 -0500 | [diff] [blame] | 22 | #define RSYSLOG_SERVER_CONFIG_FILE "/etc/rsyslog.d/server.conf" |
Patrick Williams | 0bb89f8 | 2021-04-16 16:30:04 -0500 | [diff] [blame] | 23 | #define SYSTEMD_BUSNAME "org.freedesktop.systemd1" |
| 24 | #define SYSTEMD_INTERFACE "org.freedesktop.systemd1.Manager" |
| 25 | #define SYSTEMD_PATH "/org/freedesktop/systemd1" |
| 26 | |
Patrick Williams | a517197 | 2021-04-16 20:10:01 -0500 | [diff] [blame] | 27 | #ifdef TESTCASE |
| 28 | #define ERRLOG_PERSIST_PATH "/tmp/errors" |
Patrick Williams | d9f0d64 | 2021-04-21 15:43:21 -0500 | [diff] [blame^] | 29 | #define EXTENSION_PERSIST_DIR "/tmp/extensions" |
Patrick Williams | a517197 | 2021-04-16 20:10:01 -0500 | [diff] [blame] | 30 | #else |
| 31 | #define ERRLOG_PERSIST_PATH "/var/lib/phosphor-logging/errors" |
Patrick Williams | d9f0d64 | 2021-04-21 15:43:21 -0500 | [diff] [blame^] | 32 | #define EXTENSION_PERSIST_DIR "/var/lib/phosphor-logging/extensions" |
Patrick Williams | a517197 | 2021-04-16 20:10:01 -0500 | [diff] [blame] | 33 | #endif |
Patrick Williams | 0bb89f8 | 2021-04-16 16:30:04 -0500 | [diff] [blame] | 34 | |
| 35 | static constexpr size_t ERROR_CAP = @error_cap@; |
| 36 | static constexpr size_t ERROR_INFO_CAP = @error_info_cap@; |
| 37 | |
| 38 | static constexpr auto FIRST_CEREAL_CLASS_VERSION_WITH_FWLEVEL = "2"; |
| 39 | static constexpr auto FIRST_CEREAL_CLASS_VERSION_WITH_UPDATE_TS = "3"; |
| 40 | static constexpr size_t CLASS_VERSION = 3; |
Patrick Williams | f06056b | 2021-04-16 13:38:55 -0500 | [diff] [blame] | 41 | |
| 42 | // vim: ft=cpp |