Skip to main content

apple_cf/cf/
mod.rs

1//! Safe Core Foundation wrappers.
2//!
3//! This module provides lightweight wrappers for the most
4//! common Core Foundation value, collection, locale, formatter, and runtime
5//! types used throughout the Apple media stack.
6
7mod base;
8mod collections;
9mod primitives;
10mod property_list;
11mod resources;
12mod runtime;
13mod text;
14
15pub use base::{AsCFType, CFType};
16pub use collections::{
17    CFArray, CFAttributedString, CFBag, CFDict, CFDictionary, CFMutableSet, CFSet, CFSetCallbacks,
18    CFTree,
19};
20pub use primitives::{CFData, CFDate, CFError, CFNumber, CFString, CFUUID};
21pub use property_list::{
22    CFPropertyList, CFPropertyListError, CFPropertyListFormat, CFPropertyListMutabilityOptions,
23};
24pub use resources::{
25    CFBundle, CFCalendar, CFCharacterSet, CFDateFormatter, CFDateFormatterStyle, CFFileSecurity,
26    CFLocale, CFNumberFormatter, CFNumberFormatterStyle, CFPreferences, CFTimeZone, CFURL, CFXML,
27};
28pub use runtime::{
29    CFFileDescriptor, CFMessagePort, CFNotificationCenter, CFNotificationObserver, CFReadStream,
30    CFRunLoop, CFRunLoopRunResult, CFSocket, CFStreamPair, CFTimer, CFWriteStream,
31};
32pub use text::{CFCharacterSetKind, CFStringTokenUnit, CFStringTokenizer};
33
34/// Convenience alias for the bound read/write stream pair.
35pub type CFStream = CFStreamPair;