Add packet to close device.

This commit is contained in:
2019-10-26 15:47:49 +01:00
parent ac619c274a
commit bcae241162
5 changed files with 24 additions and 1 deletions

View File

@@ -39,6 +39,8 @@ int LinuxOpenDevice(const char* device_path)
return fd;
}
void LinuxCloseDevice(int device_fd) { close(device_fd); }
int32_t LinuxGetDeviceType(const char* device_path)
{
#ifdef HAS_UDEV