xorp

fea_ifmgr_replicator_xif.hh

00001 /*
00002  * obj/i386-pc-mingw32/xrl/interfaces/fea_ifmgr_replicator_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_FEA_IFMGR_REPLICATOR_XIF_HH__
00015 #define __XRL_INTERFACES_FEA_IFMGR_REPLICATOR_XIF_HH__
00016 
00017 #undef XORP_LIBRARY_NAME
00018 #define XORP_LIBRARY_NAME "XifFeaIfmgrReplicator"
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 XrlIfmgrReplicatorV0p1Client {
00030 public:
00031     XrlIfmgrReplicatorV0p1Client(XrlSender* s) : _sender(s) {}
00032     virtual ~XrlIfmgrReplicatorV0p1Client() {}
00033 
00034     typedef XorpCallback1<void, const XrlError&>::RefPtr RegisterIfmgrMirrorCB;
00042     bool send_register_ifmgr_mirror(
00043     const char* dst_xrl_target_name,
00044     const string&   clientname,
00045     const RegisterIfmgrMirrorCB&    cb
00046     );
00047 
00048     typedef XorpCallback1<void, const XrlError&>::RefPtr UnregisterIfmgrMirrorCB;
00056     bool send_unregister_ifmgr_mirror(
00057     const char* dst_xrl_target_name,
00058     const string&   clientname,
00059     const UnregisterIfmgrMirrorCB&  cb
00060     );
00061 
00062 protected:
00063     XrlSender* _sender;
00064 
00065 private:
00066     static void unmarshall_register_ifmgr_mirror(
00067     const XrlError& e,
00068     XrlArgs*    a,
00069     RegisterIfmgrMirrorCB       cb
00070     );
00071 
00072     static void unmarshall_unregister_ifmgr_mirror(
00073     const XrlError& e,
00074     XrlArgs*    a,
00075     UnregisterIfmgrMirrorCB     cb
00076     );
00077 
00078 private:
00079     /* Declare cached Xrl pointers */
00080     auto_ptr<Xrl> ap_xrl_register_ifmgr_mirror;
00081     auto_ptr<Xrl> ap_xrl_unregister_ifmgr_mirror;
00082 };
00083 
00084 #endif /* __XRL_INTERFACES_FEA_IFMGR_REPLICATOR_XIF_HH__ */
 All Classes Namespaces Functions Variables Typedefs Enumerations