#include <ltt/ltt.h>
+
+enum Direction
+{
+ OUT,
+ IN,
+};
+
+enum EventType
+{
+ TCP,
+ UDP,
+ TYPE_COUNT, // This must be the last field
+};
+
// Stage 1 to 2: These structures are passed from processing to matching modules
// TCP events
typedef struct
uint8_t ack, rst, syn, fin;
} SegmentKey;
-enum Direction
-{
- OUT,
- IN,
-};
-
-enum EventType
-{
- TCP,
- UDP,
- TYPE_COUNT,
-};
-
typedef struct
{
enum Direction direction;
guint ghfSegmentKeyHash(gconstpointer key);
gboolean gefSegmentKeyEqual(gconstpointer a, gconstpointer b);
+// DatagramKey-related functions
+guint ghfDatagramKeyHash(gconstpointer key);
+gboolean gefDatagramKeyEqual(gconstpointer a, gconstpointer b);
+void gdnDestroyDatagramKey(gpointer data);
+
// Event-related functions
void gdnDestroyEvent(gpointer data);
void destroyEvent(Event* const event);