LibreOffice Module desktop (master)  1
minidump_upload.cxx
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3  * This file is part of the LibreOffice project.
4  *
5  * This Source Code Form is subject to the terms of the Mozilla Public
6  * License, v. 2.0. If a copy of the MPL was not distributed with this
7  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8  */
9 
10 #include <desktop/minidump.hxx>
11 
12 #include <iostream>
13 #include <string>
14 
15 int main(int argc, char** argv)
16 {
17  if (argc < 2)
18  {
19  std::cerr << "minidump_upload path_to_ini_file" << std::endl;
20  return EXIT_FAILURE;
21  }
22 
23  std::string iniPath(argv[1]);
24  std::string response;
25  if (!crashreport::readConfig(iniPath, &response))
26  return EXIT_FAILURE;
27 
28  std::cout << "Response: " << response << std::endl;
29  return EXIT_SUCCESS;
30 }
31 
32 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
bool readConfig(const std::string &iniPath, std::string *response)
Read+Send, Test and send info from the Dump.ini .
Definition: minidump.cxx:194
int main(int argc, char **argv)