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 use string::CFStringRef;
15 
16 #[repr(C)]
17 pub struct __CFTimeZone(c_void);
18 
19 pub type CFTimeZoneRef = *const __CFTimeZone;
20 
21 extern {
CFTimeZoneCopySystem() -> CFTimeZoneRef22     pub fn CFTimeZoneCopySystem() -> CFTimeZoneRef;
CFTimeZoneCopyDefault() -> CFTimeZoneRef23     pub fn CFTimeZoneCopyDefault() -> CFTimeZoneRef;
CFTimeZoneCreateWithTimeIntervalFromGMT(allocator: CFAllocatorRef, interval: CFTimeInterval) -> CFTimeZoneRef24     pub fn CFTimeZoneCreateWithTimeIntervalFromGMT(allocator: CFAllocatorRef, interval: CFTimeInterval) -> CFTimeZoneRef;
CFTimeZoneGetSecondsFromGMT(tz: CFTimeZoneRef, time: CFAbsoluteTime) -> CFTimeInterval25     pub fn CFTimeZoneGetSecondsFromGMT(tz: CFTimeZoneRef, time: CFAbsoluteTime) -> CFTimeInterval;
26 
CFTimeZoneGetTypeID() -> CFTypeID27     pub fn CFTimeZoneGetTypeID() -> CFTypeID;
CFTimeZoneGetName(tz: CFTimeZoneRef) -> CFStringRef28     pub fn CFTimeZoneGetName(tz: CFTimeZoneRef) -> CFStringRef;
29 }
30