1/* LOC_API TOOL VERSION: 3.28 */
2/*=============================================================================
3                             L O C _ A P I . X D R
4
5GENERAL DESCRIPTION
6  This is an AUTO GENERATED file that provides an xdr compatible definition of
7  the loc_api API.
8
9  ---------------------------------------------------------------------------
10Copyright (c) 2009, QUALCOMM USA, INC.
11
12All rights reserved.
13
14Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
15
16�         Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
17
18�         Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
19
20�         Neither the name of the QUALCOMM USA, INC.  nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
21
22THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
23  ---------------------------------------------------------------------------
24=============================================================================*/
25
26/*=============================================================================
27
28                              Edit History
29
30                             AUTO GENERATED
31
32Generated by following versions of Htorpc modules:
33Id: //source/qcom/qct/core/mproc/tools/rel/03.01/htorpc/htorpc.pl#9
34Id: //source/qcom/qct/core/mproc/tools/rel/03.01/htorpc/lib/Htorpc/Start.pm#4
35Id: //source/qcom/qct/core/mproc/tools/rel/03.01/htorpc/lib/Htorpc/Htoxdr.pm#1
36Id: //source/qcom/qct/core/mproc/tools/rel/03.01/htorpc/lib/Htorpc/XDR.pm#7
37Id: //source/qcom/qct/core/mproc/tools/rel/03.01/htorpc/lib/Htorpc/Output.pm#26
38Id: //source/qcom/qct/core/mproc/tools/rel/03.01/htorpc/lib/Htorpc/Parser.pm#3
39Id: //source/qcom/qct/core/mproc/tools/rel/03.01/htorpc/lib/Htorpc/Metacomments.pm#2
40Id: //source/qcom/qct/core/mproc/tools/rel/03.01/htorpc/lib/Htorpc/SymbolTable.pm#4
41
42=============================================================================*/
43/*=============================================================================
44$Header$
45=============================================================================*/
46
47
48
49typedef rpc_uint32 rpc_loc_api_api_versions_return_type<>;
50
51/*
52 * Declare an rpc_uint32 type for each callback type in the API
53 */
54typedef rpc_uint32 rpc_loc_event_cb_f_type;
55
56
57
58/*
59 * These are struct declarations for the function arguments
60 */
61
62struct rpc_loc_open_args {
63  rpc_loc_event_mask_type event_reg_mask;
64  rpc_loc_event_cb_f_type event_callback;
65};
66
67struct rpc_loc_close_args {
68  rpc_loc_client_handle_type handle;
69};
70
71struct rpc_loc_start_fix_args {
72  rpc_loc_client_handle_type handle;
73};
74
75struct rpc_loc_stop_fix_args {
76  rpc_loc_client_handle_type handle;
77};
78
79struct rpc_loc_ioctl_args {
80  rpc_loc_client_handle_type handle;
81  rpc_loc_ioctl_e_type ioctl_type;
82  rpc_loc_ioctl_data_u_type *ioctl_data;
83};
84
85
86
87struct rpc_loc_api_api_version_s_args {
88  rpc_boolean len_not_null;
89};
90
91/*
92 * These are struct declarations for the function results
93 */
94
95struct rpc_loc_api_rpc_glue_code_info_remote_rets {
96  rpc_uint32 toolvers;   /* Tool version */
97  rpc_uint32 features;   /* Features turned on in the code.
98                          * 0x00000001    ONCRPC Server Cleanup Support
99                          */
100  rpc_uint32 proghash;   /* Unique hash value for the API XDR definition */
101  rpc_uint32 cbproghash; /* Unique hash value for the Callbacks' XDR definition */
102};
103
104struct rpc_loc_open_rets {
105  rpc_loc_client_handle_type loc_open_result;
106};
107
108struct rpc_loc_close_rets {
109  rpc_int32 loc_close_result;
110};
111
112struct rpc_loc_start_fix_rets {
113  rpc_int32 loc_start_fix_result;
114};
115
116struct rpc_loc_stop_fix_rets {
117  rpc_int32 loc_stop_fix_result;
118};
119
120struct rpc_loc_ioctl_rets {
121  rpc_int32 loc_ioctl_result;
122};
123
124 struct rpc_loc_api_api_versions_rets {
125  rpc_loc_api_api_versions_return_type loc_api_api_versions_result;
126  rpc_uint32 *len;
127};
128
129/*
130 * XDR definition of the LOC_API program ( vers. 0x00010001 )
131 */
132
133program LOC_APIPROG {
134  version LOC_APIVERS_0001 {
135
136    void
137      rpc_loc_api_null( void ) = 0;
138
139    rpc_loc_api_rpc_glue_code_info_remote_rets
140      rpc_loc_api_rpc_glue_code_info_remote( void ) = 1;
141
142    rpc_loc_open_rets
143      rpc_loc_open( rpc_loc_open_args ) = 2;
144
145    rpc_loc_close_rets
146      rpc_loc_close( rpc_loc_close_args ) = 3;
147
148    rpc_loc_start_fix_rets
149      rpc_loc_start_fix( rpc_loc_start_fix_args ) = 4;
150
151    rpc_loc_stop_fix_rets
152      rpc_loc_stop_fix( rpc_loc_stop_fix_args ) = 5;
153
154    rpc_loc_ioctl_rets
155      rpc_loc_ioctl( rpc_loc_ioctl_args ) = 6;
156
157      rpc_loc_api_api_versions_rets
158      rpc_loc_api_api_versions( void ) = 0xFFFFFFFF;
159
160
161  } = 0x00010001;
162} = 0x3000008c;
163
164const LOC_APIVERS = 0x00010001;
165