mappertool: add getsubtree subcommand

Add a 'getsubtree' subcommand that wraps the mapper's GetSubTree
D-Bus method. Given a subtree root path, it prints each object path
found under that subtree, along with the services that own it and
the interfaces each service implements there.

An optional -d/--depth flag limits how many levels deep to search
(0 = unlimited, which is the default). An optional -i/--interface
flag (repeatable) restricts the output to objects that implement a
specific interface.

Usage: mappertool getsubtree <subtree>
       mappertool getsubtree <subtree> -d <depth>
       mappertool getsubtree <subtree> -i <interface>
Change-Id: Ia928ad581884f4b8b01c656531d6a1064756b322
Signed-off-by: Yash Patel <yash.pateltx@gmail.com>
1 file changed
tree: 533aa40582d06551276b05a34277782765639638
  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