diff options
author | Guy Harris <guy@alum.mit.edu> | 2013-05-22 07:44:28 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2013-05-22 07:44:28 +0000 |
commit | 8596d17d7f424f6a68154a537d67f1150758e5f7 (patch) | |
tree | c001df238a88757313991c76047808fe4c451727 /capture_opts.h | |
parent | 54ca6dae29aabe8ad5acb602f5727317dea50340 (diff) |
Pull the capture-session state information out of capture_opts and put
it into a separate capture_session structure. capture_opts should
contain only user-specified option information (and stuff directly
derived from it, such as the "capturing from a pipe" flag).
svn path=/trunk/; revision=49493
Diffstat (limited to 'capture_opts.h')
-rw-r--r-- | capture_opts.h | 21 |
1 files changed, 1 insertions, 20 deletions
diff --git a/capture_opts.h b/capture_opts.h index c380b9d145..7d966bc559 100644 --- a/capture_opts.h +++ b/capture_opts.h @@ -42,13 +42,6 @@ extern "C" { #endif /* __cplusplus */ -/* 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; - #ifdef HAVE_PCAP_REMOTE /* Type of capture source */ typedef enum { @@ -168,7 +161,6 @@ typedef struct interface_options_tag { /** Capture options coming from user interface */ typedef struct capture_options_tag { /* general */ - void *cf; /**< handle to cfile (note: untyped handle) */ GArray *ifaces; /**< array of interfaces. Currently only used by dumpcap. */ GArray *all_ifaces; @@ -209,23 +201,12 @@ typedef struct capture_options_tag { gint32 autostop_duration; /**< Maximum capture duration */ /* internally used (don't touch from outside) */ - int fork_child; /**< If not -1, in parent, process ID of child */ - int fork_child_status; /**< Child exit status */ -#ifdef _WIN32 - int signal_pipe_write_fd; /**< the pipe to signal the child */ -#endif - capture_state state; /**< current state of the capture engine */ gboolean output_to_pipe; /**< save_file is a pipe (named or stdout) */ -#ifndef _WIN32 - uid_t owner; /**< owner of the cfile */ - gid_t group; /**< group of the cfile */ -#endif - gboolean session_started; } capture_options; /* initialize the capture_options with some reasonable values */ extern void -capture_opts_init(capture_options *capture_opts, void *cf); +capture_opts_init(capture_options *capture_opts); /* set a command line option value */ extern int |