Kernel: Add easier api for evaluating ACPI nodes

This commit is contained in:
2025-04-01 22:43:29 +03:00
parent b8a3439219
commit b145c1ab64
2 changed files with 4 additions and 4 deletions

View File

@@ -27,7 +27,8 @@ namespace Kernel::ACPI::AML
BAN::ErrorOr<void> parse(BAN::ConstByteSpan);
BAN::ErrorOr<Node> evaluate(BAN::StringView);
BAN::ErrorOr<Node> evaluate(BAN::StringView path) { return evaluate(Scope {}, path); }
BAN::ErrorOr<Node> evaluate(const Scope& scope, BAN::StringView);
// returns empty scope if object already exited
BAN::ErrorOr<Scope> add_named_object(const Scope& scope, const NameString& name_string, Node&& node);