22 #ifndef CMDLINE_PARSER_PACKAGE 24 #define CMDLINE_PARSER_PACKAGE "janus-pp-rec" 27 #ifndef CMDLINE_PARSER_PACKAGE_NAME 29 #define CMDLINE_PARSER_PACKAGE_NAME "janus-pp-rec" 32 #ifndef CMDLINE_PARSER_VERSION 34 #define CMDLINE_PARSER_VERSION "0.7.4" 129 int override,
int initialize,
int check_required);
206 const char *prog_name);
int postreset_trigger_arg
Number of packets needed to detect a timestamp reset (default=200).
Definition: pp-cmdline.h:51
int initialize
whether to initialize the option structure gengetopt_args_info (default 1)
Definition: pp-cmdline.h:91
Where the command line options are stored.
Definition: pp-cmdline.h:38
int disable_colors_flag
Disable color in the logging (default=off).
Definition: pp-cmdline.h:68
unsigned int parse_given
Whether parse was given.
Definition: pp-cmdline.h:75
const char * json_help
Only print JSON header help description.
Definition: pp-cmdline.h:43
const char * gengetopt_args_info_usage
the usage string of the program
Definition: pp-cmdline.c:30
const char * postreset_trigger_help
Number of packets needed to detect a timestamp reset (default=200) help description.
Definition: pp-cmdline.h:53
unsigned int help_given
Whether help was given.
Definition: pp-cmdline.h:71
int cmdline_parser2(int argc, char **argv, struct gengetopt_args_info *args_info, int override, int initialize, int check_required)
Definition: pp-cmdline.c:343
const char * header_help
Only parse .mjr header help description.
Definition: pp-cmdline.h:45
unsigned int header_given
Whether header was given.
Definition: pp-cmdline.h:74
int cmdline_parser_required(struct gengetopt_args_info *args_info, const char *prog_name)
Definition: pp-cmdline.c:366
unsigned int ignore_first_given
Whether ignore-first was given.
Definition: pp-cmdline.h:78
Configuration files parsing (headers)
int cmdline_parser_dump(FILE *outfile, struct gengetopt_args_info *args_info)
Definition: pp-cmdline.c:237
int videoorient_ext_arg
ID of the video-orientation RTP extension (default=none).
Definition: pp-cmdline.h:60
const char * videoorient_ext_help
ID of the video-orientation RTP extension (default=none) help description.
Definition: pp-cmdline.h:62
unsigned int disable_colors_given
Whether disable-colors was given.
Definition: pp-cmdline.h:83
The additional parameters to pass to parser functions.
Definition: pp-cmdline.h:88
void cmdline_parser_params_init(struct cmdline_parser_params *params)
Definition: pp-cmdline.c:174
char * metadata_arg
Save this metadata string in the target file.
Definition: pp-cmdline.h:48
int json_flag
Only print JSON header (default=off).
Definition: pp-cmdline.h:42
const char * debug_level_help
Debug/logging level (0=disable debugging, 7=maximum debug level; default=4) help description.
Definition: pp-cmdline.h:65
const char * gengetopt_args_info_description
the description string of the program
Definition: pp-cmdline.c:34
const char * audiolevel_ext_help
ID of the audio-levels RTP extension (default=none) help description.
Definition: pp-cmdline.h:59
int cmdline_parser(int argc, char **argv, struct gengetopt_args_info *args_info)
Definition: pp-cmdline.c:321
char * videoorient_ext_orig
ID of the video-orientation RTP extension (default=none) original value given at command line...
Definition: pp-cmdline.h:61
void cmdline_parser_init(struct gengetopt_args_info *args_info)
Definition: pp-cmdline.c:166
int header_flag
Only parse .mjr header (default=off).
Definition: pp-cmdline.h:44
const char * ignore_first_help
Number of first packets to ignore when processing, e.g., in case they're cause of issues (default=0) ...
Definition: pp-cmdline.h:56
int parse_flag
Only parse and re-order packets (default=off).
Definition: pp-cmdline.h:46
const char * gengetopt_args_info_purpose
the purpose string of the program
Definition: pp-cmdline.c:28
struct cmdline_parser_params * cmdline_parser_params_create(void)
Definition: pp-cmdline.c:187
char * metadata_orig
Save this metadata string in the target file original value given at command line.
Definition: pp-cmdline.h:49
const char * parse_help
Only parse and re-order packets help description.
Definition: pp-cmdline.h:47
const char * version_help
Print version and exit help description.
Definition: pp-cmdline.h:41
int cmdline_parser_file_save(const char *filename, struct gengetopt_args_info *args_info)
Definition: pp-cmdline.c:280
unsigned int postreset_trigger_given
Whether postreset-trigger was given.
Definition: pp-cmdline.h:77
int debug_level_arg
Debug/logging level (0=disable debugging, 7=maximum debug level; default=4).
Definition: pp-cmdline.h:63
void cmdline_parser_print_help(void)
Definition: pp-cmdline.c:157
const char * disable_colors_help
Disable color in the logging help description.
Definition: pp-cmdline.h:69
int ignore_first_arg
Number of first packets to ignore when processing, e.g., in case they're cause of issues (default=0)...
Definition: pp-cmdline.h:54
char * ignore_first_orig
Number of first packets to ignore when processing, e.g., in case they're cause of issues (default=0) ...
Definition: pp-cmdline.h:55
const char * help_help
Print help and exit help description.
Definition: pp-cmdline.h:40
const char * debug_timestamps_help
Enable debug/logging timestamps help description.
Definition: pp-cmdline.h:67
unsigned int metadata_given
Whether metadata was given.
Definition: pp-cmdline.h:76
int audiolevel_ext_arg
ID of the audio-levels RTP extension (default=none).
Definition: pp-cmdline.h:57
unsigned int videoorient_ext_given
Whether videoorient-ext was given.
Definition: pp-cmdline.h:80
int print_errors
whether getopt_long should print an error message for a bad option (default 1)
Definition: pp-cmdline.h:94
const char * metadata_help
Save this metadata string in the target file help description.
Definition: pp-cmdline.h:50
unsigned int audiolevel_ext_given
Whether audiolevel-ext was given.
Definition: pp-cmdline.h:79
int check_ambiguity
whether to check for options already specified in the option structure gengetopt_args_info (default 0...
Definition: pp-cmdline.h:93
char * postreset_trigger_orig
Number of packets needed to detect a timestamp reset (default=200) original value given at command li...
Definition: pp-cmdline.h:52
int check_required
whether to check that all required options were provided (default 1)
Definition: pp-cmdline.h:92
char * audiolevel_ext_orig
ID of the audio-levels RTP extension (default=none) original value given at command line...
Definition: pp-cmdline.h:58
unsigned int debug_level_given
Whether debug-level was given.
Definition: pp-cmdline.h:81
char * debug_level_orig
Debug/logging level (0=disable debugging, 7=maximum debug level; default=4) original value given at c...
Definition: pp-cmdline.h:64
unsigned int json_given
Whether json was given.
Definition: pp-cmdline.h:73
int debug_timestamps_flag
Enable debug/logging timestamps (default=off).
Definition: pp-cmdline.h:66
unsigned int debug_timestamps_given
Whether debug-timestamps was given.
Definition: pp-cmdline.h:82
void cmdline_parser_free(struct gengetopt_args_info *args_info)
Definition: pp-cmdline.c:300
const char * gengetopt_args_info_help[]
all the lines making the help output
Definition: pp-cmdline.c:36
void cmdline_parser_print_version(void)
Definition: pp-cmdline.c:131
int cmdline_parser_ext(int argc, char **argv, struct gengetopt_args_info *args_info, struct cmdline_parser_params *params)
Definition: pp-cmdline.c:327
unsigned int version_given
Whether version was given.
Definition: pp-cmdline.h:72