1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
use crate::*;
use libc::c_int;
pub enum nw_path {}
pub type nw_path_t = *mut nw_path;
pub type nw_path_status_t = c_int;
pub const nw_path_status_invalid: nw_path_status_t = 0;
pub const nw_path_status_satisfied: nw_path_status_t = 1;
pub const nw_path_status_unsatisfied: nw_path_status_t = 2;
pub const nw_path_status_satisfiable: nw_path_status_t = 3;
extern "C" {
pub fn nw_path_get_status(path: nw_path_t) -> nw_path_status_t;
pub fn nw_path_is_equal(path: nw_path_t, other_path: nw_path_t) -> bool;
pub fn nw_path_is_expensive(path: nw_path_t) -> bool;
pub fn nw_path_has_ipv4(path: nw_path_t) -> bool;
pub fn nw_path_has_ipv6(path: nw_path_t) -> bool;
pub fn nw_path_has_dns(path: nw_path_t) -> bool;
pub fn nw_path_uses_interface_type(path: nw_path_t,
interface_type: nw_interface_type_t) -> bool;
pub fn nw_path_copy_effective_local_endpoint(path: nw_path_t) -> nw_endpoint_t;
pub fn nw_path_copy_effective_remote_endpoint(path: nw_path_t) -> nw_endpoint_t;
}