|
1 /* |
|
2 * Copyright 2006 Intel Corporation |
|
3 * |
|
4 * Licensed under the Apache License, Version 2.0 (the "License"); |
|
5 * you may not use this file except in compliance with the License. |
|
6 * You may obtain a copy of the License at |
|
7 * |
|
8 * http://www.apache.org/licenses/LICENSE-2.0 |
|
9 * |
|
10 * Unless required by applicable law or agreed to in writing, software |
|
11 * distributed under the License is distributed on an "AS IS" BASIS, |
|
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
13 * See the License for the specific language governing permissions and |
|
14 * limitations under the License. |
|
15 */ |
|
16 |
|
17 /* |
|
18 * Please do not edit this file. |
|
19 * It was generated using rpcgen. |
|
20 */ |
|
21 |
|
22 #ifdef HAVE_CONFIG_H |
|
23 # include <dtn-config.h> |
|
24 #endif |
|
25 |
|
26 #include <memory.h> /* for memset */ |
|
27 #include "gateway_prot.h" |
|
28 |
|
29 /* Default timeout can be changed using clnt_control() */ |
|
30 static struct timeval TIMEOUT = { 25, 0 }; |
|
31 |
|
32 void * |
|
33 bamboo_dht_proc_null_2(void *argp, CLIENT *clnt) |
|
34 { |
|
35 static char clnt_res; |
|
36 |
|
37 memset((char *)&clnt_res, 0, sizeof(clnt_res)); |
|
38 if (clnt_call (clnt, BAMBOO_DHT_PROC_NULL, |
|
39 (xdrproc_t) xdr_void, (caddr_t) argp, |
|
40 (xdrproc_t) xdr_void, (caddr_t) &clnt_res, |
|
41 TIMEOUT) != RPC_SUCCESS) { |
|
42 return (NULL); |
|
43 } |
|
44 return ((void *)&clnt_res); |
|
45 } |
|
46 |
|
47 bamboo_stat * |
|
48 bamboo_dht_proc_put_2(bamboo_put_args *argp, CLIENT *clnt) |
|
49 { |
|
50 static bamboo_stat clnt_res; |
|
51 |
|
52 memset((char *)&clnt_res, 0, sizeof(clnt_res)); |
|
53 if (clnt_call (clnt, BAMBOO_DHT_PROC_PUT, |
|
54 (xdrproc_t) xdr_bamboo_put_args, (caddr_t) argp, |
|
55 (xdrproc_t) xdr_bamboo_stat, (caddr_t) &clnt_res, |
|
56 TIMEOUT) != RPC_SUCCESS) { |
|
57 return (NULL); |
|
58 } |
|
59 return (&clnt_res); |
|
60 } |
|
61 |
|
62 bamboo_get_res * |
|
63 bamboo_dht_proc_get_2(bamboo_get_args *argp, CLIENT *clnt) |
|
64 { |
|
65 static bamboo_get_res clnt_res; |
|
66 |
|
67 memset((char *)&clnt_res, 0, sizeof(clnt_res)); |
|
68 if (clnt_call (clnt, BAMBOO_DHT_PROC_GET, |
|
69 (xdrproc_t) xdr_bamboo_get_args, (caddr_t) argp, |
|
70 (xdrproc_t) xdr_bamboo_get_res, (caddr_t) &clnt_res, |
|
71 TIMEOUT) != RPC_SUCCESS) { |
|
72 return (NULL); |
|
73 } |
|
74 return (&clnt_res); |
|
75 } |