sdbusplus: use shorter type aliases

The sdbusplus headers provide shortened aliases for many types.
Switch to using them to provide better code clarity and shorter
lines.  Possible replacements are for:
  * bus_t
  * exception_t
  * manager_t
  * match_t
  * message_t
  * object_t
  * slot_t

Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: I86dfa77a53a306b0e868eeb82de30b270704c455
9 files changed
tree: f5bffaa24816206a0ebe9994b1dbe5a8a943bea6
  1. msl/
  2. subprojects/
  3. test/
  4. tools/
  5. .clang-format
  6. .gitignore
  7. .lcovrc
  8. .shellcheck
  9. 70-hwmon.rules
  10. 70-iio.rules
  11. average.cpp
  12. average.hpp
  13. env.cpp
  14. env.hpp
  15. fan_pwm.cpp
  16. fan_pwm.hpp
  17. fan_speed.cpp
  18. fan_speed.hpp
  19. gpio_handle.cpp
  20. gpio_handle.hpp
  21. hwmon.cpp
  22. hwmon.hpp
  23. hwmonio.cpp
  24. hwmonio.hpp
  25. interface.hpp
  26. LICENSE
  27. mainloop.cpp
  28. mainloop.hpp
  29. MAINTAINERS
  30. meson.build
  31. meson_options.txt
  32. OWNERS
  33. phosphor-hwmon.conf
  34. readd.cpp
  35. README.iio.md
  36. README.md
  37. sensor.cpp
  38. sensor.hpp
  39. sensorset.cpp
  40. sensorset.hpp
  41. start_hwmon.sh
  42. sysfs.cpp
  43. sysfs.hpp
  44. targets.hpp
  45. thresholds.hpp
  46. types.hpp
  47. util.hpp
  48. xyz.openbmc_project.Hwmon@.service
README.md

Exposes generic hwmon entries as DBus objects. More information can be found at Sensor Architecture

To Build

To build this package, do the following steps:

    1. meson build
    2. ninja -C build

To clean the repository run `rm -rf build`.

D-Bus bus names

To enable the use of Linux features like cgroups prioritization and
udev/systemd control, one instance of phosphor-hwmon is intended to
be run per hwmon sysfs class instance.

This requires an algorithm for selecting a stable, well-known D-Bus busname.

The algorithm is <PREFIX>-<ID>.Hwmon<N> where PREFIX is an autoconf
configurable prefix (BUSNAME_PREFIX, xyz.openbmc_project by default),
ID is either a std::hash of the /sys/devices path backing the hwmon class
instance or provided suffix value from the command line, and N is
the implemented phosphor-hwmon D-Bus API version.