libzypp  17.28.4
MediaCurl.cc File Reference
#include <iostream>
#include <list>
#include <zypp/base/Logger.h>
#include <zypp/ExternalProgram.h>
#include <zypp/base/String.h>
#include <zypp/base/Gettext.h>
#include <zypp/base/Sysconfig.h>
#include <zypp/media/MediaCurl.h>
#include <zypp/media/ProxyInfo.h>
#include <zypp/media/MediaUserAuth.h>
#include <zypp/media/CredentialManager.h>
#include <zypp/media/CurlConfig.h>
#include <zypp/media/CurlHelper.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.

Namespaces

 zypp
 Easy-to use interface to the ZYPP dependency resolver.
 
 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)
 

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 55 of file MediaCurl.cc.

◆ SET_OPTION_OFFT

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

Definition at line 62 of file MediaCurl.cc.

◆ SET_OPTION_LONG

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

Definition at line 63 of file MediaCurl.cc.

◆ SET_OPTION_VOID

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

Definition at line 64 of file MediaCurl.cc.