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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
#![allow(missing_docs, non_camel_case_types, non_upper_case_globals)]
extern crate libc;
extern crate core_foundation_sys;
#[link(name = "Network", kind = "framework")]
extern "C" {}
pub enum dispatch_queue { }
pub type dispatch_queue_t = *mut dispatch_queue;
pub type dispatch_block_t = extern "C" fn();
pub enum sec_protocol_options { }
pub type sec_protocol_options_t = *mut sec_protocol_options;
pub enum sec_protocol_metadata { }
pub type sec_protocol_metadata_t = *mut sec_protocol_metadata;
mod advertise_descriptor;
mod endpoint;
mod ip_options;
mod nw_object;
mod path_monitor;
mod tls_options;
mod connection;
mod error;
mod parameters;
mod protocol_options;
mod udp_options;
mod content_context;
mod interface;
mod listener;
mod path;
mod tcp_options;
pub use self::advertise_descriptor::*;
pub use self::endpoint::*;
pub use self::ip_options::*;
pub use self::nw_object::*;
pub use self::path_monitor::*;
pub use self::tls_options::*;
pub use self::connection::*;
pub use self::error::*;
pub use self::parameters::*;
pub use self::protocol_options::*;
pub use self::udp_options::*;
pub use self::content_context::*;
pub use self::interface::*;
pub use self::listener::*;
pub use self::path::*;
pub use self::tcp_options::*;
#[test]
fn test_crate_tls_options() {
unsafe {
let tls_opts = nw_tls_create_options();
assert!(!tls_opts.is_null());
}
}