2015-11-25 23:48:20 +01:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
|
|
|
/*
|
|
|
|
* This file is part of the LibreOffice project.
|
|
|
|
*
|
|
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
*/
|
|
|
|
|
2016-06-03 12:37:18 +02:00
|
|
|
#include <desktop/minidump.hxx>
|
2015-11-25 23:48:20 +01:00
|
|
|
|
2016-06-03 12:37:18 +02:00
|
|
|
#include <iostream>
|
2016-06-08 12:14:30 +02:00
|
|
|
#include <string>
|
2015-11-25 23:48:20 +01:00
|
|
|
|
2016-06-02 19:15:47 +02:00
|
|
|
int main(int argc, char** argv)
|
2015-11-25 23:48:20 +01:00
|
|
|
{
|
|
|
|
if (argc < 2)
|
|
|
|
{
|
|
|
|
std::cerr << "minidump_upload path_to_ini_file" << std::endl;
|
|
|
|
return EXIT_FAILURE;
|
|
|
|
}
|
|
|
|
|
2016-06-02 19:15:47 +02:00
|
|
|
std::string iniPath(argv[1]);
|
2016-06-03 13:26:46 +02:00
|
|
|
std::string response;
|
2016-06-08 12:14:30 +02:00
|
|
|
if (!crashreport::readConfig(iniPath, response))
|
2015-11-25 23:48:20 +01:00
|
|
|
return EXIT_FAILURE;
|
|
|
|
|
2016-06-03 13:26:46 +02:00
|
|
|
std::cout << "Response: " << response << std::endl;
|
2015-11-25 23:48:20 +01:00
|
|
|
return EXIT_SUCCESS;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|