gateway_prot_clnt.c

Go to the documentation of this file.
00001 /*
00002  *    Copyright 2006 Intel Corporation
00003  * 
00004  *    Licensed under the Apache License, Version 2.0 (the "License");
00005  *    you may not use this file except in compliance with the License.
00006  *    You may obtain a copy of the License at
00007  * 
00008  *        http://www.apache.org/licenses/LICENSE-2.0
00009  * 
00010  *    Unless required by applicable law or agreed to in writing, software
00011  *    distributed under the License is distributed on an "AS IS" BASIS,
00012  *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00013  *    See the License for the specific language governing permissions and
00014  *    limitations under the License.
00015  */
00016 
00017 /*
00018  * Please do not edit this file.
00019  * It was generated using rpcgen.
00020  */
00021 
00022 #include <memory.h> /* for memset */
00023 #include "gateway_prot.h"
00024 
00025 /* Default timeout can be changed using clnt_control() */
00026 static struct timeval TIMEOUT = { 25, 0 };
00027 
00028 void *
00029 bamboo_dht_proc_null_2(void *argp, CLIENT *clnt)
00030 {
00031         static char clnt_res;
00032 
00033         memset((char *)&clnt_res, 0, sizeof(clnt_res));
00034         if (clnt_call (clnt, BAMBOO_DHT_PROC_NULL,
00035                 (xdrproc_t) xdr_void, (caddr_t) argp,
00036                 (xdrproc_t) xdr_void, (caddr_t) &clnt_res,
00037                 TIMEOUT) != RPC_SUCCESS) {
00038                 return (NULL);
00039         }
00040         return ((void *)&clnt_res);
00041 }
00042 
00043 bamboo_stat *
00044 bamboo_dht_proc_put_2(bamboo_put_args *argp, CLIENT *clnt)
00045 {
00046         static bamboo_stat clnt_res;
00047 
00048         memset((char *)&clnt_res, 0, sizeof(clnt_res));
00049         if (clnt_call (clnt, BAMBOO_DHT_PROC_PUT,
00050                 (xdrproc_t) xdr_bamboo_put_args, (caddr_t) argp,
00051                 (xdrproc_t) xdr_bamboo_stat, (caddr_t) &clnt_res,
00052                 TIMEOUT) != RPC_SUCCESS) {
00053                 return (NULL);
00054         }
00055         return (&clnt_res);
00056 }
00057 
00058 bamboo_get_res *
00059 bamboo_dht_proc_get_2(bamboo_get_args *argp, CLIENT *clnt)
00060 {
00061         static bamboo_get_res clnt_res;
00062 
00063         memset((char *)&clnt_res, 0, sizeof(clnt_res));
00064         if (clnt_call (clnt, BAMBOO_DHT_PROC_GET,
00065                 (xdrproc_t) xdr_bamboo_get_args, (caddr_t) argp,
00066                 (xdrproc_t) xdr_bamboo_get_res, (caddr_t) &clnt_res,
00067                 TIMEOUT) != RPC_SUCCESS) {
00068                 return (NULL);
00069         }
00070         return (&clnt_res);
00071 }

Generated on Thu Jun 7 16:56:50 2007 for DTN Reference Implementation by  doxygen 1.5.1