mappertool: add getancestors subcommand

Add a 'getancestors' subcommand that wraps the mapper's GetAncestors
D-Bus method. Given an object path, it prints each ancestor object
found in the mapper, along with the services that own it and the
interfaces each service implements there.

An optional -i/--interface flag (repeatable) restricts the output
to ancestors that implement a specific interface.

Usage: mappertool getancestors <path>
       mappertool getancestors <path> -i <interface>
Change-Id: I1c5d70b4fdc4a922835aba6f0a0eaa90936c7fdb
Signed-off-by: Yash Patel <yash.pateltx@gmail.com>
1 file changed
tree: 647c1ad3850937f8271d80e75af2ab7783a1cf4f
  1. fail-monitor/
  2. libmapper/
  3. src/
  4. subprojects/
  5. .clang-format
  6. .clang-tidy
  7. .gitignore
  8. LICENSE
  9. meson.build
  10. meson.options
  11. OWNERS
  12. README.md
README.md

The Mapper

This repository contains the mapper, which assists in finding things on D-Bus. There is documentation about it in the docs repository.

Prerequisites

Non-OpenBMC build dependencies are:

  • meson/ninja
  • boost
  • libsystemd
  • systemd
  • tinyxml2

Build

meson build && ninja -C build

Run Unit Tests

meson build && ninja -C build test

Clean the repository

rm -rf build