xorp

mld6igmp_client_xif.hh

00001 /*
00002  * obj/i686-pc-linux-gnu/xrl/interfaces/mld6igmp_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_MLD6IGMP_CLIENT_XIF_HH__
00015 #define __XRL_INTERFACES_MLD6IGMP_CLIENT_XIF_HH__
00016 
00017 #undef XORP_LIBRARY_NAME
00018 #define XORP_LIBRARY_NAME "XifMld6igmpClient"
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 XrlMld6igmpClientV0p1Client {
00030 public:
00031     XrlMld6igmpClientV0p1Client(XrlSender* s) : _sender(s) {}
00032     virtual ~XrlMld6igmpClientV0p1Client() {}
00033 
00034     typedef XorpCallback1<void, const XrlError&>::RefPtr AddMembership4CB;
00052     bool send_add_membership4(
00053     const char* dst_xrl_target_name,
00054     const string&   xrl_sender_name,
00055     const string&   vif_name,
00056     const uint32_t& vif_index,
00057     const IPv4& source,
00058     const IPv4& group,
00059     const AddMembership4CB& cb
00060     );
00061 
00062     typedef XorpCallback1<void, const XrlError&>::RefPtr AddMembership6CB;
00063 
00064     bool send_add_membership6(
00065     const char* dst_xrl_target_name,
00066     const string&   xrl_sender_name,
00067     const string&   vif_name,
00068     const uint32_t& vif_index,
00069     const IPv6& source,
00070     const IPv6& group,
00071     const AddMembership6CB& cb
00072     );
00073 
00074     typedef XorpCallback1<void, const XrlError&>::RefPtr DeleteMembership4CB;
00075 
00076     bool send_delete_membership4(
00077     const char* dst_xrl_target_name,
00078     const string&   xrl_sender_name,
00079     const string&   vif_name,
00080     const uint32_t& vif_index,
00081     const IPv4& source,
00082     const IPv4& group,
00083     const DeleteMembership4CB&  cb
00084     );
00085 
00086     typedef XorpCallback1<void, const XrlError&>::RefPtr DeleteMembership6CB;
00087 
00088     bool send_delete_membership6(
00089     const char* dst_xrl_target_name,
00090     const string&   xrl_sender_name,
00091     const string&   vif_name,
00092     const uint32_t& vif_index,
00093     const IPv6& source,
00094     const IPv6& group,
00095     const DeleteMembership6CB&  cb
00096     );
00097 
00098 protected:
00099     XrlSender* _sender;
00100 
00101 private:
00102     static void unmarshall_add_membership4(
00103     const XrlError& e,
00104     XrlArgs*    a,
00105     AddMembership4CB        cb
00106     );
00107 
00108     static void unmarshall_add_membership6(
00109     const XrlError& e,
00110     XrlArgs*    a,
00111     AddMembership6CB        cb
00112     );
00113 
00114     static void unmarshall_delete_membership4(
00115     const XrlError& e,
00116     XrlArgs*    a,
00117     DeleteMembership4CB     cb
00118     );
00119 
00120     static void unmarshall_delete_membership6(
00121     const XrlError& e,
00122     XrlArgs*    a,
00123     DeleteMembership6CB     cb
00124     );
00125 
00126 private:
00127     /* Declare cached Xrl pointers */
00128     auto_ptr<Xrl> ap_xrl_add_membership4;
00129     auto_ptr<Xrl> ap_xrl_add_membership6;
00130     auto_ptr<Xrl> ap_xrl_delete_membership4;
00131     auto_ptr<Xrl> ap_xrl_delete_membership6;
00132 };
00133 
00134 #endif /* __XRL_INTERFACES_MLD6IGMP_CLIENT_XIF_HH__ */
 All Classes Namespaces Functions Variables Typedefs Enumerations