1 /* LOC_API TOOL VERSION: 4.36 */ 2 /*============================================================================= 3 L O C _ A P I . X D R 4 5 GENERAL DESCRIPTION 6 This is an AUTO GENERATED file that provides an xdr compatible definition of 7 the loc_api API. 8 9 --------------------------------------------------------------------------- 10 Copyright (c) 2010 QUALCOMM Incorporated. 11 All Rights Reserved. QUALCOMM Proprietary and Confidential. 12 --------------------------------------------------------------------------- 13 =============================================================================*/ 14 15 /*============================================================================= 16 17 Edit History 18 19 AUTO GENERATED 20 21 Generated by following versions of Htorpc modules: 22 Id: //source/qcom/qct/core/mproc/tools/rel/04.01/htorpc/htorpc.pl#20 23 Id: //source/qcom/qct/core/mproc/tools/rel/04.01/htorpc/lib/Htorpc/Start.pm#3 24 Id: //source/qcom/qct/core/mproc/tools/rel/04.01/htorpc/lib/Htorpc/Htoxdr.pm#1 25 Id: //source/qcom/qct/core/mproc/tools/rel/04.01/htorpc/lib/Htorpc/XDR.pm#7 26 Id: //source/qcom/qct/core/mproc/tools/rel/04.01/htorpc/lib/Htorpc/Output.pm#29 27 Id: //source/qcom/qct/core/mproc/tools/rel/04.01/htorpc/lib/Htorpc/Parser.pm#2 28 Id: //source/qcom/qct/core/mproc/tools/rel/04.01/htorpc/lib/Htorpc/Metacomments.pm#6 29 Id: //source/qcom/qct/core/mproc/tools/rel/04.01/htorpc/lib/Htorpc/SymbolTable.pm#3 30 31 loc_api Definition File(s): 32 Id: //source/qcom/qct/modem/api/gps/main/latest/loc_api.h#16 33 =============================================================================*/ 34 /*============================================================================= 35 $Header$ 36 =============================================================================*/ 37 38 39 40 typedef rpc_uint32 rpc_loc_api_api_versions_return_type<>; 41 42 /* 43 * Declare an rpc_uint32 type for each callback type in the API 44 */ 45 typedef rpc_uint32 rpc_loc_event_cb_f_type; 46 47 48 49 /* 50 * These are struct declarations for the function arguments 51 */ 52 53 struct rpc_loc_open_args { 54 rpc_loc_event_mask_type event_reg_mask; 55 rpc_loc_event_cb_f_type event_callback; 56 }; 57 58 struct rpc_loc_close_args { 59 rpc_loc_client_handle_type handle; 60 }; 61 62 struct rpc_loc_start_fix_args { 63 rpc_loc_client_handle_type handle; 64 }; 65 66 struct rpc_loc_stop_fix_args { 67 rpc_loc_client_handle_type handle; 68 }; 69 70 struct rpc_loc_ioctl_args { 71 rpc_loc_client_handle_type handle; 72 rpc_loc_ioctl_e_type ioctl_type; 73 rpc_loc_ioctl_data_u_type *ioctl_data; 74 }; 75 76 77 78 struct rpc_loc_api_api_version_s_args { 79 rpc_boolean len_not_null; 80 }; 81 82 /* 83 * These are struct declarations for the function results 84 */ 85 86 struct rpc_loc_api_rpc_glue_code_info_remote_rets { 87 rpc_uint32 toolvers; /* Tool version */ 88 rpc_uint32 features; /* Features turned on in the code. 89 * 0x00000001 ONCRPC Server Cleanup Support 90 */ 91 rpc_uint32 proghash; /* Unique hash value for the API XDR definition */ 92 rpc_uint32 cbproghash; /* Unique hash value for the Callbacks' XDR definition */ 93 }; 94 95 struct rpc_loc_open_rets { 96 rpc_loc_client_handle_type loc_open_result; 97 }; 98 99 struct rpc_loc_close_rets { 100 rpc_int32 loc_close_result; 101 }; 102 103 struct rpc_loc_start_fix_rets { 104 rpc_int32 loc_start_fix_result; 105 }; 106 107 struct rpc_loc_stop_fix_rets { 108 rpc_int32 loc_stop_fix_result; 109 }; 110 111 struct rpc_loc_ioctl_rets { 112 rpc_int32 loc_ioctl_result; 113 }; 114 115 struct rpc_loc_api_api_versions_rets { 116 rpc_loc_api_api_versions_return_type loc_api_api_versions_result; 117 rpc_uint32 *len; 118 }; 119 120 /* 121 * XDR definition of the LOC_API program ( vers. 0x00040002 ) 122 */ 123 124 program LOC_APIPROG { 125 version LOC_APIVERS_0001 { 126 127 void 128 rpc_loc_api_null( void ) = 0; 129 130 rpc_loc_api_rpc_glue_code_info_remote_rets 131 rpc_loc_api_rpc_glue_code_info_remote( void ) = 1; 132 133 rpc_loc_open_rets 134 rpc_loc_open( rpc_loc_open_args ) = 2; 135 136 rpc_loc_close_rets 137 rpc_loc_close( rpc_loc_close_args ) = 3; 138 139 rpc_loc_start_fix_rets 140 rpc_loc_start_fix( rpc_loc_start_fix_args ) = 4; 141 142 rpc_loc_stop_fix_rets 143 rpc_loc_stop_fix( rpc_loc_stop_fix_args ) = 5; 144 145 rpc_loc_ioctl_rets 146 rpc_loc_ioctl( rpc_loc_ioctl_args ) = 6; 147 148 rpc_loc_api_api_versions_rets 149 rpc_loc_api_api_versions( void ) = 0xFFFFFFFF; 150 151 152 153 154 } = 0x00040001; 155 156 157 158 version LOC_APIVERS_0002 { 159 160 /* Following elements added in enum rpc_loc_ni_event_e_type in 0x00040002 161 RPC_LOC_NI_EVENT_VX_SERVICE_INTERACTION_REQ 162 */ 163 164 void 165 rpc_loc_api_null( void ) = 0; 166 167 } = 0x00040002; 168 169 170 } = 0x3000008c; 171 172 const LOC_APIVERS = 0x00040002; 173