1
public class UpAcpiNative : Object {
2
private string? _driver;
7
get { return _driver; }
18
public UpAcpiNative (string path) {
24
r = new Regex("dev\\.([^\\.])\\.(\\d+)");
25
ret = r.match(path, 0, out mi);
27
_driver = mi.fetch(1);
28
_unit = mi.fetch(2).to_int();
33
} catch (RegexError re) {
41
public UpAcpiNative.driver_unit (string driver, int unit) {
44
_path = "dev.%s.%i".printf (_driver, _unit);