Ethereal-cvs: [ethereal-cvs] cvs commit: ethereal ethereal.c file.c capture.c file.h
guy 1999/08/14 19:26:14 CDT
Modified files:
. ethereal.c file.c capture.c file.h
Log:
Split "load_cap_file()" into "open_cap_file()" and "read_cap_file()".
The former, which used to be called by "load_cap_file()", now just opens
the file and, if the open succeeds, closes any capture file we
previously had open, reinitializes any protocols that need
reinitialization, and saves information about the new capture file in
the "capture_file" structure to which it was passed a pointer. The
latter reads the file already opened by "read_cap_file()".
For "File/Open", call "open_cap_file()" before dismissing the file
selection box; if it fails, "open_cap_file()" will have popped up a
message box complaining about it - just return, leaving the file
selection box open so the user can, after dismissing the message box,
either try again with a different file name, or dismiss the file
selection box. (Other file selection boxes should be made to work the
same way.) If "open_cap_file()" succeeds, dismiss the file selection
box, and read the capture file in.
Revision Changes Path
1.86 +20 -8 ethereal/ethereal.c
1.68 +58 -48 ethereal/file.c
1.48 +3 -3 ethereal/capture.c
1.33 +2 -2 ethereal/file.h