LibreOffice Module desktop (master)  1
Namespaces | Functions | Variables
minidump.cxx File Reference
#include <desktop/minidump.hxx>
#include <map>
#include <memory>
#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

 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

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

Function Documentation

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

Definition at line 68 of file minidump.cxx.

References first(), and stream.

Referenced by uploadContent().

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

Definition at line 57 of file minidump.cxx.

Referenced by uploadContent().

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

Definition at line 22 of file minidump.cxx.

References value.

Referenced by crashreport::readConfig().

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

Definition at line 87 of file minidump.cxx.

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

Referenced by crashreport::readConfig().

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

Definition at line 45 of file minidump.cxx.

Referenced by uploadContent().

Variable Documentation

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

Definition at line 20 of file minidump.cxx.

Referenced by uploadContent().