]>
Commit | Line | Data |
---|---|---|
1c79356b A |
1 | /* |
2 | * Copyright (c) 2000 Apple Computer, Inc. All rights reserved. | |
3 | * | |
4 | * @APPLE_LICENSE_HEADER_START@ | |
5 | * | |
6 | * The contents of this file constitute Original Code as defined in and | |
7 | * are subject to the Apple Public Source License Version 1.1 (the | |
8 | * "License"). You may not use this file except in compliance with the | |
9 | * License. Please obtain a copy of the License at | |
10 | * http://www.apple.com/publicsource and read it before using this file. | |
11 | * | |
12 | * This Original Code and all software distributed under the License are | |
13 | * distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, EITHER | |
14 | * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, | |
15 | * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, | |
16 | * FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT. Please see the | |
17 | * License for the specific language governing rights and limitations | |
18 | * under the License. | |
19 | * | |
20 | * @APPLE_LICENSE_HEADER_END@ | |
21 | */ | |
22 | /* | |
23 | * @OSF_COPYRIGHT@ | |
24 | */ | |
25 | /* | |
26 | * File: clock_types.defs | |
27 | * Purpose: | |
28 | * Clock kernel interface type declarations | |
29 | */ | |
30 | ||
31 | #ifndef _MACH_CLOCK_TYPES_DEFS_ | |
32 | #define _MACH_CLOCK_TYPES_DEFS_ | |
33 | ||
34 | #include <mach/std_types.defs> | |
35 | ||
36 | type clock_serv_t = mach_port_t | |
37 | ctype: clock_serv_t | |
38 | #if KERNEL_SERVER | |
39 | intran: clock_serv_t convert_port_to_clock(mach_port_t) | |
40 | outtran: mach_port_t convert_clock_to_port(clock_serv_t) | |
41 | #endif /* KERNEL_SERVER */ | |
42 | ; | |
43 | ||
44 | type clock_ctrl_t = mach_port_t | |
45 | ctype: clock_ctrl_t | |
46 | #if KERNEL_SERVER | |
47 | intran: clock_ctrl_t convert_port_to_clock_ctrl(mach_port_t) | |
48 | outtran: mach_port_t convert_clock_ctrl_to_port(clock_ctrl_t) | |
49 | #endif /* KERNEL_SERVER */ | |
50 | ; | |
51 | ||
52 | type clock_reply_t = polymorphic|MACH_MSG_TYPE_MAKE_SEND_ONCE; | |
53 | ||
54 | type clock_flavor_t = int; | |
55 | type clock_attr_t = array[*:1] of int; | |
56 | type mach_timespec_t = struct[2] of int; | |
57 | type time_t = int; | |
58 | type sleep_type_t = int; | |
59 | type alarm_type_t = int; | |
60 | type clock_res_t = int; | |
61 | type clock_id_t = int; | |
62 | ||
63 | import <mach/mach_types.h>; | |
64 | ||
65 | #endif /* _MACH_CLOCK_TYPES_DEFS_ */ |