utility.hpp (d1bc4cec3bd77312b9ed3798739f949b4570deaf) utility.hpp (d262440dda885d8a1710ad9cedd5987a5a19701d)
1#pragma once
2
3#include "pmbus.hpp"
4
5#include <nlohmann/json.hpp>
6#include <phosphor-logging/elog.hpp>
7#include <phosphor-logging/log.hpp>
8#include <sdbusplus/bus.hpp>

--- 15 unchanged lines hidden (view full) ---

24
25/**
26 * @brief Get the service name from the mapper for the
27 * interface and path passed in.
28 *
29 * @param[in] path - the D-Bus path name
30 * @param[in] interface - the D-Bus interface name
31 * @param[in] bus - the D-Bus object
1#pragma once
2
3#include "pmbus.hpp"
4
5#include <nlohmann/json.hpp>
6#include <phosphor-logging/elog.hpp>
7#include <phosphor-logging/log.hpp>
8#include <sdbusplus/bus.hpp>

--- 15 unchanged lines hidden (view full) ---

24
25/**
26 * @brief Get the service name from the mapper for the
27 * interface and path passed in.
28 *
29 * @param[in] path - the D-Bus path name
30 * @param[in] interface - the D-Bus interface name
31 * @param[in] bus - the D-Bus object
32 * @param[in] logError - log error when no service found
32 *
33 * @return The service name
34 */
35std::string getService(const std::string& path, const std::string& interface,
33 *
34 * @return The service name
35 */
36std::string getService(const std::string& path, const std::string& interface,
36 sdbusplus::bus::bus& bus);
37 sdbusplus::bus::bus& bus, bool logError = true);
37
38/**
39 * @brief Read a D-Bus property
40 *
41 * @param[in] interface - the interface the property is on
42 * @param[in] propertName - the name of the property
43 * @param[in] path - the D-Bus path
44 * @param[in] service - the D-Bus service

--- 108 unchanged lines hidden ---
38
39/**
40 * @brief Read a D-Bus property
41 *
42 * @param[in] interface - the interface the property is on
43 * @param[in] propertName - the name of the property
44 * @param[in] path - the D-Bus path
45 * @param[in] service - the D-Bus service

--- 108 unchanged lines hidden ---