From 764c3a1e4f21c635c565cf5c20c480dbf48d1599 Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Tue, 19 Jan 2010 16:48:54 +0100 Subject: unify "crash data, "crash info" and "crash report" data types. they are the same Signed-off-by: Denys Vlasenko --- doc/DESIGN | 6 +++--- doc/PLUGINS-HOWTO | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'doc') diff --git a/doc/DESIGN b/doc/DESIGN index 8ef25ab..ff950b5 100644 --- a/doc/DESIGN +++ b/doc/DESIGN @@ -84,7 +84,7 @@ if no new dbus calls are arriving to it. The key dbus calls served by abrt-process are: -- GetCrashInfos(): returns a vector_crash_infos_t (vector_map_vector_string_t) +- GetCrashInfos(): returns a vector_map_crash_data_t (vector_map_vector_string_t) of crashes for given uid v[N]["executable"/"uid"/"kernel"/"backtrace"][N] = "contents" [see above the problem with producing this list] @@ -97,8 +97,8 @@ The key dbus calls served by abrt-process are: abrt should be run by root anyway - debuginfo gets installed using pk-debuginfo-install, which cares about privileges itself, so no problem here -- GetJobResult(UUID): returns map_crash_report_t (map_vector_string_t) -- Report(map_crash_report_t (map_vector_string_t)): +- GetJobResult(UUID): returns map_crash_data_t (map_vector_string_t) +- Report(map_crash_data_t (map_vector_string_t)): "Please report this crash": calls Report() of all registered reporter plugins Returns report_status_t (map_vector_string_t) - the status of each call - DeleteDebugDump(UUID): delete corresponding /var/cache/abrt/DIR. Returns bool diff --git a/doc/PLUGINS-HOWTO b/doc/PLUGINS-HOWTO index d846780..a7c0808 100644 --- a/doc/PLUGINS-HOWTO +++ b/doc/PLUGINS-HOWTO @@ -74,8 +74,8 @@ it on some web tool...) You have to override this method: -virtual void Report(const crash_report_t& pCrashReport, - const std::string& pArgs); +virtual void Report(const map_crash_data_t& pCrashData, + const char *pArgs); -It is self-explanatory, that this method takes the report and presents it somewhere to the world. The second argument is a string with arguments specified for the reporter. -- cgit