aboutsummaryrefslogtreecommitdiffstats
path: root/capture.h
diff options
context:
space:
mode:
authorUlf Lamping <ulf.lamping@web.de>2005-04-27 19:43:02 +0000
committerUlf Lamping <ulf.lamping@web.de>2005-04-27 19:43:02 +0000
commit4852c618d8f38a20111ab38a45c92a0d98f2713d (patch)
tree01760ef2326c4be026922aff015e8931d4883a86 /capture.h
parentb979f69c0c2f3b4a70f00730c581cb53b1aa1d37 (diff)
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.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/capture.h b/capture.h
index b903b2e71e..c7e3677f5c 100644
--- a/capture.h
+++ b/capture.h
@@ -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;