mirror of
https://github.com/zeek/zeek.git
synced 2025-10-10 02:28:21 +00:00
binpac: Reformat C++ code in Spicy style
This commit is contained in:
parent
716bf016a1
commit
3297de477b
89 changed files with 7887 additions and 9733 deletions
|
@ -1,28 +1,24 @@
|
|||
#ifndef binpac_an_h
|
||||
#define binpac_an_h
|
||||
|
||||
namespace binpac
|
||||
{
|
||||
namespace binpac {
|
||||
|
||||
// TODO: Add the Done() function
|
||||
|
||||
// The interface for a connection analyzer
|
||||
class ConnectionAnalyzer
|
||||
{
|
||||
class ConnectionAnalyzer {
|
||||
public:
|
||||
virtual ~ConnectionAnalyzer() { }
|
||||
virtual void NewData(bool is_orig, const unsigned char* begin_of_data,
|
||||
const unsigned char* end_of_data) = 0;
|
||||
};
|
||||
virtual ~ConnectionAnalyzer() {}
|
||||
virtual void NewData(bool is_orig, const unsigned char* begin_of_data, const unsigned char* end_of_data) = 0;
|
||||
};
|
||||
|
||||
// The interface for a flow analyzer
|
||||
class FlowAnalyzer
|
||||
{
|
||||
class FlowAnalyzer {
|
||||
public:
|
||||
virtual ~FlowAnalyzer() { }
|
||||
virtual void NewData(const unsigned char* begin_of_data, const unsigned char* end_of_data) = 0;
|
||||
};
|
||||
virtual ~FlowAnalyzer() {}
|
||||
virtual void NewData(const unsigned char* begin_of_data, const unsigned char* end_of_data) = 0;
|
||||
};
|
||||
|
||||
} // namespace binpac
|
||||
} // namespace binpac
|
||||
|
||||
#endif // binpac_an_h
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue