summaryrefslogtreecommitdiffstats
path: root/src/include
diff options
context:
space:
mode:
authorDenys Vlasenko <dvlasenk@redhat.com>2011-03-18 13:35:40 +0100
committerDenys Vlasenko <dvlasenk@redhat.com>2011-03-18 13:35:40 +0100
commit95a2b74dc9a4b9de18b8e7e9c28c644bba876778 (patch)
tree52f45b6467ec81d89da25571e31e48a9797c57c2 /src/include
parentcf9dc0c650065cd5cfc55394d9ee68c9d589e15a (diff)
downloadabrt-95a2b74dc9a4b9de18b8e7e9c28c644bba876778.tar.gz
abrt-95a2b74dc9a4b9de18b8e7e9c28c644bba876778.tar.xz
abrt-95a2b74dc9a4b9de18b8e7e9c28c644bba876778.zip
Replace FILENAME_MESSAGE with FILENAME_REPORTED_TO.
This fixes the problem with abrt-cli not showing unreported bugs and abrt-gui not showing "green lamp" for reported bugs. In general, it introduces a way to record reporting results, such as Bugzilla URL, in dump dir. In the future, this enables such functions as "check BZ status". Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
Diffstat (limited to 'src/include')
-rw-r--r--src/include/abrt_crash_data.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/include/abrt_crash_data.h b/src/include/abrt_crash_data.h
index 5a03f397..93fcb1fb 100644
--- a/src/include/abrt_crash_data.h
+++ b/src/include/abrt_crash_data.h
@@ -61,7 +61,13 @@
#define FILENAME_UUID "uuid"
#define FILENAME_INFORMALL "inform_all_users"
#define FILENAME_COUNT "count"
-#define FILENAME_MESSAGE "message"
+/* Multi-line list of places problem was reported.
+ * Recommended line format:
+ * "Reporter: VAR=VAL VAR=VAL"
+ * Use add_reported_to(dd, "line_without_newline"): it adds line
+ * only if it is not already there.
+ */
+#define FILENAME_REPORTED_TO "reported_to"
#define FILENAME_EVENT_LOG "event_log"
// Not stored as files, added "on the fly":
#define CD_DUMPDIR "DumpDir"
@@ -81,6 +87,9 @@ enum {
extern "C" {
#endif
+#define add_reported_to abrt_add_reported_to
+void add_reported_to(struct dump_dir *dd, const char *line);
+
#define log_crash_data abrt_log_crash_data
void log_crash_data(crash_data_t *crash_data, const char *pfx);