libdvb_rs/net/sys.rs
1pub use feed_type::*;
2
3mod feed_type {
4 /// Multi Protocol Encapsulation (MPE) encoding
5 pub const DVB_NET_FEEDTYPE_MPE: u8 = 0;
6 /// Ultra Lightweight Encapsulation (ULE) encoding
7 pub const DVB_NET_FEEDTYPE_ULE: u8 = 1;
8}
9
10/// Describes a DVB network interface
11/// Configures adapter to decapsulate IP packets from MPEG-TS stream
12#[repr(C)]
13#[derive(Debug)]
14pub struct DvbNetIf {
15 /// Packet ID (PID) of the MPEG-TS that contains data
16 pub pid: u16,
17 /// Number of the Digital TV interface
18 pub if_num: u16,
19 /// Encapsulation type of the feed
20 pub feedtype: u8,
21}