screencapturekit/utils/mod.rs
1//! Shared utilities.
2//!
3//! The framework-agnostic helpers (`FourCharCode`, `ffi_string_*`, panic-safe
4//! wrappers) now live in `apple_cf::utils` and are re-exported here for
5//! backward compatibility.
6//!
7//! `completion.rs` is intentionally NOT re-exported from `apple_cf`: it is an
8//! API-compatible local replacement whose `SyncCompletion::wait` is bounded, so
9//! a `ScreenCaptureKit` callback that never fires can't hang the caller. See
10//! the module docs for the timeout policy.
11//!
12//! `error.rs` is intentionally NOT migrated — it carries SCStream-specific
13//! error variants that don't belong in the framework-agnostic foundation.
14
15pub mod completion;
16pub mod error;
17pub(crate) mod retained;
18
19pub use apple_cf::utils::FourCharCode;
20pub use apple_cf::utils::{ffi_string, four_char_code, panic_safe};