X-Git-Url: http://git.lttng.org/?a=blobdiff_plain;f=lttv%2Flttv%2Fsync%2Fdata_structures.h;h=62a776a8847ba3f5fc8b81c368493ccbb147918f;hb=f10c27a850e57bf88bf1d4440eb450729782f409;hp=765967ffda75d2e018906fc6b9cd5d3d638c55dd;hpb=9a9ca632e32af79f5f77894ef6e981ac0138102a;p=lttv.git diff --git a/lttv/lttv/sync/data_structures.h b/lttv/lttv/sync/data_structures.h index 765967ff..62a776a8 100644 --- a/lttv/lttv/sync/data_structures.h +++ b/lttv/lttv/sync/data_structures.h @@ -25,6 +25,20 @@ #include + +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 @@ -43,19 +57,6 @@ typedef struct uint8_t ack, rst, syn, fin; } SegmentKey; -enum Direction -{ - OUT, - IN, -}; - -enum EventType -{ - TCP, - UDP, - TYPE_COUNT, -}; - typedef struct { enum Direction direction; @@ -134,6 +135,11 @@ void gdnConnectionKeyDestroy(gpointer data); 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);