Exemplo n.º 1
0
        public Aml.ACPIObject EvaluateObject(string name, IList <Aml.ACPIObject> args, Aml.ACPIObject.DataType to_type)
        {
            ACPIName valid_name = GetValidName(name);

            Aml.ACPIObject ret = acpi.n.Evaluate(valid_name, acpi.mi, GetArguments(args));
            if (ret == null)
            {
                return(null);
            }

            Namespace.State s = new Namespace.State
            {
                Args   = new Dictionary <int, ACPIObject>(new tysos.Program.MyGenericEqualityComparer <int>()),
                Locals = new Dictionary <int, ACPIObject>(new tysos.Program.MyGenericEqualityComparer <int>()),
                Scope  = acpi.n.FindObject(name).Name
            };

            return(ret.EvaluateTo(to_type, acpi.mi, s, acpi.n));
        }
Exemplo n.º 2
0
 public Aml.ACPIObject EvaluateObject(string name, Aml.ACPIObject.DataType to_type)
 {
     return(EvaluateObject(name, new Aml.ACPIObject[] { }, to_type));
 }