moq/lib.rs
1//! C FFI bindings for MoQ (Media over QUIC).
2//!
3//! This library provides a C-compatible API for working with MoQ broadcasts,
4//! enabling real-time media delivery with low latency at scale.
5//!
6//! The API is organized around several key concepts:
7//! - **Sessions**: Network connections to MoQ servers
8//! - **Origins**: Collections of broadcasts that can be published or consumed
9//! - **Broadcasts**: Container for media tracks
10//! - **Tracks**: Individual audio or video streams
11//! - **Frames**: Individual media samples with timestamps
12//!
13//! All functions return negative error codes on failure, or non-negative values on success.
14//! Most resources are managed through opaque integer handles that must be explicitly closed.
15
16mod api;
17mod consume;
18mod error;
19mod ffi;
20mod id;
21mod origin;
22mod publish;
23mod session;
24mod state;
25
26pub use api::*;
27pub use error::*;
28pub use id::*;
29
30pub(crate) use consume::*;
31pub(crate) use origin::*;
32pub(crate) use publish::*;
33pub(crate) use session::*;
34pub(crate) use state::*;