Skip to main content

dvb_ci_runtime/
lib.rs

1#![doc = include_str!("../README.md")]
2// The portable core is unsafe-free; only the optional Linux device leaf
3// (`#[allow(unsafe_code)]` in `linux`) uses ioctls, so this is `deny`, not
4// `forbid`.
5#![deny(unsafe_code)]
6#![warn(missing_docs)]
7#![cfg_attr(docsrs, feature(doc_cfg))]
8
9pub mod dataplane;
10pub mod descrambler;
11pub mod device;
12pub mod driver;
13pub mod event;
14pub mod managed;
15pub mod resource;
16pub mod session;
17pub mod stack;
18pub mod trace;
19pub mod transport;
20
21#[cfg(all(feature = "linux", target_os = "linux"))]
22pub mod linux;
23
24pub use dataplane::{
25    CiDataDevice, MockCiDataDevice, PartialWrite, TS_PACKET_LEN, partial_write_progress,
26};
27pub use descrambler::CaDescrambler;
28pub use device::{
29    CaDevice, DeviceOp, DeviceOpError, LinkEvent, MockCaDevice, RecordingCaDevice, SlotInfo,
30};
31pub use driver::Driver;
32pub use event::{Action, Event, HostRequest, HotPlug, Notification};
33#[cfg(all(feature = "linux", target_os = "linux"))]
34pub use linux::{LinuxCaDevice, LinuxCiDataDevice};
35pub use managed::{CaError, ManagedCa, ManagedService, REQUERY_DEFAULT};
36pub use stack::CiStack;
37
38/// Re-export of the wire-codec crate this runtime drives.
39pub use dvb_ci;