Skip to content

Commit

Permalink
refactor: use dnssd_sock_t on apple to simplify the code
Browse files Browse the repository at this point in the history
  • Loading branch information
ArcticLampyrid committed Jul 3, 2024
1 parent 4451359 commit 3c1f700
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions zeroconf/src/bonjour/service_ref.rs
Original file line number Diff line number Diff line change
Expand Up @@ -177,15 +177,6 @@ impl ManagedDNSServiceRef {
/// Delegate function for [`DNSServiceRefSockFD`].
///
/// [`DNSServiceRefSockFD`]: https://developer.apple.com/documentation/dnssd/1804698-dnsservicerefsockfd?language=objc
#[cfg(target_vendor = "apple")]
pub fn sock_fd(&self) -> i32 {
unsafe { DNSServiceRefSockFD(self.0) }
}

/// Delegate function for [`DNSServiceRefSockFD`].
///
/// [`DNSServiceRefSockFD`]: https://developer.apple.com/documentation/dnssd/1804698-dnsservicerefsockfd?language=objc
#[cfg(target_vendor = "pc")]
pub fn sock_fd(&self) -> dnssd_sock_t {
unsafe { DNSServiceRefSockFD(self.0) }
}
Expand Down

0 comments on commit 3c1f700

Please sign in to comment.