gateway_prot_xdr.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 "gateway_prot.h"
00023 
00024 bool_t
00025 xdr_bamboo_stat (XDR *xdrs, bamboo_stat *objp)
00026 {
00027 // LIANG
00028 //      register int32_t *buf;
00029 
00030          if (!xdr_enum (xdrs, (enum_t *) objp))
00031                  return FALSE;
00032         return TRUE;
00033 }
00034 
00035 bool_t
00036 xdr_bamboo_key (XDR *xdrs, bamboo_key objp)
00037 {
00038 // LIANG
00039 //      register int32_t *buf;
00040 
00041          if (!xdr_opaque (xdrs, objp, 20))
00042                  return FALSE;
00043         return TRUE;
00044 }
00045 
00046 bool_t
00047 xdr_bamboo_value (XDR *xdrs, bamboo_value *objp)
00048 {
00049 // LIANG
00050 //      register int32_t *buf;
00051 
00052          if (!xdr_bytes (xdrs, (char **)&objp->bamboo_value_val, (u_int *) &objp->bamboo_value_len, 1024))
00053                  return FALSE;
00054         return TRUE;
00055 }
00056 
00057 bool_t
00058 xdr_bamboo_placemark (XDR *xdrs, bamboo_placemark *objp)
00059 {
00060 // LIANG
00061 //      register int32_t *buf;
00062 
00063          if (!xdr_bytes (xdrs, (char **)&objp->bamboo_placemark_val, (u_int *) &objp->bamboo_placemark_len, 100))
00064                  return FALSE;
00065         return TRUE;
00066 }
00067 
00068 bool_t
00069 xdr_bamboo_put_args (XDR *xdrs, bamboo_put_args *objp)
00070 {
00071 // LIANG
00072 //      register int32_t *buf;
00073 
00074          if (!xdr_string (xdrs, &objp->application, 255))
00075                  return FALSE;
00076          if (!xdr_string (xdrs, &objp->client_library, 255))
00077                  return FALSE;
00078          if (!xdr_bamboo_key (xdrs, objp->key))
00079                  return FALSE;
00080          if (!xdr_bamboo_value (xdrs, &objp->value))
00081                  return FALSE;
00082          if (!xdr_int (xdrs, &objp->ttl_sec))
00083                  return FALSE;
00084         return TRUE;
00085 }
00086 
00087 bool_t
00088 xdr_bamboo_get_args (XDR *xdrs, bamboo_get_args *objp)
00089 {
00090 // LIANG
00091 //      register int32_t *buf;
00092 
00093          if (!xdr_string (xdrs, &objp->application, 255))
00094                  return FALSE;
00095          if (!xdr_string (xdrs, &objp->client_library, 255))
00096                  return FALSE;
00097          if (!xdr_bamboo_key (xdrs, objp->key))
00098                  return FALSE;
00099          if (!xdr_int (xdrs, &objp->maxvals))
00100                  return FALSE;
00101          if (!xdr_bamboo_placemark (xdrs, &objp->placemark))
00102                  return FALSE;
00103         return TRUE;
00104 }
00105 
00106 bool_t
00107 xdr_bamboo_get_res (XDR *xdrs, bamboo_get_res *objp)
00108 {
00109 // LIANG
00110 //      register int32_t *buf;
00111 
00112          if (!xdr_array (xdrs, (char **)&objp->values.values_val, (u_int *) &objp->values.values_len, ~0,
00113                 sizeof (bamboo_value), (xdrproc_t) xdr_bamboo_value))
00114                  return FALSE;
00115          if (!xdr_bamboo_placemark (xdrs, &objp->placemark))
00116                  return FALSE;
00117         return TRUE;
00118 }

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