diff options
author | Andrew Duggan <aduggan@synaptics.com> | 2015-10-16 17:03:08 -0700 |
---|---|---|
committer | Andrew Duggan <aduggan@synaptics.com> | 2015-10-16 17:38:04 -0700 |
commit | b842a54eca6ba12974adc77ef7a5d05df9de8b89 (patch) | |
tree | 44691817fbd2803efc24deb691ef18cd7dfd46db /rmidevice/hiddevice.h | |
parent | 8336b9c19bbf2adad93a4e193cd9258cf3fc7d0d (diff) | |
download | rmi4utils-b842a54eca6ba12974adc77ef7a5d05df9de8b89.tar.gz |
Use inotify to avoid races when rebinding the driver
Diffstat (limited to 'rmidevice/hiddevice.h')
-rw-r--r-- | rmidevice/hiddevice.h | 2 |
1 files changed, 1 insertions, 1 deletions
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_ */ |