Libinfo-278.0.3.tar.gz
[apple/libinfo.git] / lookup.subproj / DSlibinfoMIG.defs
1 /*
2  * Copyright (c) 2006 Apple Computer, Inc. All rights reserved.
3  *
4  * @APPLE_LICENSE_HEADER_START@
5  * 
6  * This file contains Original Code and/or Modifications of Original Code
7  * as defined in and that are subject to the Apple Public Source License
8  * Version 2.0 (the 'License'). You may not use this file except in
9  * compliance with the License. Please obtain a copy of the License at
10  * http://www.opensource.apple.com/apsl/ and read it before using this
11  * file.
12  * 
13  * The Original Code and all software distributed under the License are
14  * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
15  * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
16  * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
17  * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
18  * Please see the License for the specific language governing rights and
19  * limitations under the License.
20  * 
21  * @APPLE_LICENSE_HEADER_END@
22  */
23
24 /*!
25  * @header DSLookupMIG.defs
26  */
27
28 /*
29  * Warning!
30  * Do not re-order this file as it will cause MIG API number
31  * changes.  Always add to the end of the file for new defs.
32  */
33
34 subsystem DSlibinfoMIG 50000;
35
36 userprefix libinfoDSmig_;
37 serverprefix libinfoDSmig_do_;
38
39 import <sys/types.h>;
40
41 #include <mach/std_types.defs>
42 #include <mach/mach_types.defs>
43
44 import <DSlibinfoMIG_types.h>;
45
46 type proc_name_t = c_string [* : 256];
47 type inline_data_t = array [* : 16384] of char;
48
49 routine GetProcedureNumber
50 (
51         server : mach_port_t;
52         name : proc_name_t;
53         out procno : int32_t;
54         ServerAuditToken bsmtoken : audit_token_t;
55         UserSecToken usertoken : security_token_t
56 );
57
58 routine Query
59 (
60         server : mach_port_t;
61         proc : int32_t;
62         request : inline_data_t;
63         out reply : inline_data_t;
64         out ooreply : pointer_t, Dealloc;
65         ServerAuditToken bsmtoken : audit_token_t;
66         UserSecToken usertoken : security_token_t
67 );
68
69 simpleroutine Query_async
70 (
71         server : mach_port_t;
72         replyToPort : mach_port_make_send_once_t;
73         proc : int32_t;
74         request : inline_data_t;
75         callbackAddr : mach_vm_address_t;
76         ServerAuditToken bsmtoken : audit_token_t
77 );