1 /* Copyright (c) 2011, The Linux Foundation. All rights reserved.
2 *
3 * Redistribution and use in source and binary forms, with or without
4 * modification, are permitted provided that the following conditions are
5 * met:
6 * * Redistributions of source code must retain the above copyright
7 * notice, this list of conditions and the following disclaimer.
8 * * Redistributions in binary form must reproduce the above
9 * copyright notice, this list of conditions and the following
10 * disclaimer in the documentation and/or other materials provided
11 * with the distribution.
12 * * Neither the name of The Linux Foundation nor the names of its
13 * contributors may be used to endorse or promote products derived
14 * from this software without specific prior written permission.
15 *
16 * THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED
17 * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
18 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT
19 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
20 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
21 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
22 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
23 * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
24 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
25 * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
26 * IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 *
28 */
29 /*
30 * Please do not edit this file.
31 * It was generated using rpcgen.
32 */
33
34 #include <memory.h> /* for memset */
35 #include "loc_api_rpcgen_rpc.h"
36
37 /* Default timeout can be changed using clnt_control() */
38 static struct timeval TIMEOUT = { 25, 0 };
39
40 enum clnt_stat
rpc_loc_api_null_0x00050001(void * argp,void * clnt_res,CLIENT * clnt)41 rpc_loc_api_null_0x00050001(void *argp, void *clnt_res, CLIENT *clnt)
42 {
43 return (clnt_call(clnt, rpc_loc_api_null,
44 (xdrproc_t) xdr_void, (caddr_t) argp,
45 (xdrproc_t) xdr_void, (caddr_t) clnt_res,
46 TIMEOUT));
47 }
48
49 enum clnt_stat
rpc_loc_api_rpc_glue_code_info_remote_0x00050001(void * argp,rpc_loc_api_rpc_glue_code_info_remote_rets * clnt_res,CLIENT * clnt)50 rpc_loc_api_rpc_glue_code_info_remote_0x00050001(void *argp, rpc_loc_api_rpc_glue_code_info_remote_rets *clnt_res, CLIENT *clnt)
51 {
52 return (clnt_call(clnt, rpc_loc_api_rpc_glue_code_info_remote,
53 (xdrproc_t) xdr_void, (caddr_t) argp,
54 (xdrproc_t) xdr_rpc_loc_api_rpc_glue_code_info_remote_rets, (caddr_t) clnt_res,
55 TIMEOUT));
56 }
57
58 enum clnt_stat
rpc_loc_open_0x00050001(rpc_loc_open_args * argp,rpc_loc_open_rets * clnt_res,CLIENT * clnt)59 rpc_loc_open_0x00050001(rpc_loc_open_args *argp, rpc_loc_open_rets *clnt_res, CLIENT *clnt)
60 {
61 return (clnt_call(clnt, rpc_loc_open,
62 (xdrproc_t) xdr_rpc_loc_open_args, (caddr_t) argp,
63 (xdrproc_t) xdr_rpc_loc_open_rets, (caddr_t) clnt_res,
64 TIMEOUT));
65 }
66
67 enum clnt_stat
rpc_loc_close_0x00050001(rpc_loc_close_args * argp,rpc_loc_close_rets * clnt_res,CLIENT * clnt)68 rpc_loc_close_0x00050001(rpc_loc_close_args *argp, rpc_loc_close_rets *clnt_res, CLIENT *clnt)
69 {
70 return (clnt_call(clnt, rpc_loc_close,
71 (xdrproc_t) xdr_rpc_loc_close_args, (caddr_t) argp,
72 (xdrproc_t) xdr_rpc_loc_close_rets, (caddr_t) clnt_res,
73 TIMEOUT));
74 }
75
76 enum clnt_stat
rpc_loc_start_fix_0x00050001(rpc_loc_start_fix_args * argp,rpc_loc_start_fix_rets * clnt_res,CLIENT * clnt)77 rpc_loc_start_fix_0x00050001(rpc_loc_start_fix_args *argp, rpc_loc_start_fix_rets *clnt_res, CLIENT *clnt)
78 {
79 return (clnt_call(clnt, rpc_loc_start_fix,
80 (xdrproc_t) xdr_rpc_loc_start_fix_args, (caddr_t) argp,
81 (xdrproc_t) xdr_rpc_loc_start_fix_rets, (caddr_t) clnt_res,
82 TIMEOUT));
83 }
84
85 enum clnt_stat
rpc_loc_stop_fix_0x00050001(rpc_loc_stop_fix_args * argp,rpc_loc_stop_fix_rets * clnt_res,CLIENT * clnt)86 rpc_loc_stop_fix_0x00050001(rpc_loc_stop_fix_args *argp, rpc_loc_stop_fix_rets *clnt_res, CLIENT *clnt)
87 {
88 return (clnt_call(clnt, rpc_loc_stop_fix,
89 (xdrproc_t) xdr_rpc_loc_stop_fix_args, (caddr_t) argp,
90 (xdrproc_t) xdr_rpc_loc_stop_fix_rets, (caddr_t) clnt_res,
91 TIMEOUT));
92 }
93
94 enum clnt_stat
rpc_loc_ioctl_0x00050001(rpc_loc_ioctl_args * argp,rpc_loc_ioctl_rets * clnt_res,CLIENT * clnt)95 rpc_loc_ioctl_0x00050001(rpc_loc_ioctl_args *argp, rpc_loc_ioctl_rets *clnt_res, CLIENT *clnt)
96 {
97 return (clnt_call(clnt, rpc_loc_ioctl,
98 (xdrproc_t) xdr_rpc_loc_ioctl_args, (caddr_t) argp,
99 (xdrproc_t) xdr_rpc_loc_ioctl_rets, (caddr_t) clnt_res,
100 TIMEOUT));
101 }
102
103 enum clnt_stat
rpc_loc_api_api_versions_0x00050001(void * argp,rpc_loc_api_api_versions_rets * clnt_res,CLIENT * clnt)104 rpc_loc_api_api_versions_0x00050001(void *argp, rpc_loc_api_api_versions_rets *clnt_res, CLIENT *clnt)
105 {
106 return (clnt_call(clnt, rpc_loc_api_api_versions,
107 (xdrproc_t) xdr_void, (caddr_t) argp,
108 (xdrproc_t) xdr_rpc_loc_api_api_versions_rets, (caddr_t) clnt_res,
109 TIMEOUT));
110 }
111
112 enum clnt_stat
rpc_loc_api_null_0x00050002(void * argp,void * clnt_res,CLIENT * clnt)113 rpc_loc_api_null_0x00050002(void *argp, void *clnt_res, CLIENT *clnt)
114 {
115 return (clnt_call(clnt, rpc_loc_api_null,
116 (xdrproc_t) xdr_void, (caddr_t) argp,
117 (xdrproc_t) xdr_void, (caddr_t) clnt_res,
118 TIMEOUT));
119 }
120
121 enum clnt_stat
rpc_loc_api_null_0x00050003(void * argp,void * clnt_res,CLIENT * clnt)122 rpc_loc_api_null_0x00050003(void *argp, void *clnt_res, CLIENT *clnt)
123 {
124 return (clnt_call(clnt, rpc_loc_api_null,
125 (xdrproc_t) xdr_void, (caddr_t) argp,
126 (xdrproc_t) xdr_void, (caddr_t) clnt_res,
127 TIMEOUT));
128 }
129
130 enum clnt_stat
rpc_loc_api_null_0x00050004(void * argp,void * clnt_res,CLIENT * clnt)131 rpc_loc_api_null_0x00050004(void *argp, void *clnt_res, CLIENT *clnt)
132 {
133 return (clnt_call(clnt, rpc_loc_api_null,
134 (xdrproc_t) xdr_void, (caddr_t) argp,
135 (xdrproc_t) xdr_void, (caddr_t) clnt_res,
136 TIMEOUT));
137 }
138
139 enum clnt_stat
rpc_loc_api_null_0x00050005(void * argp,void * clnt_res,CLIENT * clnt)140 rpc_loc_api_null_0x00050005(void *argp, void *clnt_res, CLIENT *clnt)
141 {
142 return (clnt_call(clnt, rpc_loc_api_null,
143 (xdrproc_t) xdr_void, (caddr_t) argp,
144 (xdrproc_t) xdr_void, (caddr_t) clnt_res,
145 TIMEOUT));
146 }
147
148 enum clnt_stat
rpc_loc_api_null_0x00050006(void * argp,void * clnt_res,CLIENT * clnt)149 rpc_loc_api_null_0x00050006(void *argp, void *clnt_res, CLIENT *clnt)
150 {
151 return (clnt_call(clnt, rpc_loc_api_null,
152 (xdrproc_t) xdr_void, (caddr_t) argp,
153 (xdrproc_t) xdr_void, (caddr_t) clnt_res,
154 TIMEOUT));
155 }
156