moq/lib.rs
1//! C FFI bindings for [`moq_lite`].
2//!
3//! Provides a C-compatible API for real-time pub/sub over QUIC.
4//!
5//! ## Concepts
6//!
7//! - **Session**: Network connection to a MoQ relay
8//! - **Origin**: Collection of broadcasts
9//! - **Broadcast**: Container for tracks
10//! - **Track**: Named stream of groups
11//! - **Group**: Collection of frames
12//! - **Frame**: Sized payload with timestamp
13//!
14//! ## Error Handling
15//!
16//! All functions return negative error codes on failure or non-negative values on success.
17//! Resources are managed through opaque integer handles that must be explicitly closed.
18
19mod api;
20mod consume;
21mod error;
22mod ffi;
23mod id;
24mod origin;
25mod publish;
26mod session;
27mod state;
28
29pub use api::*;
30pub use error::*;
31pub use id::*;
32
33pub(crate) use consume::*;
34pub(crate) use origin::*;
35pub(crate) use publish::*;
36pub(crate) use session::*;
37pub(crate) use state::*;