LibreOffice Module desktop (master) 1
Namespaces | Functions | Variables
minidump.cxx File Reference
#include <desktop/minidump.hxx>
#include <sal/log.hxx>
#include <map>
#include <fstream>
#include <sstream>
#include <string>
#include <curl/curl.h>
Include dependency graph for minidump.cxx:

Go to the source code of this file.

Namespaces

namespace  crashreport
 

Functions

static std::map< std::string, std::string > readStrings (std::istream &file)
 
static size_t WriteCallback (void const *ptr, size_t size, size_t nmemb, void *userp)
 
static void getProperty (const std::string &key, std::string &value, std::map< std::string, std::string > &parameters)
 
static std::string generate_json (const std::map< std::string, std::string > &parameters)
 
static bool uploadContent (std::map< std::string, std::string > &parameters, std::string &response)
 
bool crashreport::readConfig (const std::string &iniPath, std::string *response)
 Read+Send, Test and send info from the Dump.ini . More...
 

Variables

const char kUserAgent [] = "Breakpad/1.0 (Linux)"
 

Function Documentation

◆ generate_json()

static std::string generate_json ( const std::map< std::string, std::string > &  parameters)
static

Definition at line 73 of file minidump.cxx.

References first, and stream.

Referenced by uploadContent().

◆ getProperty()

static void getProperty ( const std::string &  key,
std::string &  value,
std::map< std::string, std::string > &  parameters 
)
static

Definition at line 62 of file minidump.cxx.

References value.

Referenced by uploadContent().

◆ readStrings()

static std::map< std::string, std::string > readStrings ( std::istream &  file)
static

Definition at line 27 of file minidump.cxx.

References line, and value.

Referenced by crashreport::readConfig().

◆ uploadContent()

static bool uploadContent ( std::map< std::string, std::string > &  parameters,
std::string &  response 
)
static

Definition at line 92 of file minidump.cxx.

References generate_json(), getProperty(), kUserAgent, SAL_WARN_IF, and WriteCallback().

Referenced by crashreport::readConfig().

◆ WriteCallback()

static size_t WriteCallback ( void const *  ptr,
size_t  size,
size_t  nmemb,
void *  userp 
)
static

Definition at line 50 of file minidump.cxx.

References size.

Referenced by uploadContent().

Variable Documentation

◆ kUserAgent

const char kUserAgent[] = "Breakpad/1.0 (Linux)"

Definition at line 25 of file minidump.cxx.

Referenced by uploadContent().