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

@@ -32,6 +32,15 @@ int DeviceOpen(const char* device_path)
#endif
}
void DeviceClose(int device_fd)
{
#if defined(__linux__) && !defined(__ANDROID__)
return LinuxCloseDevice(device_fd);
#else
return -1;
#endif
}
int32_t GetDeviceType(const char* device_path)
{
#if defined(__linux__) && !defined(__ANDROID__)