]> sjero.net Git - wget/blobdiff - src/options.h
added option --https-only
[wget] / src / options.h
index 0be66814209254c403ad834c601abec1b85c9181..4460c6c60887594325cfc74dedcd4d8793e2d2b3 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. */
@@ -153,7 +166,7 @@ struct options
   bool timestamping;           /* Whether to use time-stamping. */
 
   bool backup_converted;       /* Do we save pre-converted files as *.orig? */
-  bool backups;                        /* Are numeric backups made? */
+  int backups;                 /* Are numeric backups made? */
 
   char *useragent;             /* User-Agent string, which can be set
                                   to something other than Wget. */
@@ -202,9 +215,9 @@ struct options
   char *ca_directory;          /* CA directory (hash files) */
   char *ca_cert;               /* CA certificate file to use */
 
-
   char *random_file;           /* file with random data to seed the PRNG */
   char *egd_file;              /* file name of the egd daemon socket */
+  bool https_only;             /* whether to follow HTTPS only */
 #endif /* HAVE_SSL */
 
   bool cookies;                        /* whether cookies are used. */
@@ -215,6 +228,9 @@ struct options
 
   char *post_data;             /* POST query string */
   char *post_file_name;                /* File to post */
+  char *method;                 /* HTTP Method to use in Header */
+  char *body_data;              /* HTTP Method Data String */
+  char *body_file;              /* HTTP Method File */
 
   enum {
     restrict_unix,
@@ -266,6 +282,7 @@ struct options
 
   bool show_all_dns_entries; /* Show all the DNS entries when resolving a
                                 name. */
+  bool report_bps;              /*Output bandwidth in bits format*/
 };
 
 extern struct options opt;