diff options
| author | Zdenek Prikryl <zprikryl@redhat.com> | 2009-02-18 10:06:54 +0100 |
|---|---|---|
| committer | Zdenek Prikryl <zprikryl@redhat.com> | 2009-02-18 10:06:54 +0100 |
| commit | 65ae557fd0f94b6ffa088fcc4bbcf62a6499934e (patch) | |
| tree | 8ea71be0d17b7a54b9f7cb27e7183ce8e5b8c3ab | |
| parent | a5fa5b50e0a99afbbfc5fb7ce86f64723de66311 (diff) | |
| download | abrt-65ae557fd0f94b6ffa088fcc4bbcf62a6499934e.tar.gz abrt-65ae557fd0f94b6ffa088fcc4bbcf62a6499934e.tar.xz abrt-65ae557fd0f94b6ffa088fcc4bbcf62a6499934e.zip | |
added common types headers
| -rw-r--r-- | lib/MiddleWare/CrashTypes.h | 71 | ||||
| -rw-r--r-- | lib/MiddleWare/MiddleWareTypes.h | 13 |
2 files changed, 84 insertions, 0 deletions
diff --git a/lib/MiddleWare/CrashTypes.h b/lib/MiddleWare/CrashTypes.h new file mode 100644 index 0000000..3a4031c --- /dev/null +++ b/lib/MiddleWare/CrashTypes.h @@ -0,0 +1,71 @@ +#ifndef CRASHTYPES_H_ +#define CRASHTYPES_H_ + +#include <string> +#include <map> + +typedef std::map<std::string, std::string> map_crash_t; + +typedef struct SCrashInfo +{ + std::string m_sUUID; + std::string m_sUID; + std::string m_sCount; + std::string m_sExecutable; + std::string m_sPackage; + std::string m_sTime; + + const map_crash_t GetMap() + { + map_crash_t mci; + mci["UUID"] = m_sUUID; + mci["UID"] = m_sUID; + mci["Count"] = m_sCount; + mci["Executable"] = m_sExecutable; + mci["Package"] = m_sPackage; + mci["Time"] = m_sTime; + + return mci; + } +} crash_info_t; + +typedef std::vector<crash_info_t> vector_crash_infos_t; + +typedef struct SCrashContex +{ + std::string m_sUUID; + std::string m_sUID; + std::string m_sLanAppPlugin; +} crash_context_t; + + +typedef struct SCrashReport +{ + std::string m_sArchitecture; + std::string m_sKernel; + std::string m_sExecutable; + std::string m_sCmdLine; + std::string m_sPackage; + std::string m_sTextData1; + std::string m_sTextData2; + std::string m_sBinaryData1; + std::string m_sBinaryData2; + + const map_crash_t GetMap() + { + map_crash_t mci; + mci["Architecture"] = m_sArchitecture; + mci["Kernel"] = m_sKernel; + mci["Executable"] = m_sExecutable; + mci["CmdLine"] = m_sCmdLine; + mci["Package"] = m_sPackage; + mci["TextData1"] = m_sTextData1; + mci["TextData2"] = m_sTextData2; + mci["BinaryData1"] = m_sBinaryData1; + mci["BinaryData2"] = m_sBinaryData2; + + return mci; + } +} crash_report_t; + +#endif /* CRASHTYPES_H_ */ diff --git a/lib/MiddleWare/MiddleWareTypes.h b/lib/MiddleWare/MiddleWareTypes.h new file mode 100644 index 0000000..f235056 --- /dev/null +++ b/lib/MiddleWare/MiddleWareTypes.h @@ -0,0 +1,13 @@ +#ifndef MIDDLEWARETYPES_H_ +#define MIDDLEWARETYPES_H_ + +#include <map> +#include <set> +#include <vector> +#include <string> + +typedef std::vector<std::string> vector_string_t; +typedef std::map<std::string, std::string> map_string_string_t; +typedef std::set<std::string> set_strings_t; + +#endif /* MIDDLEWARETYPES_H_ */ |
