apps/tca_admin/libs/gateway_prot.h
changeset 0 2b3e5ec03512
equal deleted inserted replaced
-1:000000000000 0:2b3e5ec03512
       
     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 #ifndef _GATEWAY_PROT_H_RPCGEN
       
    23 #define _GATEWAY_PROT_H_RPCGEN
       
    24 
       
    25 #include <rpc/rpc.h>
       
    26 
       
    27 
       
    28 #ifdef __cplusplus
       
    29 extern "C" {
       
    30 #endif
       
    31 
       
    32 
       
    33 enum bamboo_stat {
       
    34         BAMBOO_OK = 0,
       
    35         BAMBOO_CAP = 1,
       
    36         BAMBOO_AGAIN = 2,
       
    37 };
       
    38 typedef enum bamboo_stat bamboo_stat;
       
    39 
       
    40 typedef char bamboo_key[20];
       
    41 
       
    42 typedef struct {
       
    43         u_int bamboo_value_len;
       
    44         char *bamboo_value_val;
       
    45 } bamboo_value;
       
    46 
       
    47 typedef struct {
       
    48         u_int bamboo_placemark_len;
       
    49         char *bamboo_placemark_val;
       
    50 } bamboo_placemark;
       
    51 
       
    52 struct bamboo_put_args {
       
    53         char *application;
       
    54         char *client_library;
       
    55         bamboo_key key;
       
    56         bamboo_value value;
       
    57         int ttl_sec;
       
    58 };
       
    59 typedef struct bamboo_put_args bamboo_put_args;
       
    60 
       
    61 struct bamboo_get_args {
       
    62         char *application;
       
    63         char *client_library;
       
    64         bamboo_key key;
       
    65         int maxvals;
       
    66         bamboo_placemark placemark;
       
    67 };
       
    68 typedef struct bamboo_get_args bamboo_get_args;
       
    69 
       
    70 struct bamboo_get_res {
       
    71         struct {
       
    72                 u_int values_len;
       
    73                 bamboo_value *values_val;
       
    74         } values;
       
    75         bamboo_placemark placemark;
       
    76 };
       
    77 typedef struct bamboo_get_res bamboo_get_res;
       
    78 
       
    79 #define BAMBOO_DHT_GATEWAY_PROGRAM 708655600
       
    80 #define BAMBOO_DHT_GATEWAY_VERSION 2
       
    81 
       
    82 #if defined(__STDC__) || defined(__cplusplus)
       
    83 #define BAMBOO_DHT_PROC_NULL 1
       
    84 extern  void * bamboo_dht_proc_null_2(void *, CLIENT *);
       
    85 extern  void * bamboo_dht_proc_null_2_svc(void *, struct svc_req *);
       
    86 #define BAMBOO_DHT_PROC_PUT 2
       
    87 extern  bamboo_stat * bamboo_dht_proc_put_2(bamboo_put_args *, CLIENT *);
       
    88 extern  bamboo_stat * bamboo_dht_proc_put_2_svc(bamboo_put_args *, struct svc_req *);
       
    89 #define BAMBOO_DHT_PROC_GET 3
       
    90 extern  bamboo_get_res * bamboo_dht_proc_get_2(bamboo_get_args *, CLIENT *);
       
    91 extern  bamboo_get_res * bamboo_dht_proc_get_2_svc(bamboo_get_args *, struct svc_req *);
       
    92 extern int bamboo_dht_gateway_program_2_freeresult (SVCXPRT *, xdrproc_t, caddr_t);
       
    93 
       
    94 #else /* K&R C */
       
    95 #define BAMBOO_DHT_PROC_NULL 1
       
    96 extern  void * bamboo_dht_proc_null_2();
       
    97 extern  void * bamboo_dht_proc_null_2_svc();
       
    98 #define BAMBOO_DHT_PROC_PUT 2
       
    99 extern  bamboo_stat * bamboo_dht_proc_put_2();
       
   100 extern  bamboo_stat * bamboo_dht_proc_put_2_svc();
       
   101 #define BAMBOO_DHT_PROC_GET 3
       
   102 extern  bamboo_get_res * bamboo_dht_proc_get_2();
       
   103 extern  bamboo_get_res * bamboo_dht_proc_get_2_svc();
       
   104 extern int bamboo_dht_gateway_program_2_freeresult ();
       
   105 #endif /* K&R C */
       
   106 
       
   107 /* the xdr functions */
       
   108 
       
   109 #if defined(__STDC__) || defined(__cplusplus)
       
   110 extern  bool_t xdr_bamboo_stat (XDR *, bamboo_stat*);
       
   111 extern  bool_t xdr_bamboo_key (XDR *, bamboo_key);
       
   112 extern  bool_t xdr_bamboo_value (XDR *, bamboo_value*);
       
   113 extern  bool_t xdr_bamboo_placemark (XDR *, bamboo_placemark*);
       
   114 extern  bool_t xdr_bamboo_put_args (XDR *, bamboo_put_args*);
       
   115 extern  bool_t xdr_bamboo_get_args (XDR *, bamboo_get_args*);
       
   116 extern  bool_t xdr_bamboo_get_res (XDR *, bamboo_get_res*);
       
   117 
       
   118 #else /* K&R C */
       
   119 extern bool_t xdr_bamboo_stat ();
       
   120 extern bool_t xdr_bamboo_key ();
       
   121 extern bool_t xdr_bamboo_value ();
       
   122 extern bool_t xdr_bamboo_placemark ();
       
   123 extern bool_t xdr_bamboo_put_args ();
       
   124 extern bool_t xdr_bamboo_get_args ();
       
   125 extern bool_t xdr_bamboo_get_res ();
       
   126 
       
   127 #endif /* K&R C */
       
   128 
       
   129 #ifdef __cplusplus
       
   130 }
       
   131 #endif
       
   132 
       
   133 #endif /* !_GATEWAY_PROT_H_RPCGEN */