diff options
| author | Jiri Moskovcak <jmoskovc@redhat.com> | 2009-02-11 10:44:40 +0100 |
|---|---|---|
| committer | Jiri Moskovcak <jmoskovc@redhat.com> | 2009-02-11 10:44:40 +0100 |
| commit | 356da89a4e2e6e50ceade12f286d104fe1c17eae (patch) | |
| tree | 1fafbfebd44b937eb63906453a285ad5a4b1558a /lib/MiddleWare/MiddleWare.h | |
| parent | 3192f468fa5e7f10c664cca671246f962d1d36d1 (diff) | |
| parent | 08ec10a5f6a2d6159e926cb075ad3eb4964ced50 (diff) | |
| download | abrt-356da89a4e2e6e50ceade12f286d104fe1c17eae.tar.gz abrt-356da89a4e2e6e50ceade12f286d104fe1c17eae.tar.xz abrt-356da89a4e2e6e50ceade12f286d104fe1c17eae.zip | |
Merge branch 'master' of git://git.fedorahosted.org/git/crash-catcher
Diffstat (limited to 'lib/MiddleWare/MiddleWare.h')
| -rw-r--r-- | lib/MiddleWare/MiddleWare.h | 22 |
1 files changed, 19 insertions, 3 deletions
diff --git a/lib/MiddleWare/MiddleWare.h b/lib/MiddleWare/MiddleWare.h index 5fdba84..b9cf8b6 100644 --- a/lib/MiddleWare/MiddleWare.h +++ b/lib/MiddleWare/MiddleWare.h @@ -26,6 +26,8 @@ #include "PluginManager.h" #include <set> +#include <string> + class CMiddleWare { @@ -45,6 +47,18 @@ class CMiddleWare const std::string& pDebugDumpPath); void LoadSettings(const std::string& pPath); public: + + typedef struct SCrashInfo + { + std::string m_sUUID; + std::string m_sUID; + std::string m_sCount; + std::string m_sExecutable; + std::string m_sPackage; + } crash_info_t; + + typedef std::vector<crash_info_t> vector_crash_infos_t; + CMiddleWare(const std::string& pPlugisConfDir, const std::string& pPlugisLibDir, const std::string& pMiddleWareConfFile); @@ -54,10 +68,12 @@ class CMiddleWare void RegisterPlugin(const std::string& pName); void UnRegisterPlugin(const std::string& pName); - void GetReport(const std::string& pUUID); + void GetReport(const std::string& pUUID, const std::string& pUID); int Report(const std::string& pReport); - void SaveDebugDumpToDatabase(const std::string& pDebugDumpPath); - vector_database_rows_t GetDebugDumps(const std::string& pUID); + + int SaveDebugDump(const std::string& pDebugDumpPath, crash_info_t& pCrashInfo); + + vector_crash_infos_t GetCrashInfos(const std::string& pUID); }; #endif /*MIDDLEWARE_H_*/ |
