diff options
author | Ulf Lamping <ulf.lamping@web.de> | 2005-04-27 19:43:02 +0000 |
---|---|---|
committer | Ulf Lamping <ulf.lamping@web.de> | 2005-04-27 19:43:02 +0000 |
commit | 4852c618d8f38a20111ab38a45c92a0d98f2713d (patch) | |
tree | 01760ef2326c4be026922aff015e8931d4883a86 /capture.h | |
parent | b979f69c0c2f3b4a70f00730c581cb53b1aa1d37 (diff) | |
download | wireshark-4852c618d8f38a20111ab38a45c92a0d98f2713d.tar.gz wireshark-4852c618d8f38a20111ab38a45c92a0d98f2713d.tar.bz2 wireshark-4852c618d8f38a20111ab38a45c92a0d98f2713d.zip |
add a state member to the capture_opts, and set it according to the capture engine
svn path=/trunk/; revision=14205
Diffstat (limited to 'capture.h')
-rw-r--r-- | capture.h | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -34,6 +34,15 @@ /** Name we give to the child process when doing a "-S" capture. */ #define CHILD_NAME "ethereal-capture" + +/* Current state of capture engine. XXX - differentiate states */ +typedef enum { + CAPTURE_STOPPED, /**< stopped */ + CAPTURE_PREPARING, /**< preparing, but still no response from capture child */ + CAPTURE_RUNNING /**< capture child signalled ok, capture is running now */ +} capture_state; + + /** Capture options coming from user interface */ typedef struct capture_options_tag { /* general */ @@ -86,6 +95,7 @@ typedef struct capture_options_tag { #ifdef _WIN32 int signal_pipe_fd; /**< the pipe to signal the child */ #endif + capture_state state; /**< current state of the capture engine */ } capture_options; |