Ethereal-cvs: [ethereal-cvs] cvs commit: ethereal/gtk capture_dlg.c main.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: Thu, 23 Sep 1999 01:27:38 -0500 (CDT)
guy         1999/09/23 01:27:33 CDT

  Modified files:
    gtk                  capture_dlg.c main.c 
  Log:
  Move the toolkit-independent code to create a temporary capture file,
  and to fork off and run a separate copy of "ethereal" for "-S" and "-F"
  captures or just call "capture()" otherwise, out of "gtk/capture_dlg.c"
  and into a routine in "capture.c".
  
  If the attempt to create said temporary capture file fails, pop up a
  dialog box and don't do the capture.
  
  Have the child capture process send a message upstream after it either
  successfully starts the capture and syncs out the header of the capture
  file, or fails to start the capture; the message indicates whether it
  succeeded or failed, and, if it failed, includes a failure message.
  This:
  
  	avoids the use of a signal, and thus means we don't have to
  	worry about whether to capture the signal, or whether to start
  	or stop capturing depending on whether this particular capture
  	is in sync mode or not;
  
  	lets us pop up the message box for the error in the parent
  	process if we're in sync mode, rather than doing it in the
  	child, which didn't work well.
  
  Add a check button to the Capture/Start dialog box, so that we can
  control, for each capture, whether it's to be done in sync mode or not.
  
  Revision  Changes    Path
  1.3       +28 -85    ethereal/gtk/capture_dlg.c
  1.7       +1 -15     ethereal/gtk/main.c