blob: e24765bb68699e28de80f1fbd52042df0e6fa99a [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 Williamsa5171972021-04-16 20:10:01 -050013#define BUSPATH_REMOTE_LOGGING_CONFIG \
14 "/xyz/openbmc_project/logging/config/remote"
Patrick Williams0bb89f82021-04-16 16:30:04 -050015#define CALLOUT_FWD_ASSOCIATION "callout"
16#define CALLOUT_REV_ASSOCIATION "fault"
17#define INVENTORY_ROOT "/xyz/openbmc_project/inventory"
18#define OBJ_ENTRY "/xyz/openbmc_project/logging/entry"
Patrick Williamsf06056b2021-04-16 13:38:55 -050019#define OBJ_INTERNAL "/xyz/openbmc_project/logging/internal/manager"
Patrick Williams0bb89f82021-04-16 16:30:04 -050020#define OBJ_LOGGING "/xyz/openbmc_project/logging"
21#define SYSTEMD_BUSNAME "org.freedesktop.systemd1"
22#define SYSTEMD_INTERFACE "org.freedesktop.systemd1.Manager"
23#define SYSTEMD_PATH "/org/freedesktop/systemd1"
24
Patrick Williamsa5171972021-04-16 20:10:01 -050025#ifdef TESTCASE
26#define ERRLOG_PERSIST_PATH "/tmp/errors"
27#else
28#define ERRLOG_PERSIST_PATH "/var/lib/phosphor-logging/errors"
29#endif
Patrick Williams0bb89f82021-04-16 16:30:04 -050030
31static constexpr size_t ERROR_CAP = @error_cap@;
32static constexpr size_t ERROR_INFO_CAP = @error_info_cap@;
33
34static constexpr auto FIRST_CEREAL_CLASS_VERSION_WITH_FWLEVEL = "2";
35static constexpr auto FIRST_CEREAL_CLASS_VERSION_WITH_UPDATE_TS = "3";
36static constexpr size_t CLASS_VERSION = 3;
Patrick Williamsf06056b2021-04-16 13:38:55 -050037
38// vim: ft=cpp