mirror of
https://github.com/aaru-dps/aaruremote.git
synced 2025-12-16 19:24:37 +00:00
Add packet to close device.
This commit is contained in:
9
device.c
9
device.c
@@ -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__)
|
||||
|
||||
Reference in New Issue
Block a user