Idevice::from_fd only on unix

This commit is contained in:
Jackson Coxson
2025-10-23 09:52:51 -06:00
parent a297eed156
commit 20f00e38dd
3 changed files with 5 additions and 0 deletions

View File

@@ -32,7 +32,9 @@ using IdevicePtr = std::unique_ptr<IdeviceHandle, FnDeleter<IdeviceHandle, idevi
class Idevice {
public:
static Result<Idevice, FfiError> create(IdeviceSocketHandle* socket, const std::string& label);
#if defined(__unix__) || defined(__APPLE__)
static Result<Idevice, FfiError> from_fd(int fd, const std::string& label);
#endif
static Result<Idevice, FfiError>
create_tcp(const sockaddr* addr, socklen_t addr_len, const std::string& label);