// This file was automatically generated by bifcl from /build/zeek/src/zeek-4.0.3/src/broker/comm.bif (alternative mode).

#if defined(BRO_IN_NETVAR) || ! defined(_build_zeek_src_zeek_4_0_3_build_src_broker_comm_bif)
#ifndef BRO_IN_NETVAR
#ifndef _build_zeek_src_zeek_4_0_3_build_src_broker_comm_bif
#define _build_zeek_src_zeek_4_0_3_build_src_broker_comm_bif
#include "zeek/zeek-bif.h"
#endif
#endif

namespace Broker { extern zeek::EventHandlerPtr status;  }
namespace BifEvent { namespace Broker {  [[deprecated("Remove in 4.1. Use zeek::BifEvent::Broker::enqueue_status.")]] void generate_status(zeek::analyzer::Analyzer* analyzer, zeek::Val* endpoint, zeek::StringVal* msg);  }  } 
namespace zeek { namespace BifEvent { namespace Broker {  void enqueue_status(zeek::analyzer::Analyzer* analyzer, zeek::IntrusivePtr<zeek::Val> endpoint, zeek::IntrusivePtr<zeek::StringVal> msg);  }  }  }
namespace Broker { extern zeek::EventHandlerPtr peer_added;  }
namespace BifEvent { namespace Broker {  [[deprecated("Remove in 4.1. Use zeek::BifEvent::Broker::enqueue_peer_added.")]] void generate_peer_added(zeek::analyzer::Analyzer* analyzer, zeek::Val* endpoint, zeek::StringVal* msg);  }  } 
namespace zeek { namespace BifEvent { namespace Broker {  void enqueue_peer_added(zeek::analyzer::Analyzer* analyzer, zeek::IntrusivePtr<zeek::Val> endpoint, zeek::IntrusivePtr<zeek::StringVal> msg);  }  }  }
namespace Broker { extern zeek::EventHandlerPtr peer_removed;  }
namespace BifEvent { namespace Broker {  [[deprecated("Remove in 4.1. Use zeek::BifEvent::Broker::enqueue_peer_removed.")]] void generate_peer_removed(zeek::analyzer::Analyzer* analyzer, zeek::Val* endpoint, zeek::StringVal* msg);  }  } 
namespace zeek { namespace BifEvent { namespace Broker {  void enqueue_peer_removed(zeek::analyzer::Analyzer* analyzer, zeek::IntrusivePtr<zeek::Val> endpoint, zeek::IntrusivePtr<zeek::StringVal> msg);  }  }  }
namespace Broker { extern zeek::EventHandlerPtr peer_lost;  }
namespace BifEvent { namespace Broker {  [[deprecated("Remove in 4.1. Use zeek::BifEvent::Broker::enqueue_peer_lost.")]] void generate_peer_lost(zeek::analyzer::Analyzer* analyzer, zeek::Val* endpoint, zeek::StringVal* msg);  }  } 
namespace zeek { namespace BifEvent { namespace Broker {  void enqueue_peer_lost(zeek::analyzer::Analyzer* analyzer, zeek::IntrusivePtr<zeek::Val> endpoint, zeek::IntrusivePtr<zeek::StringVal> msg);  }  }  }
namespace Broker { extern zeek::EventHandlerPtr error;  }
namespace BifEvent { namespace Broker {  [[deprecated("Remove in 4.1. Use zeek::BifEvent::Broker::enqueue_error.")]] void generate_error(zeek::analyzer::Analyzer* analyzer, zeek::Val* code, zeek::StringVal* msg);  }  } 
namespace zeek { namespace BifEvent { namespace Broker {  void enqueue_error(zeek::analyzer::Analyzer* analyzer, zeek::IntrusivePtr<zeek::Val> code, zeek::IntrusivePtr<zeek::StringVal> msg);  }  }  }
namespace BifEnum { namespace Broker { enum ErrorCode {
	NO_ERROR = 0,
	UNSPECIFIED = 1,
	PEER_INCOMPATIBLE = 2,
	PEER_INVALID = 3,
	PEER_UNAVAILABLE = 4,
	PEER_DISCONNECT_DURING_HANDSHAKE = 5,
	PEER_TIMEOUT = 6,
	MASTER_EXISTS = 7,
	NO_SUCH_MASTER = 8,
	NO_SUCH_KEY = 9,
	REQUEST_TIMEOUT = 10,
	TYPE_CLASH = 11,
	INVALID_DATA = 12,
	BACKEND_FAILURE = 13,
	STALE_DATA = 14,
	CANNOT_OPEN_FILE = 15,
	CANNOT_WRITE_FILE = 16,
	INVALID_TOPIC_KEY = 17,
	END_OF_FILE = 18,
	INVALID_TAG = 19,
	INVALID_STATUS = 20,
	CAF_ERROR = 100,
}; } }
namespace zeek { namespace BifType { namespace Enum{ namespace Broker {  extern zeek::IntrusivePtr<zeek::EnumType> ErrorCode;  } } }}
namespace BifType { namespace Enum{ namespace Broker {  [[deprecated("Remove in v4.1.  Use zeek::BifType::Enum::Broker::ErrorCode.")]] extern zeek::EnumType * ErrorCode;  } } }
namespace BifEnum { namespace Broker { enum PeerStatus {
	INITIALIZING,
	CONNECTING,
	CONNECTED,
	PEERED,
	DISCONNECTED,
	RECONNECTING,
}; } }
namespace zeek { namespace BifType { namespace Enum{ namespace Broker {  extern zeek::IntrusivePtr<zeek::EnumType> PeerStatus;  } } }}
namespace BifType { namespace Enum{ namespace Broker {  [[deprecated("Remove in v4.1.  Use zeek::BifType::Enum::Broker::PeerStatus.")]] extern zeek::EnumType * PeerStatus;  } } }
namespace zeek { namespace BifFunc { namespace Broker { extern zeek::detail::BifReturnVal __listen_bif(zeek::detail::Frame* frame, const zeek::Args*); }  } }
namespace BifFunc { namespace Broker {  [[deprecated("Remove in v4.1.  Use zeek::BifFunc::Broker::__listen_bif.")]] inline zeek::detail::BifReturnVal bro___listen(zeek::detail::Frame* frame, const zeek::Args* args) { return zeek::BifFunc::Broker::__listen_bif(frame, args); }  }  }
namespace zeek { namespace BifFunc { namespace Broker { extern zeek::detail::BifReturnVal __peer_bif(zeek::detail::Frame* frame, const zeek::Args*); }  } }
namespace BifFunc { namespace Broker {  [[deprecated("Remove in v4.1.  Use zeek::BifFunc::Broker::__peer_bif.")]] inline zeek::detail::BifReturnVal bro___peer(zeek::detail::Frame* frame, const zeek::Args* args) { return zeek::BifFunc::Broker::__peer_bif(frame, args); }  }  }
namespace zeek { namespace BifFunc { namespace Broker { extern zeek::detail::BifReturnVal __unpeer_bif(zeek::detail::Frame* frame, const zeek::Args*); }  } }
namespace BifFunc { namespace Broker {  [[deprecated("Remove in v4.1.  Use zeek::BifFunc::Broker::__unpeer_bif.")]] inline zeek::detail::BifReturnVal bro___unpeer(zeek::detail::Frame* frame, const zeek::Args* args) { return zeek::BifFunc::Broker::__unpeer_bif(frame, args); }  }  }
namespace zeek { namespace BifFunc { namespace Broker { extern zeek::detail::BifReturnVal __peers_bif(zeek::detail::Frame* frame, const zeek::Args*); }  } }
namespace BifFunc { namespace Broker {  [[deprecated("Remove in v4.1.  Use zeek::BifFunc::Broker::__peers_bif.")]] inline zeek::detail::BifReturnVal bro___peers(zeek::detail::Frame* frame, const zeek::Args* args) { return zeek::BifFunc::Broker::__peers_bif(frame, args); }  }  }
namespace zeek { namespace BifFunc { namespace Broker { extern zeek::detail::BifReturnVal __node_id_bif(zeek::detail::Frame* frame, const zeek::Args*); }  } }
namespace BifFunc { namespace Broker {  [[deprecated("Remove in v4.1.  Use zeek::BifFunc::Broker::__node_id_bif.")]] inline zeek::detail::BifReturnVal bro___node_id(zeek::detail::Frame* frame, const zeek::Args* args) { return zeek::BifFunc::Broker::__node_id_bif(frame, args); }  }  }

#endif
