Home | History | Annotate | Download | only in rpc_inc
      1 /*
      2 Copyright (c) 2009, QUALCOMM USA, INC.
      3 
      4 All rights reserved.
      5 
      6 Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
      7 
      8          Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
      9 
     10          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.
     11 
     12          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.
     13 
     14 THIS 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.
     15 
     16  */
     17  /*
     18  * Please do not edit this file.
     19  * It was generated using rpcgen.
     20  */
     21 
     22 #ifndef _LOC_API_H_RPCGEN
     23 #define _LOC_API_H_RPCGEN
     24 
     25 #include <rpc/rpc.h>
     26 
     27 #include <pthread.h>
     28 
     29 #ifdef __cplusplus
     30 extern "C" {
     31 #endif
     32 
     33 
     34 typedef struct {
     35 	u_int rpc_loc_api_api_versions_return_type_len;
     36 	rpc_uint32 *rpc_loc_api_api_versions_return_type_val;
     37 } rpc_loc_api_api_versions_return_type;
     38 
     39 typedef rpc_uint32 rpc_loc_event_cb_f_type;
     40 
     41 struct rpc_loc_open_args {
     42 	rpc_loc_event_mask_type event_reg_mask;
     43 	rpc_loc_event_cb_f_type event_callback;
     44 };
     45 typedef struct rpc_loc_open_args rpc_loc_open_args;
     46 
     47 struct rpc_loc_close_args {
     48 	rpc_loc_client_handle_type handle;
     49 };
     50 typedef struct rpc_loc_close_args rpc_loc_close_args;
     51 
     52 struct rpc_loc_start_fix_args {
     53 	rpc_loc_client_handle_type handle;
     54 };
     55 typedef struct rpc_loc_start_fix_args rpc_loc_start_fix_args;
     56 
     57 struct rpc_loc_stop_fix_args {
     58 	rpc_loc_client_handle_type handle;
     59 };
     60 typedef struct rpc_loc_stop_fix_args rpc_loc_stop_fix_args;
     61 
     62 struct rpc_loc_ioctl_args {
     63 	rpc_loc_client_handle_type handle;
     64 	rpc_loc_ioctl_e_type ioctl_type;
     65 	rpc_loc_ioctl_data_u_type *ioctl_data;
     66 };
     67 typedef struct rpc_loc_ioctl_args rpc_loc_ioctl_args;
     68 
     69 struct rpc_loc_api_api_version_s_args {
     70 	rpc_boolean len_not_null;
     71 };
     72 typedef struct rpc_loc_api_api_version_s_args rpc_loc_api_api_version_s_args;
     73 
     74 struct rpc_loc_api_rpc_glue_code_info_remote_rets {
     75 	rpc_uint32 toolvers;
     76 	rpc_uint32 features;
     77 	rpc_uint32 proghash;
     78 	rpc_uint32 cbproghash;
     79 };
     80 typedef struct rpc_loc_api_rpc_glue_code_info_remote_rets rpc_loc_api_rpc_glue_code_info_remote_rets;
     81 
     82 struct rpc_loc_open_rets {
     83 	rpc_loc_client_handle_type loc_open_result;
     84 };
     85 typedef struct rpc_loc_open_rets rpc_loc_open_rets;
     86 
     87 struct rpc_loc_close_rets {
     88 	rpc_int32 loc_close_result;
     89 };
     90 typedef struct rpc_loc_close_rets rpc_loc_close_rets;
     91 
     92 struct rpc_loc_start_fix_rets {
     93 	rpc_int32 loc_start_fix_result;
     94 };
     95 typedef struct rpc_loc_start_fix_rets rpc_loc_start_fix_rets;
     96 
     97 struct rpc_loc_stop_fix_rets {
     98 	rpc_int32 loc_stop_fix_result;
     99 };
    100 typedef struct rpc_loc_stop_fix_rets rpc_loc_stop_fix_rets;
    101 
    102 struct rpc_loc_ioctl_rets {
    103 	rpc_int32 loc_ioctl_result;
    104 };
    105 typedef struct rpc_loc_ioctl_rets rpc_loc_ioctl_rets;
    106 
    107 struct rpc_loc_api_api_versions_rets {
    108 	rpc_loc_api_api_versions_return_type loc_api_api_versions_result;
    109 	rpc_uint32 *len;
    110 };
    111 typedef struct rpc_loc_api_api_versions_rets rpc_loc_api_api_versions_rets;
    112 #define LOC_APIVERS 0x00010001
    113 
    114 #define LOC_APIPROG 0x3000008c
    115 #define LOC_APIVERS_0001 0x00010001
    116 
    117 #if defined(__STDC__) || defined(__cplusplus)
    118 #define rpc_loc_api_null 0
    119 extern  enum clnt_stat rpc_loc_api_null_0x00010001(void *, void *, CLIENT *);
    120 extern  bool_t rpc_loc_api_null_0x00010001_svc(void *, void *, struct svc_req *);
    121 #define rpc_loc_api_rpc_glue_code_info_remote 1
    122 extern  enum clnt_stat rpc_loc_api_rpc_glue_code_info_remote_0x00010001(void *, rpc_loc_api_rpc_glue_code_info_remote_rets *, CLIENT *);
    123 extern  bool_t rpc_loc_api_rpc_glue_code_info_remote_0x00010001_svc(void *, rpc_loc_api_rpc_glue_code_info_remote_rets *, struct svc_req *);
    124 #define rpc_loc_open 2
    125 extern  enum clnt_stat rpc_loc_open_0x00010001(rpc_loc_open_args *, rpc_loc_open_rets *, CLIENT *);
    126 extern  bool_t rpc_loc_open_0x00010001_svc(rpc_loc_open_args *, rpc_loc_open_rets *, struct svc_req *);
    127 #define rpc_loc_close 3
    128 extern  enum clnt_stat rpc_loc_close_0x00010001(rpc_loc_close_args *, rpc_loc_close_rets *, CLIENT *);
    129 extern  bool_t rpc_loc_close_0x00010001_svc(rpc_loc_close_args *, rpc_loc_close_rets *, struct svc_req *);
    130 #define rpc_loc_start_fix 4
    131 extern  enum clnt_stat rpc_loc_start_fix_0x00010001(rpc_loc_start_fix_args *, rpc_loc_start_fix_rets *, CLIENT *);
    132 extern  bool_t rpc_loc_start_fix_0x00010001_svc(rpc_loc_start_fix_args *, rpc_loc_start_fix_rets *, struct svc_req *);
    133 #define rpc_loc_stop_fix 5
    134 extern  enum clnt_stat rpc_loc_stop_fix_0x00010001(rpc_loc_stop_fix_args *, rpc_loc_stop_fix_rets *, CLIENT *);
    135 extern  bool_t rpc_loc_stop_fix_0x00010001_svc(rpc_loc_stop_fix_args *, rpc_loc_stop_fix_rets *, struct svc_req *);
    136 #define rpc_loc_ioctl 6
    137 extern  enum clnt_stat rpc_loc_ioctl_0x00010001(rpc_loc_ioctl_args *, rpc_loc_ioctl_rets *, CLIENT *);
    138 extern  bool_t rpc_loc_ioctl_0x00010001_svc(rpc_loc_ioctl_args *, rpc_loc_ioctl_rets *, struct svc_req *);
    139 #define rpc_loc_api_api_versions 0xFFFFFFFF
    140 extern  enum clnt_stat rpc_loc_api_api_versions_0x00010001(void *, rpc_loc_api_api_versions_rets *, CLIENT *);
    141 extern  bool_t rpc_loc_api_api_versions_0x00010001_svc(void *, rpc_loc_api_api_versions_rets *, struct svc_req *);
    142 extern int loc_apiprog_0x00010001_freeresult (SVCXPRT *, xdrproc_t, caddr_t);
    143 
    144 #else /* K&R C */
    145 #define rpc_loc_api_null 0
    146 extern  enum clnt_stat rpc_loc_api_null_0x00010001();
    147 extern  bool_t rpc_loc_api_null_0x00010001_svc();
    148 #define rpc_loc_api_rpc_glue_code_info_remote 1
    149 extern  enum clnt_stat rpc_loc_api_rpc_glue_code_info_remote_0x00010001();
    150 extern  bool_t rpc_loc_api_rpc_glue_code_info_remote_0x00010001_svc();
    151 #define rpc_loc_open 2
    152 extern  enum clnt_stat rpc_loc_open_0x00010001();
    153 extern  bool_t rpc_loc_open_0x00010001_svc();
    154 #define rpc_loc_close 3
    155 extern  enum clnt_stat rpc_loc_close_0x00010001();
    156 extern  bool_t rpc_loc_close_0x00010001_svc();
    157 #define rpc_loc_start_fix 4
    158 extern  enum clnt_stat rpc_loc_start_fix_0x00010001();
    159 extern  bool_t rpc_loc_start_fix_0x00010001_svc();
    160 #define rpc_loc_stop_fix 5
    161 extern  enum clnt_stat rpc_loc_stop_fix_0x00010001();
    162 extern  bool_t rpc_loc_stop_fix_0x00010001_svc();
    163 #define rpc_loc_ioctl 6
    164 extern  enum clnt_stat rpc_loc_ioctl_0x00010001();
    165 extern  bool_t rpc_loc_ioctl_0x00010001_svc();
    166 #define rpc_loc_api_api_versions 0xFFFFFFFF
    167 extern  enum clnt_stat rpc_loc_api_api_versions_0x00010001();
    168 extern  bool_t rpc_loc_api_api_versions_0x00010001_svc();
    169 extern int loc_apiprog_0x00010001_freeresult ();
    170 #endif /* K&R C */
    171 
    172 /* the xdr functions */
    173 
    174 #if defined(__STDC__) || defined(__cplusplus)
    175 extern  bool_t xdr_rpc_loc_api_api_versions_return_type (XDR *, rpc_loc_api_api_versions_return_type*);
    176 extern  bool_t xdr_rpc_loc_event_cb_f_type (XDR *, rpc_loc_event_cb_f_type*);
    177 extern  bool_t xdr_rpc_loc_open_args (XDR *, rpc_loc_open_args*);
    178 extern  bool_t xdr_rpc_loc_close_args (XDR *, rpc_loc_close_args*);
    179 extern  bool_t xdr_rpc_loc_start_fix_args (XDR *, rpc_loc_start_fix_args*);
    180 extern  bool_t xdr_rpc_loc_stop_fix_args (XDR *, rpc_loc_stop_fix_args*);
    181 extern  bool_t xdr_rpc_loc_ioctl_args (XDR *, rpc_loc_ioctl_args*);
    182 extern  bool_t xdr_rpc_loc_api_api_version_s_args (XDR *, rpc_loc_api_api_version_s_args*);
    183 extern  bool_t xdr_rpc_loc_api_rpc_glue_code_info_remote_rets (XDR *, rpc_loc_api_rpc_glue_code_info_remote_rets*);
    184 extern  bool_t xdr_rpc_loc_open_rets (XDR *, rpc_loc_open_rets*);
    185 extern  bool_t xdr_rpc_loc_close_rets (XDR *, rpc_loc_close_rets*);
    186 extern  bool_t xdr_rpc_loc_start_fix_rets (XDR *, rpc_loc_start_fix_rets*);
    187 extern  bool_t xdr_rpc_loc_stop_fix_rets (XDR *, rpc_loc_stop_fix_rets*);
    188 extern  bool_t xdr_rpc_loc_ioctl_rets (XDR *, rpc_loc_ioctl_rets*);
    189 extern  bool_t xdr_rpc_loc_api_api_versions_rets (XDR *, rpc_loc_api_api_versions_rets*);
    190 
    191 #else /* K&R C */
    192 extern bool_t xdr_rpc_loc_api_api_versions_return_type ();
    193 extern bool_t xdr_rpc_loc_event_cb_f_type ();
    194 extern bool_t xdr_rpc_loc_open_args ();
    195 extern bool_t xdr_rpc_loc_close_args ();
    196 extern bool_t xdr_rpc_loc_start_fix_args ();
    197 extern bool_t xdr_rpc_loc_stop_fix_args ();
    198 extern bool_t xdr_rpc_loc_ioctl_args ();
    199 extern bool_t xdr_rpc_loc_api_api_version_s_args ();
    200 extern bool_t xdr_rpc_loc_api_rpc_glue_code_info_remote_rets ();
    201 extern bool_t xdr_rpc_loc_open_rets ();
    202 extern bool_t xdr_rpc_loc_close_rets ();
    203 extern bool_t xdr_rpc_loc_start_fix_rets ();
    204 extern bool_t xdr_rpc_loc_stop_fix_rets ();
    205 extern bool_t xdr_rpc_loc_ioctl_rets ();
    206 extern bool_t xdr_rpc_loc_api_api_versions_rets ();
    207 
    208 #endif /* K&R C */
    209 
    210 #ifdef __cplusplus
    211 }
    212 #endif
    213 
    214 #endif /* !_LOC_API_H_RPCGEN */
    215