LibreOffice Module ucb (master) 1
Namespaces | Macros | Functions
ftpurl.cxx File Reference
#include <sal/config.h>
#include <sal/log.hxx>
#include <rtl/ustrbuf.hxx>
#include <com/sun/star/ucb/OpenMode.hpp>
#include <string.h>
#include <rtl/uri.hxx>
#include <o3tl/safeint.hxx>
#include "ftpurl.hxx"
#include "ftpcontentprovider.hxx"
#include "ftpcfunc.hxx"
#include "ftpcontainer.hxx"
#include <memory>
Include dependency graph for ftpurl.cxx:

Go to the source code of this file.

Namespaces

namespace  ftp
 Definition of ftpcontentprovider.
 

Macros

#define SET_CONTROL_CONTAINER
 

Functions

int memory_write (void *buffer, size_t size, size_t nmemb, void *stream)
 
static void setCurlUrl (CURL *curl, OUString const &url)
 
static size_t memory_read (void *ptr, size_t size, size_t nmemb, void *stream)
 

Macro Definition Documentation

◆ SET_CONTROL_CONTAINER

#define SET_CONTROL_CONTAINER
Value:
MemoryContainer control; \
(void)curl_easy_setopt(curl, \
CURLOPT_HEADERFUNCTION, \
(void)curl_easy_setopt(curl, \
CURLOPT_WRITEHEADER, \
&control)
int memory_write(void *buffer, size_t size, size_t nmemb, void *stream)
Definition: ftpurl.cxx:102

Definition at line 371 of file ftpurl.cxx.

Function Documentation

◆ memory_read()

static size_t memory_read ( void *  ptr,
size_t  size,
size_t  nmemb,
void *  stream 
)
static

Definition at line 625 of file ftpurl.cxx.

References ftp::CurlInput::read(), size, and stream.

Referenced by ftp::FTPURL::insert().

◆ memory_write()

int memory_write ( void *  buffer,
size_t  size,
size_t  nmemb,
void *  stream 
)

Definition at line 102 of file ftpurl.cxx.

References ftp::MemoryContainer::append(), size, and stream.

Referenced by ftp::FTPURL::list().

◆ setCurlUrl()

static void setCurlUrl ( CURL *  curl,
OUString const &  url 
)
static