mirror of
https://github.com/jkcoxson/idevice.git
synced 2026-03-02 06:26:15 +01:00
Idevice::from_fd only on unix
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user