// This file was automatically generated by bifcl from /build/tmp/pobj/bro-2.6.4/bro-2.6.4/src/broker/comm.bif (alternative mode).

#if defined(BRO_IN_NETVAR) || ! defined(_build_tmp_pobj_bro_2_6_4_bro_2_6_4_build_src_broker_comm_bif)
#ifndef BRO_IN_NETVAR
#ifndef _build_tmp_pobj_bro_2_6_4_bro_2_6_4_build_src_broker_comm_bif
#define _build_tmp_pobj_bro_2_6_4_bro_2_6_4_build_src_broker_comm_bif
#include "bro-bif.h"
#endif
#endif

namespace Broker { extern EventHandlerPtr status;  }
namespace BifEvent { namespace Broker {  void generate_status(analyzer::Analyzer* analyzer, Val* endpoint, StringVal* msg);  }  } 
namespace Broker { extern EventHandlerPtr peer_added;  }
namespace BifEvent { namespace Broker {  void generate_peer_added(analyzer::Analyzer* analyzer, Val* endpoint, StringVal* msg);  }  } 
namespace Broker { extern EventHandlerPtr peer_removed;  }
namespace BifEvent { namespace Broker {  void generate_peer_removed(analyzer::Analyzer* analyzer, Val* endpoint, StringVal* msg);  }  } 
namespace Broker { extern EventHandlerPtr peer_lost;  }
namespace BifEvent { namespace Broker {  void generate_peer_lost(analyzer::Analyzer* analyzer, Val* endpoint, StringVal* msg);  }  } 
namespace Broker { extern EventHandlerPtr error;  }
namespace BifEvent { namespace Broker {  void generate_error(analyzer::Analyzer* analyzer, Val* code, StringVal* msg);  }  } 
namespace BifEnum { namespace Broker { enum ErrorCode {
	UNSPECIFIED = 1,
	PEER_INCOMPATIBLE = 2,
	PEER_INVALID = 3,
	PEER_UNAVAILABLE = 4,
	PEER_TIMEOUT = 5,
	MASTER_EXISTS = 6,
	NO_SUCH_MASTER = 7,
	NO_SUCH_KEY = 8,
	REQUEST_TIMEOUT = 9,
	TYPE_CLASH = 10,
	INVALID_DATA = 11,
	BACKEND_FAILURE = 12,
	STALE_DATA = 13,
	CAF_ERROR = 100,
}; } }
namespace BifType { namespace Enum{ namespace Broker {  extern EnumType * ErrorCode;  } } }
namespace BifEnum { namespace Broker { enum PeerStatus {
	INITIALIZING,
	CONNECTING,
	CONNECTED,
	PEERED,
	DISCONNECTED,
	RECONNECTING,
}; } }
namespace BifType { namespace Enum{ namespace Broker {  extern EnumType * PeerStatus;  } } }
namespace BifFunc { namespace Broker { extern Val* bro___listen(Frame* frame, val_list*); }  }
namespace BifFunc { namespace Broker { extern Val* bro___peer(Frame* frame, val_list*); }  }
namespace BifFunc { namespace Broker { extern Val* bro___unpeer(Frame* frame, val_list*); }  }
namespace BifFunc { namespace Broker { extern Val* bro___peers(Frame* frame, val_list*); }  }
namespace BifFunc { namespace Broker { extern Val* bro___node_id(Frame* frame, val_list*); }  }

#endif
