/// <summary> /// Creates a Video4Linux device. /// </summary> /// <param name="path">Path to the device.</param> public Adapter(string path) { deviceHandle = Syscall.open(path, OpenFlags.O_RDWR); if(deviceHandle < 0) throw new Exception("Adapter " + path + " cannot be opened."); ioControl = new Core.IOControl(deviceHandle); }
/// <summary> /// Creates a Video4Linux device. /// </summary> /// <param name="path">Path to the device.</param> public Adapter(string path) { deviceHandle = Syscall.open(path, OpenFlags.O_RDWR); if (deviceHandle < 0) { throw new Exception("Adapter " + path + " cannot be opened."); } ioControl = new Core.IOControl(deviceHandle); }
/// <summary> /// Creates a Video4Linux device. /// </summary> /// <param name="path">Path to the device.</param> public Adapter(string path) { deviceHandle = Syscall.open(path, OpenFlags.O_RDWR); ioControl = new Core.IOControl(deviceHandle); }