Move --fullscreen out of LONGOPT_CAPTURE_COMMON.
It's not a capture option, so it doesn't belong there. Change-Id: I8aa6719a5a8e90c734c7acfc01b1ba2818498de3 Reviewed-on: https://code.wireshark.org/review/18427 Reviewed-by: Guy Harris <guy@alum.mit.edu>
This commit is contained in:
parent
3acf73ec45
commit
cd64e4ece2
@ -50,6 +50,9 @@ extern "C" {
|
|||||||
* component of the entry for the long option, and have a case for that
|
* component of the entry for the long option, and have a case for that
|
||||||
* option in the switch statement.
|
* option in the switch statement.
|
||||||
*
|
*
|
||||||
|
* We also pick values <= 65535, so as to leave values > 65535 for
|
||||||
|
* options specific to a program.
|
||||||
|
*
|
||||||
* NOTE:
|
* NOTE:
|
||||||
* for tshark, we're using a leading - in the optstring to prevent getopt()
|
* for tshark, we're using a leading - in the optstring to prevent getopt()
|
||||||
* from permuting the argv[] entries, in this case, unknown argv[] entries
|
* from permuting the argv[] entries, in this case, unknown argv[] entries
|
||||||
@ -67,7 +70,6 @@ extern "C" {
|
|||||||
#define LONGOPT_DISABLE_PROTOCOL 130
|
#define LONGOPT_DISABLE_PROTOCOL 130
|
||||||
#define LONGOPT_ENABLE_HEURISTIC 131
|
#define LONGOPT_ENABLE_HEURISTIC 131
|
||||||
#define LONGOPT_DISABLE_HEURISTIC 132
|
#define LONGOPT_DISABLE_HEURISTIC 132
|
||||||
#define LONGOPT_FULL_SCREEN 133
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Options for capturing common to all capturing programs.
|
* Options for capturing common to all capturing programs.
|
||||||
@ -110,7 +112,6 @@ extern "C" {
|
|||||||
{"disable-protocol", required_argument, NULL, LONGOPT_DISABLE_PROTOCOL }, \
|
{"disable-protocol", required_argument, NULL, LONGOPT_DISABLE_PROTOCOL }, \
|
||||||
{"enable-heuristic", required_argument, NULL, LONGOPT_ENABLE_HEURISTIC }, \
|
{"enable-heuristic", required_argument, NULL, LONGOPT_ENABLE_HEURISTIC }, \
|
||||||
{"disable-heuristic", required_argument, NULL, LONGOPT_DISABLE_HEURISTIC }, \
|
{"disable-heuristic", required_argument, NULL, LONGOPT_DISABLE_HEURISTIC }, \
|
||||||
{"fullscreen", no_argument, NULL, LONGOPT_FULL_SCREEN },
|
|
||||||
|
|
||||||
#define OPTSTRING_CAPTURE_COMMON \
|
#define OPTSTRING_CAPTURE_COMMON \
|
||||||
"a:" OPTSTRING_A "b:" OPTSTRING_B "c:Df:i:" OPTSTRING_I "Lps:y:"
|
"a:" OPTSTRING_A "b:" OPTSTRING_B "c:Df:i:" OPTSTRING_I "Lps:y:"
|
||||||
|
@ -183,6 +183,17 @@ commandline_print_usage(gboolean for_help_option) {
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* For long options with no corresponding short options, we define values
|
||||||
|
* outside the range of ASCII graphic characters, make that the last
|
||||||
|
* component of the entry for the long option, and have a case for that
|
||||||
|
* option in the switch statement.
|
||||||
|
*
|
||||||
|
* We also pick values > 65535, so as to leave values from 128 to 65535
|
||||||
|
* for capture options.
|
||||||
|
*/
|
||||||
|
#define LONGOPT_FULL_SCREEN 65536
|
||||||
|
|
||||||
#define OPTSTRING OPTSTRING_CAPTURE_COMMON "C:d:g:Hh" "jJ:kK:lm:nN:o:P:r:R:St:u:vw:X:Y:z:"
|
#define OPTSTRING OPTSTRING_CAPTURE_COMMON "C:d:g:Hh" "jJ:kK:lm:nN:o:P:r:R:St:u:vw:X:Y:z:"
|
||||||
static const struct option long_options[] = {
|
static const struct option long_options[] = {
|
||||||
{"help", no_argument, NULL, 'h'},
|
{"help", no_argument, NULL, 'h'},
|
||||||
@ -190,6 +201,7 @@ static const struct option long_options[] = {
|
|||||||
{"read-filter", required_argument, NULL, 'R' },
|
{"read-filter", required_argument, NULL, 'R' },
|
||||||
{"display-filter", required_argument, NULL, 'Y' },
|
{"display-filter", required_argument, NULL, 'Y' },
|
||||||
{"version", no_argument, NULL, 'v'},
|
{"version", no_argument, NULL, 'v'},
|
||||||
|
{"fullscreen", no_argument, NULL, LONGOPT_FULL_SCREEN },
|
||||||
LONGOPT_CAPTURE_COMMON
|
LONGOPT_CAPTURE_COMMON
|
||||||
{0, 0, 0, 0 }
|
{0, 0, 0, 0 }
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user