2 * Routines for building lists of packets that are part of a "conversation"
4 * $Id: conversation.h,v 1.4 2000/01/05 21:48:16 gram Exp $
6 * Ethereal - Network traffic analyzer
7 * By Gerald Combs <gerald@zing.org>
8 * Copyright 1998 Gerald Combs
11 * This program is free software; you can redistribute it and/or
12 * modify it under the terms of the GNU General Public License
13 * as published by the Free Software Foundation; either version 2
14 * of the License, or (at your option) any later version.
16 * This program is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU General Public License for more details.
21 * You should have received a copy of the GNU General Public License
22 * along with this program; if not, write to the Free Software
23 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
26 #ifndef __CONVERSATION_H__
27 #define __CONVERSATION_H__
30 * Data structure representing a conversation.
32 typedef struct conversation {
33 struct conversation *next; /* pointer to next conversation on hash chain */
34 guint32 index; /* unique ID for conversation */
35 void *data; /* data our client can associate with a conversation */
38 extern void conversation_init(void);
39 conversation_t *conversation_new(address *src, address *dst, port_type ptype,
40 guint32 src_port, guint32 dst_port, void *data);
41 conversation_t *find_conversation(address *src, address *dst, port_type ptype,
42 guint32 src_port, guint32 dst_port);
44 #endif /* conversation.h */