Ethereal-cvs: [ethereal-cvs] cvs commit: ethereal ethereal.c file.c file.h capture.c

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Guy Harris <guy@xxxxxxxxxxxx>
Date: Tue, 10 Aug 1999 02:12:59 -0500 (CDT)
guy         1999/08/10 02:12:57 CDT

  Modified files:
    .                    ethereal.c file.c file.h capture.c 
  Log:
  Add the ability to specify a filter to be used when reading the file to
  the "Open File" dialog box (the "Open File" dialog box equivalent of the
  "-R" flag).  Have "load_cap_file()" take the filter expression as an
  argument, and make the global "rfilter" into a member of a
  "capture_file" structure.
  
  When reading a temporary capture file after a live capture, don't apply
  any filter.
  
  Move the code that pops up error boxes on file opens when reading a
  capture file back to "load_cap_file()"; it also pops up error boxes if
  the filter expression can't be parsed.
  
  Don't enable "File/Save" or "File/Save As..." if an attempt to read a
  capture file fails - if there was already an open capture file, it was
  closed by "load_cap_file()", so we no longer have an open file to save.
  
  Revision  Changes    Path
  1.79      +53 -40    ethereal/ethereal.c
  1.61      +56 -44    ethereal/file.c
  1.28      +30 -29    ethereal/file.h
  1.42      +3 -6      ethereal/capture.c