Mercurial > projects > dstep
comparison dstep/coreservices/carboncore/DriverServices.d @ 11:07194b026fa4
Added bindings to a couple of frameworks, new license + some other things
author | Jacob Carlborg <doob@me.com> |
---|---|
date | Sat, 01 Aug 2009 15:03:28 +0200 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
10:27e00625790b | 11:07194b026fa4 |
---|---|
1 /** | |
2 * Copyright: Copyright (c) 2009 Jacob Carlborg. | |
3 * Authors: Jacob Carlborg | |
4 * Version: Initial created: Jul 21, 2009 | |
5 * License: $(LINK2 http://www.boost.org/LICENSE_1_0.txt, Boost Software License 1.0) | |
6 */ | |
7 module dstep.coreservices.carboncore.DriverServices; | |
8 | |
9 //import dstep.AvailabilityMacros; | |
10 import dstep.coreservices.carboncore.ConditionalMacros; | |
11 import dstep.coreservices.carboncore.DriverSynchronization; | |
12 import dstep.coreservices.carboncore.MacErrors; | |
13 import dstep.coreservices.carboncore.MacTypes; | |
14 import dstep.coreservices.carboncore.MachineExceptions; | |
15 | |
16 alias UnsignedWide Nanoseconds; | |
17 | |
18 enum | |
19 { | |
20 durationMicrosecond = -1L, | |
21 durationMillisecond = 1L, | |
22 durationSecond = 1000L, | |
23 durationMinute = 60000L, | |
24 durationHour = 3600000L, | |
25 durationDay = 86400000L, | |
26 durationNoWait = 0L, | |
27 durationForever = 0x7FFFFFFF | |
28 } | |
29 | |
30 extern (C) | |
31 { | |
32 AbsoluteTime UpTime (); | |
33 Nanoseconds AbsoluteToNanoseconds (AbsoluteTime absoluteTime); | |
34 int AbsoluteToDuration (AbsoluteTime absoluteTime); | |
35 AbsoluteTime NanosecondsToAbsolute (Nanoseconds nanoseconds); | |
36 AbsoluteTime DurationToAbsolute (int duration); | |
37 AbsoluteTime AddAbsoluteToAbsolute (AbsoluteTime absoluteTime1, AbsoluteTime absoluteTime2); | |
38 AbsoluteTime SubAbsoluteFromAbsolute (AbsoluteTime leftAbsoluteTime, AbsoluteTime rightAbsoluteTime); | |
39 AbsoluteTime AddNanosecondsToAbsolute (Nanoseconds nanoseconds, AbsoluteTime absoluteTime); | |
40 AbsoluteTime AddDurationToAbsolute (int duration, AbsoluteTime absoluteTime); | |
41 AbsoluteTime SubNanosecondsFromAbsolute (Nanoseconds nanoseconds, AbsoluteTime absoluteTime); | |
42 AbsoluteTime SubDurationFromAbsolute (int duration, AbsoluteTime absoluteTime); | |
43 Nanoseconds AbsoluteDeltaToNanoseconds (AbsoluteTime leftAbsoluteTime, AbsoluteTime rightAbsoluteTime); | |
44 int AbsoluteDeltaToDuration (AbsoluteTime leftAbsoluteTime, AbsoluteTime rightAbsoluteTime); | |
45 Nanoseconds DurationToNanoseconds (int theDuration); | |
46 int NanosecondsToDuration (Nanoseconds theNanoseconds); | |
47 } |