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>
This repository contains the mapper, which assists in finding things on D-Bus. There is documentation about it in the docs repository.
Non-OpenBMC build dependencies are:
meson build && ninja -C build
meson build && ninja -C build test
rm -rf build