libzypp 17.31.23
MediaCurl.cc File Reference
#include <iostream>
#include <chrono>
#include <list>
#include <zypp/base/Logger.h>
#include <zypp/ExternalProgram.h>
#include <zypp/base/String.h>
#include <zypp/base/Gettext.h>
#include <zypp-core/parser/Sysconfig>
#include <zypp/media/MediaCurl.h>
#include <zypp-curl/ProxyInfo>
#include <zypp-curl/auth/CurlAuthData>
#include <zypp-media/auth/CredentialManager>
#include <zypp-curl/CurlConfig>
#include <zypp-curl/private/curlhelper_p.h>
#include <zypp/Target.h>
#include <zypp/ZYppFactory.h>
#include <zypp/ZConfig.h>
#include <cstdlib>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/mount.h>
#include <errno.h>
#include <dirent.h>
#include <unistd.h>
Include dependency graph for MediaCurl.cc:

Go to the source code of this file.

Classes

struct  internal::OptionalDownloadProgressReport
 Bottleneck filtering all DownloadProgressReport issued from Media[Muli]Curl. More...
 
struct  internal::ProgressData
 
class  internal::MediaCurlExceptionMayRetryInternaly
 Attempt to work around certain issues by autoretry in MediaCurl::getFileCopy E.g. More...
 

Namespaces

namespace  internal
 
namespace  zypp
 Easy-to use interface to the ZYPP dependency resolver.
 
namespace  zypp::media
 

Macros

#define SET_OPTION(opt, val)
 
#define SET_OPTION_OFFT(opt, val)   SET_OPTION(opt,(curl_off_t)val)
 
#define SET_OPTION_LONG(opt, val)   SET_OPTION(opt,(long)val)
 
#define SET_OPTION_VOID(opt, val)   SET_OPTION(opt,(void*)val)
 

Functions

const char * internal::anonymousIdHeader ()
 
const char * internal::distributionFlavorHeader ()
 
const char * internal::agentString ()
 

Macro Definition Documentation

◆ SET_OPTION

#define SET_OPTION (   opt,
  val 
)
Value:
do { \
ret = curl_easy_setopt ( _curl, opt, val ); \
if ( ret != 0) { \
ZYPP_THROW(MediaCurlSetOptException(_url, _curlError)); \
} \
} while ( false )
Todo:
deprecate SET_OPTION and use the typed versions below.

Definition at line 323 of file MediaCurl.cc.

◆ SET_OPTION_OFFT

#define SET_OPTION_OFFT (   opt,
  val 
)    SET_OPTION(opt,(curl_off_t)val)

Definition at line 330 of file MediaCurl.cc.

◆ SET_OPTION_LONG

#define SET_OPTION_LONG (   opt,
  val 
)    SET_OPTION(opt,(long)val)

Definition at line 331 of file MediaCurl.cc.

◆ SET_OPTION_VOID

#define SET_OPTION_VOID (   opt,
  val 
)    SET_OPTION(opt,(void*)val)

Definition at line 332 of file MediaCurl.cc.