xorp

fea_fib_client_xif.hh

00001 /*
00002  * obj/i686-pc-linux-gnu/xrl/interfaces/fea_fib_client_xif.hh
00003  * vim:set sts=4 ts=8 ft=cpp:
00004  *
00005  * Copyright (c) 2001-2010 XORP, Inc and Others
00006  * See the XORP LICENSE.lgpl file for licensing, conditions, and warranties
00007  * on use.
00008  *
00009  * DO NOT EDIT THIS FILE - IT IS PROGRAMMATICALLY GENERATED
00010  *
00011  * Generated by 'clnt-gen'.
00012  */
00013 
00014 #ifndef __XRL_INTERFACES_FEA_FIB_CLIENT_XIF_HH__
00015 #define __XRL_INTERFACES_FEA_FIB_CLIENT_XIF_HH__
00016 
00017 #undef XORP_LIBRARY_NAME
00018 #define XORP_LIBRARY_NAME "XifFeaFibClient"
00019 
00020 #include "libxorp/xlog.h"
00021 #include "libxorp/callback.hh"
00022 
00023 #include "libxipc/xrl.hh"
00024 #include "libxipc/xrl_error.hh"
00025 #include "libxipc/xrl_sender.hh"
00026 
00027 //#include <memory>
00028 
00029 class XrlFeaFibClientV0p1Client {
00030 public:
00031     XrlFeaFibClientV0p1Client(XrlSender* s) : _sender(s) {}
00032     virtual ~XrlFeaFibClientV0p1Client() {}
00033 
00034     typedef XorpCallback1<void, const XrlError&>::RefPtr AddRoute4CB;
00063     bool send_add_route4(
00064     const char* dst_xrl_target_name,
00065     const IPv4Net&  network,
00066     const IPv4& nexthop,
00067     const string&   ifname,
00068     const string&   vifname,
00069     const uint32_t& metric,
00070     const uint32_t& admin_distance,
00071     const string&   protocol_origin,
00072     const bool& xorp_route,
00073     const AddRoute4CB&  cb
00074     );
00075 
00076     typedef XorpCallback1<void, const XrlError&>::RefPtr ReplaceRoute4CB;
00105     bool send_replace_route4(
00106     const char* dst_xrl_target_name,
00107     const IPv4Net&  network,
00108     const IPv4& nexthop,
00109     const string&   ifname,
00110     const string&   vifname,
00111     const uint32_t& metric,
00112     const uint32_t& admin_distance,
00113     const string&   protocol_origin,
00114     const bool& xorp_route,
00115     const ReplaceRoute4CB&  cb
00116     );
00117 
00118     typedef XorpCallback1<void, const XrlError&>::RefPtr DeleteRoute4CB;
00134     bool send_delete_route4(
00135     const char* dst_xrl_target_name,
00136     const IPv4Net&  network,
00137     const string&   ifname,
00138     const string&   vifname,
00139     const DeleteRoute4CB&   cb
00140     );
00141 
00142     typedef XorpCallback1<void, const XrlError&>::RefPtr ResolveRoute4CB;
00155     bool send_resolve_route4(
00156     const char* dst_xrl_target_name,
00157     const IPv4Net&  network,
00158     const ResolveRoute4CB&  cb
00159     );
00160 
00161     typedef XorpCallback1<void, const XrlError&>::RefPtr AddRoute6CB;
00162 
00163     bool send_add_route6(
00164     const char* dst_xrl_target_name,
00165     const IPv6Net&  network,
00166     const IPv6& nexthop,
00167     const string&   ifname,
00168     const string&   vifname,
00169     const uint32_t& metric,
00170     const uint32_t& admin_distance,
00171     const string&   protocol_origin,
00172     const bool& xorp_route,
00173     const AddRoute6CB&  cb
00174     );
00175 
00176     typedef XorpCallback1<void, const XrlError&>::RefPtr ResolveRoute6CB;
00177 
00178     bool send_resolve_route6(
00179     const char* dst_xrl_target_name,
00180     const IPv6Net&  network,
00181     const ResolveRoute6CB&  cb
00182     );
00183 
00184     typedef XorpCallback1<void, const XrlError&>::RefPtr ReplaceRoute6CB;
00185 
00186     bool send_replace_route6(
00187     const char* dst_xrl_target_name,
00188     const IPv6Net&  network,
00189     const IPv6& nexthop,
00190     const string&   ifname,
00191     const string&   vifname,
00192     const uint32_t& metric,
00193     const uint32_t& admin_distance,
00194     const string&   protocol_origin,
00195     const bool& xorp_route,
00196     const ReplaceRoute6CB&  cb
00197     );
00198 
00199     typedef XorpCallback1<void, const XrlError&>::RefPtr DeleteRoute6CB;
00200 
00201     bool send_delete_route6(
00202     const char* dst_xrl_target_name,
00203     const IPv6Net&  network,
00204     const string&   ifname,
00205     const string&   vifname,
00206     const DeleteRoute6CB&   cb
00207     );
00208 
00209 protected:
00210     XrlSender* _sender;
00211 
00212 private:
00213     static void unmarshall_add_route4(
00214     const XrlError& e,
00215     XrlArgs*    a,
00216     AddRoute4CB     cb
00217     );
00218 
00219     static void unmarshall_replace_route4(
00220     const XrlError& e,
00221     XrlArgs*    a,
00222     ReplaceRoute4CB     cb
00223     );
00224 
00225     static void unmarshall_delete_route4(
00226     const XrlError& e,
00227     XrlArgs*    a,
00228     DeleteRoute4CB      cb
00229     );
00230 
00231     static void unmarshall_resolve_route4(
00232     const XrlError& e,
00233     XrlArgs*    a,
00234     ResolveRoute4CB     cb
00235     );
00236 
00237     static void unmarshall_add_route6(
00238     const XrlError& e,
00239     XrlArgs*    a,
00240     AddRoute6CB     cb
00241     );
00242 
00243     static void unmarshall_resolve_route6(
00244     const XrlError& e,
00245     XrlArgs*    a,
00246     ResolveRoute6CB     cb
00247     );
00248 
00249     static void unmarshall_replace_route6(
00250     const XrlError& e,
00251     XrlArgs*    a,
00252     ReplaceRoute6CB     cb
00253     );
00254 
00255     static void unmarshall_delete_route6(
00256     const XrlError& e,
00257     XrlArgs*    a,
00258     DeleteRoute6CB      cb
00259     );
00260 
00261 private:
00262     /* Declare cached Xrl pointers */
00263     auto_ptr<Xrl> ap_xrl_add_route4;
00264     auto_ptr<Xrl> ap_xrl_replace_route4;
00265     auto_ptr<Xrl> ap_xrl_delete_route4;
00266     auto_ptr<Xrl> ap_xrl_resolve_route4;
00267     auto_ptr<Xrl> ap_xrl_add_route6;
00268     auto_ptr<Xrl> ap_xrl_resolve_route6;
00269     auto_ptr<Xrl> ap_xrl_replace_route6;
00270     auto_ptr<Xrl> ap_xrl_delete_route6;
00271 };
00272 
00273 #endif /* __XRL_INTERFACES_FEA_FIB_CLIENT_XIF_HH__ */
 All Classes Namespaces Functions Variables Typedefs Enumerations