xorp

fti_xif.hh

00001 /*
00002  * obj/i686-pc-linux-gnu/xrl/interfaces/fti_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_FTI_XIF_HH__
00015 #define __XRL_INTERFACES_FTI_XIF_HH__
00016 
00017 #undef XORP_LIBRARY_NAME
00018 #define XORP_LIBRARY_NAME "XifFti"
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 XrlFtiV0p2Client {
00030 public:
00031     XrlFtiV0p2Client(XrlSender* s) : _sender(s) {}
00032     virtual ~XrlFtiV0p2Client() {}
00033 
00034     typedef XorpCallback8<void, const XrlError&, const IPv4Net*, const IPv4*, const string*, const string*, const uint32_t*, const uint32_t*, const string*>::RefPtr LookupRouteByDest4CB;
00044     bool send_lookup_route_by_dest4(
00045     const char* dst_xrl_target_name,
00046     const IPv4& dst,
00047     const LookupRouteByDest4CB& cb
00048     );
00049 
00050     typedef XorpCallback7<void, const XrlError&, const IPv4*, const string*, const string*, const uint32_t*, const uint32_t*, const string*>::RefPtr LookupRouteByNetwork4CB;
00060     bool send_lookup_route_by_network4(
00061     const char* dst_xrl_target_name,
00062     const IPv4Net&  dst,
00063     const LookupRouteByNetwork4CB&  cb
00064     );
00065 
00066     typedef XorpCallback2<void, const XrlError&, const bool*>::RefPtr HaveIpv4CB;
00074     bool send_have_ipv4(
00075     const char* dst_xrl_target_name,
00076     const HaveIpv4CB&   cb
00077     );
00078 
00079     typedef XorpCallback2<void, const XrlError&, const bool*>::RefPtr GetUnicastForwardingEnabled4CB;
00088     bool send_get_unicast_forwarding_enabled4(
00089     const char* dst_xrl_target_name,
00090     const GetUnicastForwardingEnabled4CB&   cb
00091     );
00092 
00093     typedef XorpCallback1<void, const XrlError&>::RefPtr SetUnicastForwardingEnabled4CB;
00105     bool send_set_unicast_forwarding_enabled4(
00106     const char* dst_xrl_target_name,
00107     const bool& enabled,
00108     const SetUnicastForwardingEnabled4CB&   cb
00109     );
00110 
00111     typedef XorpCallback1<void, const XrlError&>::RefPtr SetUnicastForwardingEntriesRetainOnStartup4CB;
00123     bool send_set_unicast_forwarding_entries_retain_on_startup4(
00124     const char* dst_xrl_target_name,
00125     const bool& retain,
00126     const SetUnicastForwardingEntriesRetainOnStartup4CB&    cb
00127     );
00128 
00129     typedef XorpCallback1<void, const XrlError&>::RefPtr SetUnicastForwardingEntriesRetainOnShutdown4CB;
00141     bool send_set_unicast_forwarding_entries_retain_on_shutdown4(
00142     const char* dst_xrl_target_name,
00143     const bool& retain,
00144     const SetUnicastForwardingEntriesRetainOnShutdown4CB&   cb
00145     );
00146 
00147     typedef XorpCallback1<void, const XrlError&>::RefPtr SetUnicastForwardingTableId4CB;
00160     bool send_set_unicast_forwarding_table_id4(
00161     const char* dst_xrl_target_name,
00162     const bool& is_configured,
00163     const uint32_t& table_id,
00164     const SetUnicastForwardingTableId4CB&   cb
00165     );
00166 
00167     typedef XorpCallback8<void, const XrlError&, const IPv6Net*, const IPv6*, const string*, const string*, const uint32_t*, const uint32_t*, const string*>::RefPtr LookupRouteByDest6CB;
00177     bool send_lookup_route_by_dest6(
00178     const char* dst_xrl_target_name,
00179     const IPv6& dst,
00180     const LookupRouteByDest6CB& cb
00181     );
00182 
00183     typedef XorpCallback7<void, const XrlError&, const IPv6*, const string*, const string*, const uint32_t*, const uint32_t*, const string*>::RefPtr LookupRouteByNetwork6CB;
00193     bool send_lookup_route_by_network6(
00194     const char* dst_xrl_target_name,
00195     const IPv6Net&  dst,
00196     const LookupRouteByNetwork6CB&  cb
00197     );
00198 
00199     typedef XorpCallback2<void, const XrlError&, const bool*>::RefPtr HaveIpv6CB;
00207     bool send_have_ipv6(
00208     const char* dst_xrl_target_name,
00209     const HaveIpv6CB&   cb
00210     );
00211 
00212     typedef XorpCallback2<void, const XrlError&, const bool*>::RefPtr GetUnicastForwardingEnabled6CB;
00221     bool send_get_unicast_forwarding_enabled6(
00222     const char* dst_xrl_target_name,
00223     const GetUnicastForwardingEnabled6CB&   cb
00224     );
00225 
00226     typedef XorpCallback1<void, const XrlError&>::RefPtr SetUnicastForwardingEnabled6CB;
00238     bool send_set_unicast_forwarding_enabled6(
00239     const char* dst_xrl_target_name,
00240     const bool& enabled,
00241     const SetUnicastForwardingEnabled6CB&   cb
00242     );
00243 
00244     typedef XorpCallback1<void, const XrlError&>::RefPtr SetUnicastForwardingEntriesRetainOnStartup6CB;
00256     bool send_set_unicast_forwarding_entries_retain_on_startup6(
00257     const char* dst_xrl_target_name,
00258     const bool& retain,
00259     const SetUnicastForwardingEntriesRetainOnStartup6CB&    cb
00260     );
00261 
00262     typedef XorpCallback1<void, const XrlError&>::RefPtr SetUnicastForwardingEntriesRetainOnShutdown6CB;
00274     bool send_set_unicast_forwarding_entries_retain_on_shutdown6(
00275     const char* dst_xrl_target_name,
00276     const bool& retain,
00277     const SetUnicastForwardingEntriesRetainOnShutdown6CB&   cb
00278     );
00279 
00280     typedef XorpCallback1<void, const XrlError&>::RefPtr SetUnicastForwardingTableId6CB;
00293     bool send_set_unicast_forwarding_table_id6(
00294     const char* dst_xrl_target_name,
00295     const bool& is_configured,
00296     const uint32_t& table_id,
00297     const SetUnicastForwardingTableId6CB&   cb
00298     );
00299 
00300 protected:
00301     XrlSender* _sender;
00302 
00303 private:
00304     static void unmarshall_lookup_route_by_dest4(
00305     const XrlError& e,
00306     XrlArgs*    a,
00307     LookupRouteByDest4CB        cb
00308     );
00309 
00310     static void unmarshall_lookup_route_by_network4(
00311     const XrlError& e,
00312     XrlArgs*    a,
00313     LookupRouteByNetwork4CB     cb
00314     );
00315 
00316     static void unmarshall_have_ipv4(
00317     const XrlError& e,
00318     XrlArgs*    a,
00319     HaveIpv4CB      cb
00320     );
00321 
00322     static void unmarshall_get_unicast_forwarding_enabled4(
00323     const XrlError& e,
00324     XrlArgs*    a,
00325     GetUnicastForwardingEnabled4CB      cb
00326     );
00327 
00328     static void unmarshall_set_unicast_forwarding_enabled4(
00329     const XrlError& e,
00330     XrlArgs*    a,
00331     SetUnicastForwardingEnabled4CB      cb
00332     );
00333 
00334     static void unmarshall_set_unicast_forwarding_entries_retain_on_startup4(
00335     const XrlError& e,
00336     XrlArgs*    a,
00337     SetUnicastForwardingEntriesRetainOnStartup4CB       cb
00338     );
00339 
00340     static void unmarshall_set_unicast_forwarding_entries_retain_on_shutdown4(
00341     const XrlError& e,
00342     XrlArgs*    a,
00343     SetUnicastForwardingEntriesRetainOnShutdown4CB      cb
00344     );
00345 
00346     static void unmarshall_set_unicast_forwarding_table_id4(
00347     const XrlError& e,
00348     XrlArgs*    a,
00349     SetUnicastForwardingTableId4CB      cb
00350     );
00351 
00352     static void unmarshall_lookup_route_by_dest6(
00353     const XrlError& e,
00354     XrlArgs*    a,
00355     LookupRouteByDest6CB        cb
00356     );
00357 
00358     static void unmarshall_lookup_route_by_network6(
00359     const XrlError& e,
00360     XrlArgs*    a,
00361     LookupRouteByNetwork6CB     cb
00362     );
00363 
00364     static void unmarshall_have_ipv6(
00365     const XrlError& e,
00366     XrlArgs*    a,
00367     HaveIpv6CB      cb
00368     );
00369 
00370     static void unmarshall_get_unicast_forwarding_enabled6(
00371     const XrlError& e,
00372     XrlArgs*    a,
00373     GetUnicastForwardingEnabled6CB      cb
00374     );
00375 
00376     static void unmarshall_set_unicast_forwarding_enabled6(
00377     const XrlError& e,
00378     XrlArgs*    a,
00379     SetUnicastForwardingEnabled6CB      cb
00380     );
00381 
00382     static void unmarshall_set_unicast_forwarding_entries_retain_on_startup6(
00383     const XrlError& e,
00384     XrlArgs*    a,
00385     SetUnicastForwardingEntriesRetainOnStartup6CB       cb
00386     );
00387 
00388     static void unmarshall_set_unicast_forwarding_entries_retain_on_shutdown6(
00389     const XrlError& e,
00390     XrlArgs*    a,
00391     SetUnicastForwardingEntriesRetainOnShutdown6CB      cb
00392     );
00393 
00394     static void unmarshall_set_unicast_forwarding_table_id6(
00395     const XrlError& e,
00396     XrlArgs*    a,
00397     SetUnicastForwardingTableId6CB      cb
00398     );
00399 
00400 private:
00401     /* Declare cached Xrl pointers */
00402     auto_ptr<Xrl> ap_xrl_lookup_route_by_dest4;
00403     auto_ptr<Xrl> ap_xrl_lookup_route_by_network4;
00404     auto_ptr<Xrl> ap_xrl_have_ipv4;
00405     auto_ptr<Xrl> ap_xrl_get_unicast_forwarding_enabled4;
00406     auto_ptr<Xrl> ap_xrl_set_unicast_forwarding_enabled4;
00407     auto_ptr<Xrl> ap_xrl_set_unicast_forwarding_entries_retain_on_startup4;
00408     auto_ptr<Xrl> ap_xrl_set_unicast_forwarding_entries_retain_on_shutdown4;
00409     auto_ptr<Xrl> ap_xrl_set_unicast_forwarding_table_id4;
00410     auto_ptr<Xrl> ap_xrl_lookup_route_by_dest6;
00411     auto_ptr<Xrl> ap_xrl_lookup_route_by_network6;
00412     auto_ptr<Xrl> ap_xrl_have_ipv6;
00413     auto_ptr<Xrl> ap_xrl_get_unicast_forwarding_enabled6;
00414     auto_ptr<Xrl> ap_xrl_set_unicast_forwarding_enabled6;
00415     auto_ptr<Xrl> ap_xrl_set_unicast_forwarding_entries_retain_on_startup6;
00416     auto_ptr<Xrl> ap_xrl_set_unicast_forwarding_entries_retain_on_shutdown6;
00417     auto_ptr<Xrl> ap_xrl_set_unicast_forwarding_table_id6;
00418 };
00419 
00420 #endif /* __XRL_INTERFACES_FTI_XIF_HH__ */
 All Classes Namespaces Functions Variables Typedefs Enumerations