diff options
author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2012-04-26 22:59:52 +0900 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2012-05-26 23:07:42 +0200 |
commit | b5fdbe848bc3d088445817aa890d3f2f74ac5b02 (patch) | |
tree | c74203901cba4d4b9916fad127bdfe6778622ee6 /src/tool_cfgable.h | |
parent | efb8471a69e0b5b9fe2296954b4917e294392372 (diff) | |
download | curl-b5fdbe848bc3d088445817aa890d3f2f74ac5b02.tar.gz |
Support Metalink.
This change adds experimental Metalink support to curl.
To enable Metalink support, run configure with --with-libmetalink.
To feed Metalink file to curl, use --metalink option like this:
$ curl -O --metalink foo.metalink
We use libmetalink to parse Metalink files.
Diffstat (limited to 'src/tool_cfgable.h')
-rw-r--r-- | src/tool_cfgable.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/tool_cfgable.h b/src/tool_cfgable.h index bef482282..a221e3792 100644 --- a/src/tool_cfgable.h +++ b/src/tool_cfgable.h @@ -25,6 +25,10 @@ #include "tool_sdecls.h" +#ifdef HAVE_LIBMETALINK +#include "tool_metalink.h" +#endif /* HAVE_LIBMETALINK */ + struct Configurable { CURL *easy; /* once we have one, we keep it here */ bool remote_time; @@ -198,6 +202,13 @@ struct Configurable { bool xattr; /* store metadata in extended attributes */ long gssapi_delegation; bool ssl_allow_beast; /* allow this SSL vulnerability */ +#ifdef HAVE_LIBMETALINK + struct metalinkfile *metalinkfile_list; /* point to the first node */ + struct metalinkfile *metalinkfile_last; /* point to the last/current node */ + + struct metalink *metalink_list; /* point to the first node */ + struct metalink *metalink_last; /* point to the last/current node */ +#endif /* HAVE_LIBMETALINK */ }; /* struct Configurable */ void free_config_fields(struct Configurable *config); |