From b5fdbe848bc3d088445817aa890d3f2f74ac5b02 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Thu, 26 Apr 2012 22:59:52 +0900 Subject: 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. --- src/tool_sdecls.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/tool_sdecls.h') diff --git a/src/tool_sdecls.h b/src/tool_sdecls.h index 3482538ec..d0b9cc27f 100644 --- a/src/tool_sdecls.h +++ b/src/tool_sdecls.h @@ -101,6 +101,9 @@ struct getout { #define GETOUT_USEREMOTE (1<<2) /* use remote file name locally */ #define GETOUT_UPLOAD (1<<3) /* if set, -T has been used */ #define GETOUT_NOUPLOAD (1<<4) /* if set, -T "" has been used */ +#ifdef HAVE_LIBMETALINK +#define GETOUT_METALINK (1<<5) /* set when Metalink download */ +#endif /* HAVE_LIBMETALINK */ /* -- cgit v1.2.3