xorp

static_routes_xif.hh

00001 /*
00002  * obj/i386-pc-mingw32/xrl/interfaces/static_routes_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_STATIC_ROUTES_XIF_HH__
00015 #define __XRL_INTERFACES_STATIC_ROUTES_XIF_HH__
00016 
00017 #undef XORP_LIBRARY_NAME
00018 #define XORP_LIBRARY_NAME "XifStaticRoutes"
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 XrlStaticRoutesV0p1Client {
00030 public:
00031     XrlStaticRoutesV0p1Client(XrlSender* s) : _sender(s) {}
00032     virtual ~XrlStaticRoutesV0p1Client() {}
00033 
00034     typedef XorpCallback1<void, const XrlError&>::RefPtr EnableStaticRoutesCB;
00044     bool send_enable_static_routes(
00045     const char* dst_xrl_target_name,
00046     const bool& enable,
00047     const EnableStaticRoutesCB& cb
00048     );
00049 
00050     typedef XorpCallback1<void, const XrlError&>::RefPtr StartStaticRoutesCB;
00051 
00052     bool send_start_static_routes(
00053     const char* dst_xrl_target_name,
00054     const StartStaticRoutesCB&  cb
00055     );
00056 
00057     typedef XorpCallback1<void, const XrlError&>::RefPtr StopStaticRoutesCB;
00058 
00059     bool send_stop_static_routes(
00060     const char* dst_xrl_target_name,
00061     const StopStaticRoutesCB&   cb
00062     );
00063 
00064     typedef XorpCallback1<void, const XrlError&>::RefPtr AddRoute4CB;
00085     bool send_add_route4(
00086     const char* dst_xrl_target_name,
00087     const bool& unicast,
00088     const bool& multicast,
00089     const IPv4Net&  network,
00090     const IPv4& nexthop,
00091     const uint32_t& metric,
00092     const AddRoute4CB&  cb
00093     );
00094 
00095     typedef XorpCallback1<void, const XrlError&>::RefPtr AddRoute6CB;
00096 
00097     bool send_add_route6(
00098     const char* dst_xrl_target_name,
00099     const bool& unicast,
00100     const bool& multicast,
00101     const IPv6Net&  network,
00102     const IPv6& nexthop,
00103     const uint32_t& metric,
00104     const AddRoute6CB&  cb
00105     );
00106 
00107     typedef XorpCallback1<void, const XrlError&>::RefPtr ReplaceRoute4CB;
00108 
00109     bool send_replace_route4(
00110     const char* dst_xrl_target_name,
00111     const bool& unicast,
00112     const bool& multicast,
00113     const IPv4Net&  network,
00114     const IPv4& nexthop,
00115     const uint32_t& metric,
00116     const ReplaceRoute4CB&  cb
00117     );
00118 
00119     typedef XorpCallback1<void, const XrlError&>::RefPtr ReplaceRoute6CB;
00120 
00121     bool send_replace_route6(
00122     const char* dst_xrl_target_name,
00123     const bool& unicast,
00124     const bool& multicast,
00125     const IPv6Net&  network,
00126     const IPv6& nexthop,
00127     const uint32_t& metric,
00128     const ReplaceRoute6CB&  cb
00129     );
00130 
00131     typedef XorpCallback1<void, const XrlError&>::RefPtr DeleteRoute4CB;
00132 
00133     bool send_delete_route4(
00134     const char* dst_xrl_target_name,
00135     const bool& unicast,
00136     const bool& multicast,
00137     const IPv4Net&  network,
00138     const IPv4& nexthop,
00139     const DeleteRoute4CB&   cb
00140     );
00141 
00142     typedef XorpCallback1<void, const XrlError&>::RefPtr DeleteRoute6CB;
00143 
00144     bool send_delete_route6(
00145     const char* dst_xrl_target_name,
00146     const bool& unicast,
00147     const bool& multicast,
00148     const IPv6Net&  network,
00149     const IPv6& nexthop,
00150     const DeleteRoute6CB&   cb
00151     );
00152 
00153     typedef XorpCallback1<void, const XrlError&>::RefPtr AddBackupRoute4CB;
00174     bool send_add_backup_route4(
00175     const char* dst_xrl_target_name,
00176     const bool& unicast,
00177     const bool& multicast,
00178     const IPv4Net&  network,
00179     const IPv4& nexthop,
00180     const uint32_t& metric,
00181     const AddBackupRoute4CB&    cb
00182     );
00183 
00184     typedef XorpCallback1<void, const XrlError&>::RefPtr AddBackupRoute6CB;
00185 
00186     bool send_add_backup_route6(
00187     const char* dst_xrl_target_name,
00188     const bool& unicast,
00189     const bool& multicast,
00190     const IPv6Net&  network,
00191     const IPv6& nexthop,
00192     const uint32_t& metric,
00193     const AddBackupRoute6CB&    cb
00194     );
00195 
00196     typedef XorpCallback1<void, const XrlError&>::RefPtr ReplaceBackupRoute4CB;
00197 
00198     bool send_replace_backup_route4(
00199     const char* dst_xrl_target_name,
00200     const bool& unicast,
00201     const bool& multicast,
00202     const IPv4Net&  network,
00203     const IPv4& nexthop,
00204     const uint32_t& metric,
00205     const ReplaceBackupRoute4CB&    cb
00206     );
00207 
00208     typedef XorpCallback1<void, const XrlError&>::RefPtr ReplaceBackupRoute6CB;
00209 
00210     bool send_replace_backup_route6(
00211     const char* dst_xrl_target_name,
00212     const bool& unicast,
00213     const bool& multicast,
00214     const IPv6Net&  network,
00215     const IPv6& nexthop,
00216     const uint32_t& metric,
00217     const ReplaceBackupRoute6CB&    cb
00218     );
00219 
00220     typedef XorpCallback1<void, const XrlError&>::RefPtr DeleteBackupRoute4CB;
00221 
00222     bool send_delete_backup_route4(
00223     const char* dst_xrl_target_name,
00224     const bool& unicast,
00225     const bool& multicast,
00226     const IPv4Net&  network,
00227     const IPv4& nexthop,
00228     const DeleteBackupRoute4CB& cb
00229     );
00230 
00231     typedef XorpCallback1<void, const XrlError&>::RefPtr DeleteBackupRoute6CB;
00232 
00233     bool send_delete_backup_route6(
00234     const char* dst_xrl_target_name,
00235     const bool& unicast,
00236     const bool& multicast,
00237     const IPv6Net&  network,
00238     const IPv6& nexthop,
00239     const DeleteBackupRoute6CB& cb
00240     );
00241 
00242     typedef XorpCallback1<void, const XrlError&>::RefPtr AddInterfaceRoute4CB;
00270     bool send_add_interface_route4(
00271     const char* dst_xrl_target_name,
00272     const bool& unicast,
00273     const bool& multicast,
00274     const IPv4Net&  network,
00275     const IPv4& nexthop,
00276     const string&   ifname,
00277     const string&   vifname,
00278     const uint32_t& metric,
00279     const AddInterfaceRoute4CB& cb
00280     );
00281 
00282     typedef XorpCallback1<void, const XrlError&>::RefPtr AddInterfaceRoute6CB;
00283 
00284     bool send_add_interface_route6(
00285     const char* dst_xrl_target_name,
00286     const bool& unicast,
00287     const bool& multicast,
00288     const IPv6Net&  network,
00289     const IPv6& nexthop,
00290     const string&   ifname,
00291     const string&   vifname,
00292     const uint32_t& metric,
00293     const AddInterfaceRoute6CB& cb
00294     );
00295 
00296     typedef XorpCallback1<void, const XrlError&>::RefPtr ReplaceInterfaceRoute4CB;
00297 
00298     bool send_replace_interface_route4(
00299     const char* dst_xrl_target_name,
00300     const bool& unicast,
00301     const bool& multicast,
00302     const IPv4Net&  network,
00303     const IPv4& nexthop,
00304     const string&   ifname,
00305     const string&   vifname,
00306     const uint32_t& metric,
00307     const ReplaceInterfaceRoute4CB& cb
00308     );
00309 
00310     typedef XorpCallback1<void, const XrlError&>::RefPtr ReplaceInterfaceRoute6CB;
00311 
00312     bool send_replace_interface_route6(
00313     const char* dst_xrl_target_name,
00314     const bool& unicast,
00315     const bool& multicast,
00316     const IPv6Net&  network,
00317     const IPv6& nexthop,
00318     const string&   ifname,
00319     const string&   vifname,
00320     const uint32_t& metric,
00321     const ReplaceInterfaceRoute6CB& cb
00322     );
00323 
00324     typedef XorpCallback1<void, const XrlError&>::RefPtr DeleteInterfaceRoute4CB;
00325 
00326     bool send_delete_interface_route4(
00327     const char* dst_xrl_target_name,
00328     const bool& unicast,
00329     const bool& multicast,
00330     const IPv4Net&  network,
00331     const IPv4& nexthop,
00332     const string&   ifname,
00333     const string&   vifname,
00334     const DeleteInterfaceRoute4CB&  cb
00335     );
00336 
00337     typedef XorpCallback1<void, const XrlError&>::RefPtr DeleteInterfaceRoute6CB;
00338 
00339     bool send_delete_interface_route6(
00340     const char* dst_xrl_target_name,
00341     const bool& unicast,
00342     const bool& multicast,
00343     const IPv6Net&  network,
00344     const IPv6& nexthop,
00345     const string&   ifname,
00346     const string&   vifname,
00347     const DeleteInterfaceRoute6CB&  cb
00348     );
00349 
00350     typedef XorpCallback1<void, const XrlError&>::RefPtr AddBackupInterfaceRoute4CB;
00378     bool send_add_backup_interface_route4(
00379     const char* dst_xrl_target_name,
00380     const bool& unicast,
00381     const bool& multicast,
00382     const IPv4Net&  network,
00383     const IPv4& nexthop,
00384     const string&   ifname,
00385     const string&   vifname,
00386     const uint32_t& metric,
00387     const AddBackupInterfaceRoute4CB&   cb
00388     );
00389 
00390     typedef XorpCallback1<void, const XrlError&>::RefPtr AddBackupInterfaceRoute6CB;
00391 
00392     bool send_add_backup_interface_route6(
00393     const char* dst_xrl_target_name,
00394     const bool& unicast,
00395     const bool& multicast,
00396     const IPv6Net&  network,
00397     const IPv6& nexthop,
00398     const string&   ifname,
00399     const string&   vifname,
00400     const uint32_t& metric,
00401     const AddBackupInterfaceRoute6CB&   cb
00402     );
00403 
00404     typedef XorpCallback1<void, const XrlError&>::RefPtr ReplaceBackupInterfaceRoute4CB;
00405 
00406     bool send_replace_backup_interface_route4(
00407     const char* dst_xrl_target_name,
00408     const bool& unicast,
00409     const bool& multicast,
00410     const IPv4Net&  network,
00411     const IPv4& nexthop,
00412     const string&   ifname,
00413     const string&   vifname,
00414     const uint32_t& metric,
00415     const ReplaceBackupInterfaceRoute4CB&   cb
00416     );
00417 
00418     typedef XorpCallback1<void, const XrlError&>::RefPtr ReplaceBackupInterfaceRoute6CB;
00419 
00420     bool send_replace_backup_interface_route6(
00421     const char* dst_xrl_target_name,
00422     const bool& unicast,
00423     const bool& multicast,
00424     const IPv6Net&  network,
00425     const IPv6& nexthop,
00426     const string&   ifname,
00427     const string&   vifname,
00428     const uint32_t& metric,
00429     const ReplaceBackupInterfaceRoute6CB&   cb
00430     );
00431 
00432     typedef XorpCallback1<void, const XrlError&>::RefPtr DeleteBackupInterfaceRoute4CB;
00433 
00434     bool send_delete_backup_interface_route4(
00435     const char* dst_xrl_target_name,
00436     const bool& unicast,
00437     const bool& multicast,
00438     const IPv4Net&  network,
00439     const IPv4& nexthop,
00440     const string&   ifname,
00441     const string&   vifname,
00442     const DeleteBackupInterfaceRoute4CB&    cb
00443     );
00444 
00445     typedef XorpCallback1<void, const XrlError&>::RefPtr DeleteBackupInterfaceRoute6CB;
00446 
00447     bool send_delete_backup_interface_route6(
00448     const char* dst_xrl_target_name,
00449     const bool& unicast,
00450     const bool& multicast,
00451     const IPv6Net&  network,
00452     const IPv6& nexthop,
00453     const string&   ifname,
00454     const string&   vifname,
00455     const DeleteBackupInterfaceRoute6CB&    cb
00456     );
00457 
00458     typedef XorpCallback1<void, const XrlError&>::RefPtr EnableLogTraceAllCB;
00468     bool send_enable_log_trace_all(
00469     const char* dst_xrl_target_name,
00470     const bool& enable,
00471     const EnableLogTraceAllCB&  cb
00472     );
00473 
00474 protected:
00475     XrlSender* _sender;
00476 
00477 private:
00478     static void unmarshall_enable_static_routes(
00479     const XrlError& e,
00480     XrlArgs*    a,
00481     EnableStaticRoutesCB        cb
00482     );
00483 
00484     static void unmarshall_start_static_routes(
00485     const XrlError& e,
00486     XrlArgs*    a,
00487     StartStaticRoutesCB     cb
00488     );
00489 
00490     static void unmarshall_stop_static_routes(
00491     const XrlError& e,
00492     XrlArgs*    a,
00493     StopStaticRoutesCB      cb
00494     );
00495 
00496     static void unmarshall_add_route4(
00497     const XrlError& e,
00498     XrlArgs*    a,
00499     AddRoute4CB     cb
00500     );
00501 
00502     static void unmarshall_add_route6(
00503     const XrlError& e,
00504     XrlArgs*    a,
00505     AddRoute6CB     cb
00506     );
00507 
00508     static void unmarshall_replace_route4(
00509     const XrlError& e,
00510     XrlArgs*    a,
00511     ReplaceRoute4CB     cb
00512     );
00513 
00514     static void unmarshall_replace_route6(
00515     const XrlError& e,
00516     XrlArgs*    a,
00517     ReplaceRoute6CB     cb
00518     );
00519 
00520     static void unmarshall_delete_route4(
00521     const XrlError& e,
00522     XrlArgs*    a,
00523     DeleteRoute4CB      cb
00524     );
00525 
00526     static void unmarshall_delete_route6(
00527     const XrlError& e,
00528     XrlArgs*    a,
00529     DeleteRoute6CB      cb
00530     );
00531 
00532     static void unmarshall_add_backup_route4(
00533     const XrlError& e,
00534     XrlArgs*    a,
00535     AddBackupRoute4CB       cb
00536     );
00537 
00538     static void unmarshall_add_backup_route6(
00539     const XrlError& e,
00540     XrlArgs*    a,
00541     AddBackupRoute6CB       cb
00542     );
00543 
00544     static void unmarshall_replace_backup_route4(
00545     const XrlError& e,
00546     XrlArgs*    a,
00547     ReplaceBackupRoute4CB       cb
00548     );
00549 
00550     static void unmarshall_replace_backup_route6(
00551     const XrlError& e,
00552     XrlArgs*    a,
00553     ReplaceBackupRoute6CB       cb
00554     );
00555 
00556     static void unmarshall_delete_backup_route4(
00557     const XrlError& e,
00558     XrlArgs*    a,
00559     DeleteBackupRoute4CB        cb
00560     );
00561 
00562     static void unmarshall_delete_backup_route6(
00563     const XrlError& e,
00564     XrlArgs*    a,
00565     DeleteBackupRoute6CB        cb
00566     );
00567 
00568     static void unmarshall_add_interface_route4(
00569     const XrlError& e,
00570     XrlArgs*    a,
00571     AddInterfaceRoute4CB        cb
00572     );
00573 
00574     static void unmarshall_add_interface_route6(
00575     const XrlError& e,
00576     XrlArgs*    a,
00577     AddInterfaceRoute6CB        cb
00578     );
00579 
00580     static void unmarshall_replace_interface_route4(
00581     const XrlError& e,
00582     XrlArgs*    a,
00583     ReplaceInterfaceRoute4CB        cb
00584     );
00585 
00586     static void unmarshall_replace_interface_route6(
00587     const XrlError& e,
00588     XrlArgs*    a,
00589     ReplaceInterfaceRoute6CB        cb
00590     );
00591 
00592     static void unmarshall_delete_interface_route4(
00593     const XrlError& e,
00594     XrlArgs*    a,
00595     DeleteInterfaceRoute4CB     cb
00596     );
00597 
00598     static void unmarshall_delete_interface_route6(
00599     const XrlError& e,
00600     XrlArgs*    a,
00601     DeleteInterfaceRoute6CB     cb
00602     );
00603 
00604     static void unmarshall_add_backup_interface_route4(
00605     const XrlError& e,
00606     XrlArgs*    a,
00607     AddBackupInterfaceRoute4CB      cb
00608     );
00609 
00610     static void unmarshall_add_backup_interface_route6(
00611     const XrlError& e,
00612     XrlArgs*    a,
00613     AddBackupInterfaceRoute6CB      cb
00614     );
00615 
00616     static void unmarshall_replace_backup_interface_route4(
00617     const XrlError& e,
00618     XrlArgs*    a,
00619     ReplaceBackupInterfaceRoute4CB      cb
00620     );
00621 
00622     static void unmarshall_replace_backup_interface_route6(
00623     const XrlError& e,
00624     XrlArgs*    a,
00625     ReplaceBackupInterfaceRoute6CB      cb
00626     );
00627 
00628     static void unmarshall_delete_backup_interface_route4(
00629     const XrlError& e,
00630     XrlArgs*    a,
00631     DeleteBackupInterfaceRoute4CB       cb
00632     );
00633 
00634     static void unmarshall_delete_backup_interface_route6(
00635     const XrlError& e,
00636     XrlArgs*    a,
00637     DeleteBackupInterfaceRoute6CB       cb
00638     );
00639 
00640     static void unmarshall_enable_log_trace_all(
00641     const XrlError& e,
00642     XrlArgs*    a,
00643     EnableLogTraceAllCB     cb
00644     );
00645 
00646 private:
00647     /* Declare cached Xrl pointers */
00648     auto_ptr<Xrl> ap_xrl_enable_static_routes;
00649     auto_ptr<Xrl> ap_xrl_start_static_routes;
00650     auto_ptr<Xrl> ap_xrl_stop_static_routes;
00651     auto_ptr<Xrl> ap_xrl_add_route4;
00652     auto_ptr<Xrl> ap_xrl_add_route6;
00653     auto_ptr<Xrl> ap_xrl_replace_route4;
00654     auto_ptr<Xrl> ap_xrl_replace_route6;
00655     auto_ptr<Xrl> ap_xrl_delete_route4;
00656     auto_ptr<Xrl> ap_xrl_delete_route6;
00657     auto_ptr<Xrl> ap_xrl_add_backup_route4;
00658     auto_ptr<Xrl> ap_xrl_add_backup_route6;
00659     auto_ptr<Xrl> ap_xrl_replace_backup_route4;
00660     auto_ptr<Xrl> ap_xrl_replace_backup_route6;
00661     auto_ptr<Xrl> ap_xrl_delete_backup_route4;
00662     auto_ptr<Xrl> ap_xrl_delete_backup_route6;
00663     auto_ptr<Xrl> ap_xrl_add_interface_route4;
00664     auto_ptr<Xrl> ap_xrl_add_interface_route6;
00665     auto_ptr<Xrl> ap_xrl_replace_interface_route4;
00666     auto_ptr<Xrl> ap_xrl_replace_interface_route6;
00667     auto_ptr<Xrl> ap_xrl_delete_interface_route4;
00668     auto_ptr<Xrl> ap_xrl_delete_interface_route6;
00669     auto_ptr<Xrl> ap_xrl_add_backup_interface_route4;
00670     auto_ptr<Xrl> ap_xrl_add_backup_interface_route6;
00671     auto_ptr<Xrl> ap_xrl_replace_backup_interface_route4;
00672     auto_ptr<Xrl> ap_xrl_replace_backup_interface_route6;
00673     auto_ptr<Xrl> ap_xrl_delete_backup_interface_route4;
00674     auto_ptr<Xrl> ap_xrl_delete_backup_interface_route6;
00675     auto_ptr<Xrl> ap_xrl_enable_log_trace_all;
00676 };
00677 
00678 #endif /* __XRL_INTERFACES_STATIC_ROUTES_XIF_HH__ */
 All Classes Namespaces Functions Variables Typedefs Enumerations