|
xorp
|
00001 /* 00002 * obj/i386-pc-mingw32/xrl/interfaces/fib2mrib_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_FIB2MRIB_XIF_HH__ 00015 #define __XRL_INTERFACES_FIB2MRIB_XIF_HH__ 00016 00017 #undef XORP_LIBRARY_NAME 00018 #define XORP_LIBRARY_NAME "XifFib2mrib" 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 XrlFib2mribV0p1Client { 00030 public: 00031 XrlFib2mribV0p1Client(XrlSender* s) : _sender(s) {} 00032 virtual ~XrlFib2mribV0p1Client() {} 00033 00034 typedef XorpCallback1<void, const XrlError&>::RefPtr EnableFib2MribCB; 00044 bool send_enable_fib2mrib( 00045 const char* dst_xrl_target_name, 00046 const bool& enable, 00047 const EnableFib2MribCB& cb 00048 ); 00049 00050 typedef XorpCallback1<void, const XrlError&>::RefPtr StartFib2MribCB; 00051 00052 bool send_start_fib2mrib( 00053 const char* dst_xrl_target_name, 00054 const StartFib2MribCB& cb 00055 ); 00056 00057 typedef XorpCallback1<void, const XrlError&>::RefPtr StopFib2MribCB; 00058 00059 bool send_stop_fib2mrib( 00060 const char* dst_xrl_target_name, 00061 const StopFib2MribCB& cb 00062 ); 00063 00064 typedef XorpCallback1<void, const XrlError&>::RefPtr EnableLogTraceAllCB; 00074 bool send_enable_log_trace_all( 00075 const char* dst_xrl_target_name, 00076 const bool& enable, 00077 const EnableLogTraceAllCB& cb 00078 ); 00079 00080 protected: 00081 XrlSender* _sender; 00082 00083 private: 00084 static void unmarshall_enable_fib2mrib( 00085 const XrlError& e, 00086 XrlArgs* a, 00087 EnableFib2MribCB cb 00088 ); 00089 00090 static void unmarshall_start_fib2mrib( 00091 const XrlError& e, 00092 XrlArgs* a, 00093 StartFib2MribCB cb 00094 ); 00095 00096 static void unmarshall_stop_fib2mrib( 00097 const XrlError& e, 00098 XrlArgs* a, 00099 StopFib2MribCB cb 00100 ); 00101 00102 static void unmarshall_enable_log_trace_all( 00103 const XrlError& e, 00104 XrlArgs* a, 00105 EnableLogTraceAllCB cb 00106 ); 00107 00108 private: 00109 /* Declare cached Xrl pointers */ 00110 auto_ptr<Xrl> ap_xrl_enable_fib2mrib; 00111 auto_ptr<Xrl> ap_xrl_start_fib2mrib; 00112 auto_ptr<Xrl> ap_xrl_stop_fib2mrib; 00113 auto_ptr<Xrl> ap_xrl_enable_log_trace_all; 00114 }; 00115 00116 #endif /* __XRL_INTERFACES_FIB2MRIB_XIF_HH__ */