// See the file "COPYING" in the main distribution directory for copyright. #pragma once #include #include "zeek/IntrusivePtr.h" #include "zeek/Val.h" #include "zeek/analyzer/Analyzer.h" #include "zeek/file_analysis/Analyzer.h" #include "zeek/iosource/Packet.h" #include "zeek/packet_analysis/Analyzer.h" namespace binpac { using ZeekAnalyzer = zeek::analyzer::Analyzer*; using ZeekFileAnalyzer = zeek::file_analysis::Analyzer; using ZeekPacketAnalyzer = zeek::packet_analysis::Analyzer*; using ZeekVal = zeek::Val*; using ZeekPortVal = zeek::PortVal*; using ZeekStringVal = zeek::StringVal*; using ZeekPacket = zeek::Packet; inline zeek::StringValPtr to_stringval(const_bytestring const& str) { return zeek::make_intrusive(str.length(), (const char*)str.begin()); } zeek::StringValPtr utf16_to_utf8_val(zeek::Connection* conn, const bytestring& utf16); } // namespace binpac