Source: ../../xrl/interfaces/bgp_mib_traps_xif.hh


 
LOGO
 Annotated List  Files  Globals  Hierarchy  Index  Top
/*
 * Copyright (c) 2001-2004 International Computer Science Institute
 * See LICENSE file for licensing, conditions, and warranties on use.
 *
 * DO NOT EDIT THIS FILE - IT IS PROGRAMMATICALLY GENERATED
 *
 * Generated by 'clnt-gen'.
 *
 * $XORP: xorp/xrl/interfaces/bgp_mib_traps_xif.hh,v 1.6 2004/06/10 22:41:58 hodson Exp $
 */

#ifndef __XRL_INTERFACES_BGP_MIB_TRAPS_XIF_HH__
#define __XRL_INTERFACES_BGP_MIB_TRAPS_XIF_HH__

#undef XORP_LIBRARY_NAME
#define XORP_LIBRARY_NAME "XifBgpMibTraps"

#include "libxorp/xlog.h"
#include "libxorp/callback.hh"

#include "libxipc/xrl.hh"
#include "libxipc/xrl_error.hh"
#include "libxipc/xrl_sender.hh"


class XrlBgpMibTrapsV0p1Client {
public:
    XrlBgpMibTrapsV0p1Client(XrlSender* s) : _sender(s) {}
    virtual ~XrlBgpMibTrapsV0p1Client() {}

    typedef XorpCallback1<void, const XrlError&>::RefPtr SendBgpEstablishedTrapCB;
    /**
     *  Send Xrl intended to:
     *
     *  Send bgpEstablished trap
     *
     *  @param tgt_name Xrl Target name
     */
    bool send_send_bgp_established_trap(
	const char*	target_name,
	const string&	bgp_last_error,
	const uint32_t&	bgp_state,
	const SendBgpEstablishedTrapCB&	cb
    );

    typedef XorpCallback1<void, const XrlError&>::RefPtr SendBgpBackwardTransitionTrapCB;
    /**
     *  Send Xrl intended to:
     *
     *  Send bgpBackwardTransition trap
     *
     *  @param tgt_name Xrl Target name
     */
    bool send_send_bgp_backward_transition_trap(
	const char*	target_name,
	const string&	bgp_last_error,
	const uint32_t&	bgp_state,
	const SendBgpBackwardTransitionTrapCB&	cb
    );

protected:
    XrlSender* _sender;

private:
    void unmarshall_send_bgp_established_trap(
	const XrlError&	e,
	XrlArgs*	a,
	SendBgpEstablishedTrapCB		cb
    );

    void unmarshall_send_bgp_backward_transition_trap(
	const XrlError&	e,
	XrlArgs*	a,
	SendBgpBackwardTransitionTrapCB		cb
    );

};

#endif /* __XRL_INTERFACES_BGP_MIB_TRAPS_XIF_HH__ */

Generated by: pavlin on possum.icir.org on Thu Jul 8 23:48:16 2004, using kdoc $.