From 65ae557fd0f94b6ffa088fcc4bbcf62a6499934e Mon Sep 17 00:00:00 2001 From: Zdenek Prikryl Date: Wed, 18 Feb 2009 10:06:54 +0100 Subject: added common types headers --- lib/MiddleWare/CrashTypes.h | 71 ++++++++++++++++++++++++++++++++++++++++ lib/MiddleWare/MiddleWareTypes.h | 13 ++++++++ 2 files changed, 84 insertions(+) create mode 100644 lib/MiddleWare/CrashTypes.h create mode 100644 lib/MiddleWare/MiddleWareTypes.h (limited to 'lib') 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 +#include + +typedef std::map 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 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 +#include +#include +#include + +typedef std::vector vector_string_t; +typedef std::map map_string_string_t; +typedef std::set set_strings_t; + +#endif /* MIDDLEWARETYPES_H_ */ -- cgit