mirror of
https://github.com/zeek/zeek.git
synced 2025-10-04 07:38:19 +00:00
Use type aliases for IntrusivePtr definitions
This commit is contained in:
parent
f6a251cdac
commit
ec9eff0bd5
180 changed files with 2026 additions and 1893 deletions
|
@ -32,6 +32,9 @@ class EncapsulationStack;
|
|||
class Val;
|
||||
class RecordVal;
|
||||
|
||||
using ValPtr = zeek::IntrusivePtr<Val>;
|
||||
using RecordValPtr = zeek::IntrusivePtr<RecordVal>;
|
||||
|
||||
namespace analyzer { class TransportLayerAnalyzer; }
|
||||
|
||||
typedef enum {
|
||||
|
@ -169,7 +172,7 @@ public:
|
|||
/**
|
||||
* Returns the associated "connection" record.
|
||||
*/
|
||||
const zeek::IntrusivePtr<RecordVal>& ConnVal();
|
||||
const RecordValPtr& ConnVal();
|
||||
|
||||
void AppendAddl(const char* str);
|
||||
|
||||
|
@ -235,7 +238,7 @@ public:
|
|||
template <class... Args>
|
||||
std::enable_if_t<
|
||||
std::is_convertible_v<
|
||||
std::tuple_element_t<0, std::tuple<Args...>>, zeek::IntrusivePtr<Val>>>
|
||||
std::tuple_element_t<0, std::tuple<Args...>>, ValPtr>>
|
||||
EnqueueEvent(EventHandlerPtr h, analyzer::Analyzer* analyzer, Args&&... args)
|
||||
{ return EnqueueEvent(h, analyzer, zeek::Args{std::forward<Args>(args)...}); }
|
||||
|
||||
|
@ -355,7 +358,7 @@ protected:
|
|||
u_char resp_l2_addr[Packet::l2_addr_len]; // Link-layer responder address, if available
|
||||
double start_time, last_time;
|
||||
double inactivity_timeout;
|
||||
zeek::IntrusivePtr<RecordVal> conn_val;
|
||||
RecordValPtr conn_val;
|
||||
LoginConn* login_conn; // either nil, or this
|
||||
const EncapsulationStack* encapsulation; // tunnels
|
||||
int suppress_event; // suppress certain events to once per conn.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue