]> sjero.net Git - wget/blobdiff - src/options.h
Rename --bits to --report-bps.
[wget] / src / options.h
index 1f429906dcdc8378653f3b6de262d6c0753484a7..44e0a703c0b55e60f2c447579f983512e5070510 100644 (file)
@@ -74,6 +74,19 @@ struct options
   bool ignore_case;            /* Whether to ignore case when
                                   matching dirs and files */
 
+  char *acceptregex_s;         /* Patterns to accept (a regex string). */
+  char *rejectregex_s;         /* Patterns to reject (a regex string). */
+  void *acceptregex;           /* Patterns to accept (a regex struct). */
+  void *rejectregex;           /* Patterns to reject (a regex struct). */
+  enum {
+#ifdef HAVE_LIBPCRE
+    regex_type_pcre,
+#endif
+    regex_type_posix
+  } regex_type;   /* The regex library. */
+  void *(*regex_compile_fun)(const char *);  /* Function to compile a regex. */
+  bool (*regex_match_fun)(const void *, const char *);  /* Function to match a string to a regex. */
+
   char **domains;              /* See host.c */
   char **exclude_domains;
   bool dns_cache;              /* whether we cache DNS lookups. */
@@ -266,7 +279,7 @@ struct options
 
   bool show_all_dns_entries; /* Show all the DNS entries when resolving a
                                 name. */
-  bool bits_fmt;              /*Output bandwidth in bits format*/
+  bool report_bps;              /*Output bandwidth in bits format*/
 };
 
 extern struct options opt;