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;
14mod url;
15
16pub use base::{AsCFType, CFType};
17pub use collections::{
18    CFArray, CFAttributedString, CFBag, CFDict, CFDictionary, CFMutableSet, CFSet, CFSetCallbacks,
19    CFTree,
20};
21pub use primitives::{CFData, CFDate, CFError, CFNumber, CFString, CFUUID};
22pub use property_list::{
23    CFPropertyList, CFPropertyListError, CFPropertyListFormat, CFPropertyListMutabilityOptions,
24};
25pub use resources::{
26    CFBundle, CFCalendar, CFCharacterSet, CFDateFormatter, CFDateFormatterStyle, CFFileSecurity,
27    CFLocale, CFNumberFormatter, CFNumberFormatterStyle, CFPreferences, CFTimeZone, CFURL, CFXML,
28};
29pub use runtime::{
30    CFFileDescriptor, CFMessagePort, CFNotificationCenter, CFNotificationObserver, CFReadStream,
31    CFRunLoop, CFRunLoopRunResult, CFSocket, CFStreamPair, CFTimer, CFWriteStream,
32};
33pub use text::{CFCharacterSetKind, CFStringTokenUnit, CFStringTokenizer};
34pub use url::CFURLComponent;
35
36/// Convenience alias for the bound read/write stream pair.
37pub type CFStream = CFStreamPair;