blob: e5df62c32a83c866b4466afd85d5e3479f40ac01 [file] [log] [blame]
Patrick Williamsf06056b2021-04-16 13:38:55 -05001#pragma once
Patrick Williams0bb89f82021-04-16 16:30:04 -05002#include <cstddef>
3
4#define PROCESS_META 1
Patrick Williamsf06056b2021-04-16 13:38:55 -05005
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 Williams0bb89f82021-04-16 16:30:04 -050011#define BMC_VERSION_FILE "/etc/os-release"
Patrick Williamsf06056b2021-04-16 13:38:55 -050012#define BUSNAME_LOGGING "xyz.openbmc_project.Logging"
Patrick Williamsb2b27082021-04-16 20:24:12 -050013#define BUSNAME_SYSLOG_CONFIG "xyz.openbmc_project.Syslog.Config"
Patrick Williamsa5171972021-04-16 20:10:01 -050014#define BUSPATH_REMOTE_LOGGING_CONFIG \
15 "/xyz/openbmc_project/logging/config/remote"
Patrick Williams0bb89f82021-04-16 16:30:04 -050016#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 Williamsf06056b2021-04-16 13:38:55 -050020#define OBJ_INTERNAL "/xyz/openbmc_project/logging/internal/manager"
Patrick Williams0bb89f82021-04-16 16:30:04 -050021#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 Fairaa5d03b2021-06-15 18:44:03 -070026#define RSYSLOG_SERVER_CONFIG_FILE "@rsyslog_server_conf@"
27
William A. Kennington IIIb6b25572021-05-19 17:09:41 -070028extern const char *ERRLOG_PERSIST_PATH;
29extern const char *EXTENSION_PERSIST_DIR;
30extern const bool IS_UNIT_TEST;
Patrick Williams0bb89f82021-04-16 16:30:04 -050031
32static constexpr size_t ERROR_CAP = @error_cap@;
33static constexpr size_t ERROR_INFO_CAP = @error_info_cap@;
34
35static constexpr auto FIRST_CEREAL_CLASS_VERSION_WITH_FWLEVEL = "2";
36static constexpr auto FIRST_CEREAL_CLASS_VERSION_WITH_UPDATE_TS = "3";
Vijay Lobod354a392021-06-01 16:21:02 -050037static constexpr auto FIRST_CEREAL_CLASS_VERSION_WITH_EVENTID= "4";
38static constexpr size_t CLASS_VERSION = 4;
Patrick Williamsf06056b2021-04-16 13:38:55 -050039
40// vim: ft=cpp