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" |
| 22 | #define SYSTEMD_BUSNAME "org.freedesktop.systemd1" |
| 23 | #define SYSTEMD_INTERFACE "org.freedesktop.systemd1.Manager" |
| 24 | #define SYSTEMD_PATH "/org/freedesktop/systemd1" |
| 25 | |
Benjamin Fair | aa5d03b | 2021-06-15 18:44:03 -0700 | [diff] [blame] | 26 | #define RSYSLOG_SERVER_CONFIG_FILE "@rsyslog_server_conf@" |
| 27 | |
William A. Kennington III | b6b2557 | 2021-05-19 17:09:41 -0700 | [diff] [blame] | 28 | extern const char *ERRLOG_PERSIST_PATH; |
| 29 | extern const char *EXTENSION_PERSIST_DIR; |
| 30 | extern const bool IS_UNIT_TEST; |
Patrick Williams | 0bb89f8 | 2021-04-16 16:30:04 -0500 | [diff] [blame] | 31 | |
| 32 | static constexpr size_t ERROR_CAP = @error_cap@; |
| 33 | static constexpr size_t ERROR_INFO_CAP = @error_info_cap@; |
| 34 | |
| 35 | static constexpr auto FIRST_CEREAL_CLASS_VERSION_WITH_FWLEVEL = "2"; |
| 36 | static constexpr auto FIRST_CEREAL_CLASS_VERSION_WITH_UPDATE_TS = "3"; |
Vijay Lobo | d354a39 | 2021-06-01 16:21:02 -0500 | [diff] [blame] | 37 | static constexpr auto FIRST_CEREAL_CLASS_VERSION_WITH_EVENTID= "4"; |
| 38 | static constexpr size_t CLASS_VERSION = 4; |
Patrick Williams | f06056b | 2021-04-16 13:38:55 -0500 | [diff] [blame] | 39 | |
| 40 | // vim: ft=cpp |