Go to the documentation of this file.
22 #ifndef CMDLINE_PARSER_PACKAGE
24 #define CMDLINE_PARSER_PACKAGE "pcap2mjr"
27 #ifndef CMDLINE_PARSER_PACKAGE_NAME
29 #define CMDLINE_PARSER_PACKAGE_NAME "pcap2mjr"
32 #ifndef CMDLINE_PARSER_VERSION
34 #define CMDLINE_PARSER_VERSION "0.9.5"
101 int override,
int initialize,
int check_required);
178 const char *prog_name);
unsigned int help_given
Whether help was given.
Definition: p2m-cmdline.h:51
int cmdline_parser_dump(FILE *outfile, struct gengetopt_args_info *args_info)
Definition: p2m-cmdline.c:209
int cmdline_parser2(int argc, char **argv, struct gengetopt_args_info *args_info, int override, int initialize, int check_required)
Definition: p2m-cmdline.c:299
int cmdline_parser(int argc, char **argv, struct gengetopt_args_info *args_info)
Definition: p2m-cmdline.c:277
char * codec_arg
Codec the recording will contain (e.g., opus, vp8, etc.).
Definition: p2m-cmdline.h:42
char * ssrc_orig
SSRC of the packets in the pcap file to save original value given at command line.
Definition: p2m-cmdline.h:46
struct cmdline_parser_params * cmdline_parser_params_create(void)
Definition: p2m-cmdline.c:163
const char * ssrc_help
SSRC of the packets in the pcap file to save help description.
Definition: p2m-cmdline.h:47
void cmdline_parser_print_help(void)
Definition: p2m-cmdline.c:133
const char * warnings_help
Show warnings for skipped packets (e.g., not RTP or wrong SSRC) help description.
Definition: p2m-cmdline.h:49
const char * gengetopt_args_info_usage
the usage string of the program
Definition: p2m-cmdline.c:30
char * codec_orig
Codec the recording will contain (e.g., opus, vp8, etc.) original value given at command line.
Definition: p2m-cmdline.h:43
const char * codec_help
Codec the recording will contain (e.g., opus, vp8, etc.) help description.
Definition: p2m-cmdline.h:44
void cmdline_parser_print_version(void)
Definition: p2m-cmdline.c:101
unsigned int version_given
Whether version was given.
Definition: p2m-cmdline.h:52
const char * gengetopt_args_info_purpose
the purpose string of the program
Definition: p2m-cmdline.c:28
unsigned int codec_given
Whether codec was given.
Definition: p2m-cmdline.h:53
const char * version_help
Print version and exit help description.
Definition: p2m-cmdline.h:41
const char * gengetopt_args_info_description
the description string of the program
Definition: p2m-cmdline.c:34
int check_ambiguity
whether to check for options already specified in the option structure gengetopt_args_info (default 0...
Definition: p2m-cmdline.h:65
unsigned int warnings_given
Whether warnings was given.
Definition: p2m-cmdline.h:55
void cmdline_parser_params_init(struct cmdline_parser_params *params)
Definition: p2m-cmdline.c:150
int print_errors
whether getopt_long should print an error message for a bad option (default 1)
Definition: p2m-cmdline.h:66
void cmdline_parser_free(struct gengetopt_args_info *args_info)
Definition: p2m-cmdline.c:256
int ssrc_arg
SSRC of the packets in the pcap file to save.
Definition: p2m-cmdline.h:45
int cmdline_parser_required(struct gengetopt_args_info *args_info, const char *prog_name)
Definition: p2m-cmdline.c:322
Where the command line options are stored.
Definition: p2m-cmdline.h:38
Configuration files parsing (headers)
The additional parameters to pass to parser functions.
Definition: p2m-cmdline.h:60
const char * help_help
Print help and exit help description.
Definition: p2m-cmdline.h:40
int initialize
whether to initialize the option structure gengetopt_args_info (default 1)
Definition: p2m-cmdline.h:63
int cmdline_parser_file_save(const char *filename, struct gengetopt_args_info *args_info)
Definition: p2m-cmdline.c:236
int check_required
whether to check that all required options were provided (default 1)
Definition: p2m-cmdline.h:64
int cmdline_parser_ext(int argc, char **argv, struct gengetopt_args_info *args_info, struct cmdline_parser_params *params)
Definition: p2m-cmdline.c:283
const char * gengetopt_args_info_help[]
all the lines making the help output
Definition: p2m-cmdline.c:36
unsigned int ssrc_given
Whether ssrc was given.
Definition: p2m-cmdline.h:54
int warnings_flag
Show warnings for skipped packets (e.g., not RTP or wrong SSRC) (default=off).
Definition: p2m-cmdline.h:48
void cmdline_parser_init(struct gengetopt_args_info *args_info)
Definition: p2m-cmdline.c:142