Function uacpi_object_is_aml_namepath
uacpi_bool uacpi_object_is_aml_namepath(uacpi_object*)
Description
Returns UACPI_TRUE if the provided string object is actually an AML namepath.
This can only be the case for package elements. If a package element is specified as a path to an object in AML, it's not resolved by the interpreter right away as it might not have been defined at that point yet, and is instead stored as a special string object to be resolved by client code when needed. Example usage: uacpi_namespace_node *target_node = UACPI_NULL; uacpi_object *obj = UACPI_NULL; uacpi_eval(scope, path, UACPI_NULL, &obj); uacpi_object_array arr; uacpi_object_get_package(obj, &arr); if (uacpi_object_is_aml_namepath(arr.objects[0])) { uacpi_object_resolve_as_aml_namepath( arr.objects[0], scope, &target_node ); }