xref: /openbmc/phosphor-logging/config/config.h.meson (revision fa2d962b5da807ac17bb7a355709ff05dd10d041)
1#pragma once
2#include <cstddef>
3
4#define PROCESS_META 1
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
11#define BMC_VERSION_FILE "/etc/os-release"
12#define BUSNAME_LOGGING "xyz.openbmc_project.Logging"
13#define BUSNAME_SYSLOG_CONFIG "xyz.openbmc_project.Syslog.Config"
14#define BUSPATH_REMOTE_LOGGING_CONFIG                                          \
15    "/xyz/openbmc_project/logging/config/remote"
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"
20#define OBJ_INTERNAL "/xyz/openbmc_project/logging/internal/manager"
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
26#define RSYSLOG_SERVER_CONFIG_FILE "@rsyslog_server_conf@"
27
28extern const bool IS_UNIT_TEST;
29
30static constexpr size_t ERROR_CAP = @error_cap@;
31static constexpr size_t ERROR_INFO_CAP = @error_info_cap@;
32
33static constexpr auto FIRST_CEREAL_CLASS_VERSION_WITH_FWLEVEL = "2";
34static constexpr auto FIRST_CEREAL_CLASS_VERSION_WITH_UPDATE_TS = "3";
35static constexpr auto FIRST_CEREAL_CLASS_VERSION_WITH_EVENTID = "4";
36static constexpr auto FIRST_CEREAL_CLASS_VERSION_WITH_RESOLUTION = "5";
37static constexpr size_t CLASS_VERSION = 5;
38
39// vim: ft=cpp
40