From ab6490398c47842880a96cef88161a535f825aa1 Mon Sep 17 00:00:00 2001 From: Gilbert Ramirez Date: Fri, 13 Aug 1999 23:47:43 +0000 Subject: Moved global memory alloction used in display filters (which was stored in dfilter-grammar.y) to a new struct dfilter. Display filters now have their own struct, rather than simply being GNode's. This allows multiple display filters to exist at once, aiding John McDermott in his work on colorization. svn path=/trunk/; revision=480 --- file.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'file.h') diff --git a/file.h b/file.h index b48f0d2779..c6a0b66355 100644 --- a/file.h +++ b/file.h @@ -1,7 +1,7 @@ /* file.h * Definitions for file structures and routines * - * $Id: file.h,v 1.31 1999/08/11 17:02:27 gram Exp $ + * $Id: file.h,v 1.32 1999/08/13 23:47:42 gram Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs @@ -44,6 +44,10 @@ #endif #endif +#ifndef __DFILTER_H__ +#include "dfilter.h" +#endif + typedef struct bpf_program bpf_prog; typedef struct _capture_file { @@ -65,7 +69,7 @@ typedef struct _capture_file { wtap *wth; /* Wiretap session */ gchar *rfilter; /* Read filter string */ gchar *dfilter; /* Display filter string */ - GNode *dfcode; /* Compiled display filter program */ + dfilter *dfcode; /* Compiled display filter program */ #ifdef HAVE_LIBPCAP gchar *cfilter; /* Capture filter string */ bpf_prog fcode; /* Compiled capture filter program */ -- cgit v1.2.3