1 // Copyright 2013-2015 The Servo Project Developers. See the COPYRIGHT
2 // file at the top-level directory of this distribution.
3 //
4 // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
5 // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
6 // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
7 // option. This file may not be copied, modified, or distributed
8 // except according to those terms.
9 
10 use std::os::raw::c_void;
11 
12 use base::{CFAllocatorRef, CFTypeID};
13 use date::{CFTimeInterval, CFAbsoluteTime};
14 
15 #[repr(C)]
16 pub struct __CFTimeZone(c_void);
17 
18 pub type CFTimeZoneRef = *const __CFTimeZone;
19 
20 extern {
CFTimeZoneCopySystem() -> CFTimeZoneRef21     pub fn CFTimeZoneCopySystem() -> CFTimeZoneRef;
CFTimeZoneCopyDefault() -> CFTimeZoneRef22     pub fn CFTimeZoneCopyDefault() -> CFTimeZoneRef;
CFTimeZoneCreateWithTimeIntervalFromGMT(allocator: CFAllocatorRef, interval: CFTimeInterval) -> CFTimeZoneRef23     pub fn CFTimeZoneCreateWithTimeIntervalFromGMT(allocator: CFAllocatorRef, interval: CFTimeInterval) -> CFTimeZoneRef;
CFTimeZoneGetSecondsFromGMT(tz: CFTimeZoneRef, time: CFAbsoluteTime) -> CFTimeInterval24     pub fn CFTimeZoneGetSecondsFromGMT(tz: CFTimeZoneRef, time: CFAbsoluteTime) -> CFTimeInterval;
25 
CFTimeZoneGetTypeID() -> CFTypeID26     pub fn CFTimeZoneGetTypeID() -> CFTypeID;
27 }
28