xorp

mld6igmp_xif.hh

00001 /*
00002  * obj/i386-pc-mingw32/xrl/interfaces/mld6igmp_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_MLD6IGMP_XIF_HH__
00015 #define __XRL_INTERFACES_MLD6IGMP_XIF_HH__
00016 
00017 #undef XORP_LIBRARY_NAME
00018 #define XORP_LIBRARY_NAME "XifMld6igmp"
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 XrlMld6igmpV0p1Client {
00030 public:
00031     XrlMld6igmpV0p1Client(XrlSender* s) : _sender(s) {}
00032     virtual ~XrlMld6igmpV0p1Client() {}
00033 
00034     typedef XorpCallback1<void, const XrlError&>::RefPtr EnableVifCB;
00046     bool send_enable_vif(
00047     const char* dst_xrl_target_name,
00048     const string&   vif_name,
00049     const bool& enable,
00050     const EnableVifCB&  cb
00051     );
00052 
00053     typedef XorpCallback1<void, const XrlError&>::RefPtr StartVifCB;
00054 
00055     bool send_start_vif(
00056     const char* dst_xrl_target_name,
00057     const string&   vif_name,
00058     const StartVifCB&   cb
00059     );
00060 
00061     typedef XorpCallback1<void, const XrlError&>::RefPtr StopVifCB;
00062 
00063     bool send_stop_vif(
00064     const char* dst_xrl_target_name,
00065     const string&   vif_name,
00066     const StopVifCB&    cb
00067     );
00068 
00069     typedef XorpCallback1<void, const XrlError&>::RefPtr EnableAllVifsCB;
00079     bool send_enable_all_vifs(
00080     const char* dst_xrl_target_name,
00081     const bool& enable,
00082     const EnableAllVifsCB&  cb
00083     );
00084 
00085     typedef XorpCallback1<void, const XrlError&>::RefPtr StartAllVifsCB;
00086 
00087     bool send_start_all_vifs(
00088     const char* dst_xrl_target_name,
00089     const StartAllVifsCB&   cb
00090     );
00091 
00092     typedef XorpCallback1<void, const XrlError&>::RefPtr StopAllVifsCB;
00093 
00094     bool send_stop_all_vifs(
00095     const char* dst_xrl_target_name,
00096     const StopAllVifsCB&    cb
00097     );
00098 
00099     typedef XorpCallback1<void, const XrlError&>::RefPtr EnableMld6IgmpCB;
00110     bool send_enable_mld6igmp(
00111     const char* dst_xrl_target_name,
00112     const bool& enable,
00113     const EnableMld6IgmpCB& cb
00114     );
00115 
00116     typedef XorpCallback1<void, const XrlError&>::RefPtr StartMld6IgmpCB;
00117 
00118     bool send_start_mld6igmp(
00119     const char* dst_xrl_target_name,
00120     const StartMld6IgmpCB&  cb
00121     );
00122 
00123     typedef XorpCallback1<void, const XrlError&>::RefPtr StopMld6IgmpCB;
00124 
00125     bool send_stop_mld6igmp(
00126     const char* dst_xrl_target_name,
00127     const StopMld6IgmpCB&   cb
00128     );
00129 
00130     typedef XorpCallback1<void, const XrlError&>::RefPtr EnableCliCB;
00141     bool send_enable_cli(
00142     const char* dst_xrl_target_name,
00143     const bool& enable,
00144     const EnableCliCB&  cb
00145     );
00146 
00147     typedef XorpCallback1<void, const XrlError&>::RefPtr StartCliCB;
00148 
00149     bool send_start_cli(
00150     const char* dst_xrl_target_name,
00151     const StartCliCB&   cb
00152     );
00153 
00154     typedef XorpCallback1<void, const XrlError&>::RefPtr StopCliCB;
00155 
00156     bool send_stop_cli(
00157     const char* dst_xrl_target_name,
00158     const StopCliCB&    cb
00159     );
00160 
00161     typedef XorpCallback2<void, const XrlError&, const uint32_t*>::RefPtr GetVifProtoVersionCB;
00171     bool send_get_vif_proto_version(
00172     const char* dst_xrl_target_name,
00173     const string&   vif_name,
00174     const GetVifProtoVersionCB& cb
00175     );
00176 
00177     typedef XorpCallback1<void, const XrlError&>::RefPtr SetVifProtoVersionCB;
00189     bool send_set_vif_proto_version(
00190     const char* dst_xrl_target_name,
00191     const string&   vif_name,
00192     const uint32_t& proto_version,
00193     const SetVifProtoVersionCB& cb
00194     );
00195 
00196     typedef XorpCallback1<void, const XrlError&>::RefPtr ResetVifProtoVersionCB;
00206     bool send_reset_vif_proto_version(
00207     const char* dst_xrl_target_name,
00208     const string&   vif_name,
00209     const ResetVifProtoVersionCB&   cb
00210     );
00211 
00212     typedef XorpCallback2<void, const XrlError&, const bool*>::RefPtr GetVifIpRouterAlertOptionCheckCB;
00223     bool send_get_vif_ip_router_alert_option_check(
00224     const char* dst_xrl_target_name,
00225     const string&   vif_name,
00226     const GetVifIpRouterAlertOptionCheckCB& cb
00227     );
00228 
00229     typedef XorpCallback1<void, const XrlError&>::RefPtr SetVifIpRouterAlertOptionCheckCB;
00243     bool send_set_vif_ip_router_alert_option_check(
00244     const char* dst_xrl_target_name,
00245     const string&   vif_name,
00246     const bool& enable,
00247     const SetVifIpRouterAlertOptionCheckCB& cb
00248     );
00249 
00250     typedef XorpCallback1<void, const XrlError&>::RefPtr ResetVifIpRouterAlertOptionCheckCB;
00261     bool send_reset_vif_ip_router_alert_option_check(
00262     const char* dst_xrl_target_name,
00263     const string&   vif_name,
00264     const ResetVifIpRouterAlertOptionCheckCB&   cb
00265     );
00266 
00267     typedef XorpCallback3<void, const XrlError&, const uint32_t*, const uint32_t*>::RefPtr GetVifQueryIntervalCB;
00277     bool send_get_vif_query_interval(
00278     const char* dst_xrl_target_name,
00279     const string&   vif_name,
00280     const GetVifQueryIntervalCB&    cb
00281     );
00282 
00283     typedef XorpCallback1<void, const XrlError&>::RefPtr SetVifQueryIntervalCB;
00298     bool send_set_vif_query_interval(
00299     const char* dst_xrl_target_name,
00300     const string&   vif_name,
00301     const uint32_t& interval_sec,
00302     const uint32_t& interval_usec,
00303     const SetVifQueryIntervalCB&    cb
00304     );
00305 
00306     typedef XorpCallback1<void, const XrlError&>::RefPtr ResetVifQueryIntervalCB;
00316     bool send_reset_vif_query_interval(
00317     const char* dst_xrl_target_name,
00318     const string&   vif_name,
00319     const ResetVifQueryIntervalCB&  cb
00320     );
00321 
00322     typedef XorpCallback3<void, const XrlError&, const uint32_t*, const uint32_t*>::RefPtr GetVifQueryLastMemberIntervalCB;
00332     bool send_get_vif_query_last_member_interval(
00333     const char* dst_xrl_target_name,
00334     const string&   vif_name,
00335     const GetVifQueryLastMemberIntervalCB&  cb
00336     );
00337 
00338     typedef XorpCallback1<void, const XrlError&>::RefPtr SetVifQueryLastMemberIntervalCB;
00353     bool send_set_vif_query_last_member_interval(
00354     const char* dst_xrl_target_name,
00355     const string&   vif_name,
00356     const uint32_t& interval_sec,
00357     const uint32_t& interval_usec,
00358     const SetVifQueryLastMemberIntervalCB&  cb
00359     );
00360 
00361     typedef XorpCallback1<void, const XrlError&>::RefPtr ResetVifQueryLastMemberIntervalCB;
00372     bool send_reset_vif_query_last_member_interval(
00373     const char* dst_xrl_target_name,
00374     const string&   vif_name,
00375     const ResetVifQueryLastMemberIntervalCB&    cb
00376     );
00377 
00378     typedef XorpCallback3<void, const XrlError&, const uint32_t*, const uint32_t*>::RefPtr GetVifQueryResponseIntervalCB;
00388     bool send_get_vif_query_response_interval(
00389     const char* dst_xrl_target_name,
00390     const string&   vif_name,
00391     const GetVifQueryResponseIntervalCB&    cb
00392     );
00393 
00394     typedef XorpCallback1<void, const XrlError&>::RefPtr SetVifQueryResponseIntervalCB;
00409     bool send_set_vif_query_response_interval(
00410     const char* dst_xrl_target_name,
00411     const string&   vif_name,
00412     const uint32_t& interval_sec,
00413     const uint32_t& interval_usec,
00414     const SetVifQueryResponseIntervalCB&    cb
00415     );
00416 
00417     typedef XorpCallback1<void, const XrlError&>::RefPtr ResetVifQueryResponseIntervalCB;
00427     bool send_reset_vif_query_response_interval(
00428     const char* dst_xrl_target_name,
00429     const string&   vif_name,
00430     const ResetVifQueryResponseIntervalCB&  cb
00431     );
00432 
00433     typedef XorpCallback2<void, const XrlError&, const uint32_t*>::RefPtr GetVifRobustCountCB;
00443     bool send_get_vif_robust_count(
00444     const char* dst_xrl_target_name,
00445     const string&   vif_name,
00446     const GetVifRobustCountCB&  cb
00447     );
00448 
00449     typedef XorpCallback1<void, const XrlError&>::RefPtr SetVifRobustCountCB;
00461     bool send_set_vif_robust_count(
00462     const char* dst_xrl_target_name,
00463     const string&   vif_name,
00464     const uint32_t& robust_count,
00465     const SetVifRobustCountCB&  cb
00466     );
00467 
00468     typedef XorpCallback1<void, const XrlError&>::RefPtr ResetVifRobustCountCB;
00478     bool send_reset_vif_robust_count(
00479     const char* dst_xrl_target_name,
00480     const string&   vif_name,
00481     const ResetVifRobustCountCB&    cb
00482     );
00483 
00484     typedef XorpCallback1<void, const XrlError&>::RefPtr LogTraceAllCB;
00494     bool send_log_trace_all(
00495     const char* dst_xrl_target_name,
00496     const bool& enable,
00497     const LogTraceAllCB&    cb
00498     );
00499 
00500     typedef XorpCallback1<void, const XrlError&>::RefPtr AddProtocol4CB;
00522     bool send_add_protocol4(
00523     const char* dst_xrl_target_name,
00524     const string&   xrl_sender_name,
00525     const string&   protocol_name,
00526     const uint32_t& protocol_id,
00527     const string&   vif_name,
00528     const uint32_t& vif_index,
00529     const AddProtocol4CB&   cb
00530     );
00531 
00532     typedef XorpCallback1<void, const XrlError&>::RefPtr AddProtocol6CB;
00533 
00534     bool send_add_protocol6(
00535     const char* dst_xrl_target_name,
00536     const string&   xrl_sender_name,
00537     const string&   protocol_name,
00538     const uint32_t& protocol_id,
00539     const string&   vif_name,
00540     const uint32_t& vif_index,
00541     const AddProtocol6CB&   cb
00542     );
00543 
00544     typedef XorpCallback1<void, const XrlError&>::RefPtr DeleteProtocol4CB;
00545 
00546     bool send_delete_protocol4(
00547     const char* dst_xrl_target_name,
00548     const string&   xrl_sender_name,
00549     const string&   protocol_name,
00550     const uint32_t& protocol_id,
00551     const string&   vif_name,
00552     const uint32_t& vif_index,
00553     const DeleteProtocol4CB&    cb
00554     );
00555 
00556     typedef XorpCallback1<void, const XrlError&>::RefPtr DeleteProtocol6CB;
00557 
00558     bool send_delete_protocol6(
00559     const char* dst_xrl_target_name,
00560     const string&   xrl_sender_name,
00561     const string&   protocol_name,
00562     const uint32_t& protocol_id,
00563     const string&   vif_name,
00564     const uint32_t& vif_index,
00565     const DeleteProtocol6CB&    cb
00566     );
00567 
00568 protected:
00569     XrlSender* _sender;
00570 
00571 private:
00572     static void unmarshall_enable_vif(
00573     const XrlError& e,
00574     XrlArgs*    a,
00575     EnableVifCB     cb
00576     );
00577 
00578     static void unmarshall_start_vif(
00579     const XrlError& e,
00580     XrlArgs*    a,
00581     StartVifCB      cb
00582     );
00583 
00584     static void unmarshall_stop_vif(
00585     const XrlError& e,
00586     XrlArgs*    a,
00587     StopVifCB       cb
00588     );
00589 
00590     static void unmarshall_enable_all_vifs(
00591     const XrlError& e,
00592     XrlArgs*    a,
00593     EnableAllVifsCB     cb
00594     );
00595 
00596     static void unmarshall_start_all_vifs(
00597     const XrlError& e,
00598     XrlArgs*    a,
00599     StartAllVifsCB      cb
00600     );
00601 
00602     static void unmarshall_stop_all_vifs(
00603     const XrlError& e,
00604     XrlArgs*    a,
00605     StopAllVifsCB       cb
00606     );
00607 
00608     static void unmarshall_enable_mld6igmp(
00609     const XrlError& e,
00610     XrlArgs*    a,
00611     EnableMld6IgmpCB        cb
00612     );
00613 
00614     static void unmarshall_start_mld6igmp(
00615     const XrlError& e,
00616     XrlArgs*    a,
00617     StartMld6IgmpCB     cb
00618     );
00619 
00620     static void unmarshall_stop_mld6igmp(
00621     const XrlError& e,
00622     XrlArgs*    a,
00623     StopMld6IgmpCB      cb
00624     );
00625 
00626     static void unmarshall_enable_cli(
00627     const XrlError& e,
00628     XrlArgs*    a,
00629     EnableCliCB     cb
00630     );
00631 
00632     static void unmarshall_start_cli(
00633     const XrlError& e,
00634     XrlArgs*    a,
00635     StartCliCB      cb
00636     );
00637 
00638     static void unmarshall_stop_cli(
00639     const XrlError& e,
00640     XrlArgs*    a,
00641     StopCliCB       cb
00642     );
00643 
00644     static void unmarshall_get_vif_proto_version(
00645     const XrlError& e,
00646     XrlArgs*    a,
00647     GetVifProtoVersionCB        cb
00648     );
00649 
00650     static void unmarshall_set_vif_proto_version(
00651     const XrlError& e,
00652     XrlArgs*    a,
00653     SetVifProtoVersionCB        cb
00654     );
00655 
00656     static void unmarshall_reset_vif_proto_version(
00657     const XrlError& e,
00658     XrlArgs*    a,
00659     ResetVifProtoVersionCB      cb
00660     );
00661 
00662     static void unmarshall_get_vif_ip_router_alert_option_check(
00663     const XrlError& e,
00664     XrlArgs*    a,
00665     GetVifIpRouterAlertOptionCheckCB        cb
00666     );
00667 
00668     static void unmarshall_set_vif_ip_router_alert_option_check(
00669     const XrlError& e,
00670     XrlArgs*    a,
00671     SetVifIpRouterAlertOptionCheckCB        cb
00672     );
00673 
00674     static void unmarshall_reset_vif_ip_router_alert_option_check(
00675     const XrlError& e,
00676     XrlArgs*    a,
00677     ResetVifIpRouterAlertOptionCheckCB      cb
00678     );
00679 
00680     static void unmarshall_get_vif_query_interval(
00681     const XrlError& e,
00682     XrlArgs*    a,
00683     GetVifQueryIntervalCB       cb
00684     );
00685 
00686     static void unmarshall_set_vif_query_interval(
00687     const XrlError& e,
00688     XrlArgs*    a,
00689     SetVifQueryIntervalCB       cb
00690     );
00691 
00692     static void unmarshall_reset_vif_query_interval(
00693     const XrlError& e,
00694     XrlArgs*    a,
00695     ResetVifQueryIntervalCB     cb
00696     );
00697 
00698     static void unmarshall_get_vif_query_last_member_interval(
00699     const XrlError& e,
00700     XrlArgs*    a,
00701     GetVifQueryLastMemberIntervalCB     cb
00702     );
00703 
00704     static void unmarshall_set_vif_query_last_member_interval(
00705     const XrlError& e,
00706     XrlArgs*    a,
00707     SetVifQueryLastMemberIntervalCB     cb
00708     );
00709 
00710     static void unmarshall_reset_vif_query_last_member_interval(
00711     const XrlError& e,
00712     XrlArgs*    a,
00713     ResetVifQueryLastMemberIntervalCB       cb
00714     );
00715 
00716     static void unmarshall_get_vif_query_response_interval(
00717     const XrlError& e,
00718     XrlArgs*    a,
00719     GetVifQueryResponseIntervalCB       cb
00720     );
00721 
00722     static void unmarshall_set_vif_query_response_interval(
00723     const XrlError& e,
00724     XrlArgs*    a,
00725     SetVifQueryResponseIntervalCB       cb
00726     );
00727 
00728     static void unmarshall_reset_vif_query_response_interval(
00729     const XrlError& e,
00730     XrlArgs*    a,
00731     ResetVifQueryResponseIntervalCB     cb
00732     );
00733 
00734     static void unmarshall_get_vif_robust_count(
00735     const XrlError& e,
00736     XrlArgs*    a,
00737     GetVifRobustCountCB     cb
00738     );
00739 
00740     static void unmarshall_set_vif_robust_count(
00741     const XrlError& e,
00742     XrlArgs*    a,
00743     SetVifRobustCountCB     cb
00744     );
00745 
00746     static void unmarshall_reset_vif_robust_count(
00747     const XrlError& e,
00748     XrlArgs*    a,
00749     ResetVifRobustCountCB       cb
00750     );
00751 
00752     static void unmarshall_log_trace_all(
00753     const XrlError& e,
00754     XrlArgs*    a,
00755     LogTraceAllCB       cb
00756     );
00757 
00758     static void unmarshall_add_protocol4(
00759     const XrlError& e,
00760     XrlArgs*    a,
00761     AddProtocol4CB      cb
00762     );
00763 
00764     static void unmarshall_add_protocol6(
00765     const XrlError& e,
00766     XrlArgs*    a,
00767     AddProtocol6CB      cb
00768     );
00769 
00770     static void unmarshall_delete_protocol4(
00771     const XrlError& e,
00772     XrlArgs*    a,
00773     DeleteProtocol4CB       cb
00774     );
00775 
00776     static void unmarshall_delete_protocol6(
00777     const XrlError& e,
00778     XrlArgs*    a,
00779     DeleteProtocol6CB       cb
00780     );
00781 
00782 private:
00783     /* Declare cached Xrl pointers */
00784     auto_ptr<Xrl> ap_xrl_enable_vif;
00785     auto_ptr<Xrl> ap_xrl_start_vif;
00786     auto_ptr<Xrl> ap_xrl_stop_vif;
00787     auto_ptr<Xrl> ap_xrl_enable_all_vifs;
00788     auto_ptr<Xrl> ap_xrl_start_all_vifs;
00789     auto_ptr<Xrl> ap_xrl_stop_all_vifs;
00790     auto_ptr<Xrl> ap_xrl_enable_mld6igmp;
00791     auto_ptr<Xrl> ap_xrl_start_mld6igmp;
00792     auto_ptr<Xrl> ap_xrl_stop_mld6igmp;
00793     auto_ptr<Xrl> ap_xrl_enable_cli;
00794     auto_ptr<Xrl> ap_xrl_start_cli;
00795     auto_ptr<Xrl> ap_xrl_stop_cli;
00796     auto_ptr<Xrl> ap_xrl_get_vif_proto_version;
00797     auto_ptr<Xrl> ap_xrl_set_vif_proto_version;
00798     auto_ptr<Xrl> ap_xrl_reset_vif_proto_version;
00799     auto_ptr<Xrl> ap_xrl_get_vif_ip_router_alert_option_check;
00800     auto_ptr<Xrl> ap_xrl_set_vif_ip_router_alert_option_check;
00801     auto_ptr<Xrl> ap_xrl_reset_vif_ip_router_alert_option_check;
00802     auto_ptr<Xrl> ap_xrl_get_vif_query_interval;
00803     auto_ptr<Xrl> ap_xrl_set_vif_query_interval;
00804     auto_ptr<Xrl> ap_xrl_reset_vif_query_interval;
00805     auto_ptr<Xrl> ap_xrl_get_vif_query_last_member_interval;
00806     auto_ptr<Xrl> ap_xrl_set_vif_query_last_member_interval;
00807     auto_ptr<Xrl> ap_xrl_reset_vif_query_last_member_interval;
00808     auto_ptr<Xrl> ap_xrl_get_vif_query_response_interval;
00809     auto_ptr<Xrl> ap_xrl_set_vif_query_response_interval;
00810     auto_ptr<Xrl> ap_xrl_reset_vif_query_response_interval;
00811     auto_ptr<Xrl> ap_xrl_get_vif_robust_count;
00812     auto_ptr<Xrl> ap_xrl_set_vif_robust_count;
00813     auto_ptr<Xrl> ap_xrl_reset_vif_robust_count;
00814     auto_ptr<Xrl> ap_xrl_log_trace_all;
00815     auto_ptr<Xrl> ap_xrl_add_protocol4;
00816     auto_ptr<Xrl> ap_xrl_add_protocol6;
00817     auto_ptr<Xrl> ap_xrl_delete_protocol4;
00818     auto_ptr<Xrl> ap_xrl_delete_protocol6;
00819 };
00820 
00821 #endif /* __XRL_INTERFACES_MLD6IGMP_XIF_HH__ */
 All Classes Namespaces Functions Variables Typedefs Enumerations