summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorZdenek Prikryl <zprikryl@redhat.com>2009-02-12 10:05:38 +0100
committerZdenek Prikryl <zprikryl@redhat.com>2009-02-12 10:05:38 +0100
commitfa69a86d9ffffd444ee8f64bfc794ea97e1a1453 (patch)
tree2b33ee70d02ac6d1a765874599068638bf9a05a2 /lib
parent66bdd03d7892cd95e7806b8c375e88d279dd4034 (diff)
downloadabrt-fa69a86d9ffffd444ee8f64bfc794ea97e1a1453.tar.gz
abrt-fa69a86d9ffffd444ee8f64bfc794ea97e1a1453.tar.xz
abrt-fa69a86d9ffffd444ee8f64bfc794ea97e1a1453.zip
a creation of reports directly from DebugDumpDir is moved to private section because of security reasons
Diffstat (limited to 'lib')
-rw-r--r--lib/MiddleWare/MiddleWare.h7
-rw-r--r--lib/MiddleWare/test.cpp7
2 files changed, 5 insertions, 9 deletions
diff --git a/lib/MiddleWare/MiddleWare.h b/lib/MiddleWare/MiddleWare.h
index 7164d48b..526888ea 100644
--- a/lib/MiddleWare/MiddleWare.h
+++ b/lib/MiddleWare/MiddleWare.h
@@ -55,7 +55,10 @@ class CMiddleWare
void LoadSettings(const std::string& pPath);
- void DebugDump2Report(const std::string& pDebugDumpDir, CReporter::report_t& pReport);
+ void DebugDump2Report(const std::string& pDebugDumpDir,
+ CReporter::report_t& pReport);
+ void CreateReport(const std::string& pDebugDumpDir,
+ crash_report_t& pReport);
public:
@@ -86,8 +89,6 @@ class CMiddleWare
void RegisterPlugin(const std::string& pName);
void UnRegisterPlugin(const std::string& pName);
- void CreateReport(const std::string& pDebugDumpDir,
- crash_report_t& pReport);
void CreateReport(const std::string& pUUID,
const std::string& pUID,
crash_report_t& pReport);
diff --git a/lib/MiddleWare/test.cpp b/lib/MiddleWare/test.cpp
index 1868284a..77b671a9 100644
--- a/lib/MiddleWare/test.cpp
+++ b/lib/MiddleWare/test.cpp
@@ -53,12 +53,7 @@ int main(int argc, char** argv)
info.m_sExecutable << std::endl;
/* Get Report, so user can change data (remove private stuff)
- *
- * If we want to send report immediately after DebugDump was created,
- * we can use:
- * middleWare.CreateReport(debugDumpDir, crashReport);
- * and after that it can be easily reported by:
- * middleWare.Report(crashReport);
+ * If we do not want user interaction, just send data immediately
*/
CMiddleWare::crash_report_t crashReport;
middleWare.CreateReport(info.m_sUUID, info.m_sUID, crashReport);