From b842a54eca6ba12974adc77ef7a5d05df9de8b89 Mon Sep 17 00:00:00 2001 From: Andrew Duggan Date: Fri, 16 Oct 2015 17:03:08 -0700 Subject: Use inotify to avoid races when rebinding the driver --- rmidevice/hiddevice.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'rmidevice/hiddevice.h') diff --git a/rmidevice/hiddevice.h b/rmidevice/hiddevice.h index 05a11fa..42e8c28 100644 --- a/rmidevice/hiddevice.h +++ b/rmidevice/hiddevice.h @@ -81,7 +81,7 @@ private: static bool LookupHidDeviceName(int bus, int vendorId, int productId, std::string &deviceName); static bool FindTransportDevice(int bus, std::string & hidDeviceName, std::string & transportDeviceName, std::string & driverPath); - static bool FindHidRawFile(std::string & hidDeviceName, std::string & hidrawFile); + static bool WaitForHidRawDevice(int notifyFd, std::string & deviceName, std::string & hidraw); }; #endif /* _HIDDEVICE_H_ */ -- cgit v1.2.3