lshal: add ListCommand::tableForType
... to avoid duplicating switch/case logic.
Test: lshal_test
Change-Id: I9096534d607839ccc34dc115e76e890688a25c61
diff --git a/cmds/lshal/ListCommand.h b/cmds/lshal/ListCommand.h
index 45f6314..b10901c 100644
--- a/cmds/lshal/ListCommand.h
+++ b/cmds/lshal/ListCommand.h
@@ -134,6 +134,8 @@
void forEachTable(const std::function<void(Table &)> &f);
void forEachTable(const std::function<void(const Table &)> &f) const;
+ Table* tableForType(HalType type);
+ const Table* tableForType(HalType type) const;
NullableOStream<std::ostream> err() const;
NullableOStream<std::ostream> out() const;