mirror of
https://github.com/jkcoxson/idevice.git
synced 2026-03-02 14:36:16 +01:00
Idevice::from_fd only on unix
This commit is contained in:
@@ -13,6 +13,7 @@ Result<Idevice, FfiError> Idevice::create(IdeviceSocketHandle* socket, const std
|
||||
return Ok(Idevice(h));
|
||||
}
|
||||
|
||||
#if defined(__unix__) || defined(__APPLE__)
|
||||
Result<Idevice, FfiError> Idevice::from_fd(int fd, const std::string& label) {
|
||||
IdeviceHandle* h = nullptr;
|
||||
FfiError e(idevice_from_fd(fd, label.c_str(), &h));
|
||||
@@ -21,6 +22,7 @@ Result<Idevice, FfiError> Idevice::from_fd(int fd, const std::string& label) {
|
||||
}
|
||||
return Ok(Idevice(h));
|
||||
}
|
||||
#endif
|
||||
|
||||
Result<Idevice, FfiError>
|
||||
Idevice::create_tcp(const sockaddr* addr, socklen_t addr_len, const std::string& label) {
|
||||
|
||||
Reference in New Issue
Block a user