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




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...


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

Function Documentation

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

Definition at line 67 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 

Definition at line 56 of file minidump.cxx.

Referenced by uploadContent().

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

Definition at line 21 of file minidump.cxx.

References line, and value.

Referenced by crashreport::readConfig().

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

Definition at line 86 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 

Definition at line 44 of file minidump.cxx.

Referenced by uploadContent().

Variable Documentation

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

Definition at line 19 of file minidump.cxx.

Referenced by uploadContent().