Set "v120len" regardless of whether "tree" is null or not; we use it
[obnox/wireshark/wip.git] / conversation.h
1 /* conversation.h
2  * Routines for building lists of packets that are part of a "conversation"
3  *
4  * $Id: conversation.h,v 1.3 1999/10/29 01:04:17 guy Exp $
5  *
6  * Ethereal - Network traffic analyzer
7  * By Gerald Combs <gerald@zing.org>
8  * Copyright 1998 Gerald Combs
9  *
10  * 
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.
15  * 
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.
20  * 
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.
24  */
25
26 #ifndef __CONVERSATION_H__
27 #define __CONVERSATION_H__
28
29 /*
30  * Data structure representing a conversation.
31  */
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 */
36 } conversation_t;
37
38 extern void conversation_init(void);
39 conversation_t *conversation_new(address *src, address *dst, port_type ptype,
40     guint16 src_port, guint16 dst_port, void *data);
41 conversation_t *find_conversation(address *src, address *dst, port_type ptype,
42     guint16 src_port, guint16 dst_port);
43
44 #endif /* conversation.h */