xorp

policy_redist6_xif.hh

00001 /*
00002  * obj/i386-pc-mingw32/xrl/interfaces/policy_redist6_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_POLICY_REDIST6_XIF_HH__
00015 #define __XRL_INTERFACES_POLICY_REDIST6_XIF_HH__
00016 
00017 #undef XORP_LIBRARY_NAME
00018 #define XORP_LIBRARY_NAME "XifPolicyRedist6"
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 XrlPolicyRedist6V0p1Client {
00030 public:
00031     XrlPolicyRedist6V0p1Client(XrlSender* s) : _sender(s) {}
00032     virtual ~XrlPolicyRedist6V0p1Client() {}
00033 
00034     typedef XorpCallback1<void, const XrlError&>::RefPtr AddRoute6CB;
00054     bool send_add_route6(
00055     const char* dst_xrl_target_name,
00056     const IPv6Net&  network,
00057     const bool& unicast,
00058     const bool& multicast,
00059     const IPv6& nexthop,
00060     const uint32_t& metric,
00061     const XrlAtomList&  policytags,
00062     const AddRoute6CB&  cb
00063     );
00064 
00065     typedef XorpCallback1<void, const XrlError&>::RefPtr DeleteRoute6CB;
00079     bool send_delete_route6(
00080     const char* dst_xrl_target_name,
00081     const IPv6Net&  network,
00082     const bool& unicast,
00083     const bool& multicast,
00084     const DeleteRoute6CB&   cb
00085     );
00086 
00087 protected:
00088     XrlSender* _sender;
00089 
00090 private:
00091     static void unmarshall_add_route6(
00092     const XrlError& e,
00093     XrlArgs*    a,
00094     AddRoute6CB     cb
00095     );
00096 
00097     static void unmarshall_delete_route6(
00098     const XrlError& e,
00099     XrlArgs*    a,
00100     DeleteRoute6CB      cb
00101     );
00102 
00103 private:
00104     /* Declare cached Xrl pointers */
00105     auto_ptr<Xrl> ap_xrl_add_route6;
00106     auto_ptr<Xrl> ap_xrl_delete_route6;
00107 };
00108 
00109 #endif /* __XRL_INTERFACES_POLICY_REDIST6_XIF_HH__ */
 All Classes Namespaces Functions Variables Typedefs Enumerations