From c781b46915c73f8f7b12efddd0357930eb1df8bb Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Tue, 19 Jan 2010 18:08:01 +0100 Subject: move all FILENAME_xxx defines to inc/CrashTypes.h Signed-off-by: Denys Vlasenko --- inc/CrashTypes.h | 56 ++++++++++++++++++++++++++++++++++++++++---------------- 1 file changed, 40 insertions(+), 16 deletions(-) (limited to 'inc') diff --git a/inc/CrashTypes.h b/inc/CrashTypes.h index 4778b707..9daefa93 100644 --- a/inc/CrashTypes.h +++ b/inc/CrashTypes.h @@ -21,22 +21,29 @@ #include "abrt_types.h" -// SYS - system value, should not be displayed -// BIN - binary data -// TXT - text data, can be displayed -#define CD_SYS "s" -#define CD_BIN "b" -#define CD_TXT "t" - -/* Text bigger than this usually is attached, not added inline */ -#define CD_TEXT_ATT_SIZE (2*1024) - -#define CD_ISEDITABLE "y" -#define CD_ISNOTEDITABLE "n" - -#define CD_TYPE (0) -#define CD_EDITABLE (1) -#define CD_CONTENT (2) +// Filenames in dump directory +#define FILENAME_ARCHITECTURE "architecture" +#define FILENAME_KERNEL "kernel" +#define FILENAME_TIME "time" +#define FILENAME_UID "uid" +// uuid _file_ exists for Python analyzer only - remove, follow ccpp's example? +// (ccpp keeps uuid in DB) +#define FILENAME_UUID "uuid" +#define FILENAME_PACKAGE "package" +#define FILENAME_COMPONENT "component" +#define FILENAME_DESCRIPTION "description" +#define FILENAME_ANALYZER "analyzer" +#define FILENAME_RELEASE "release" +#define FILENAME_EXECUTABLE "executable" +#define FILENAME_REASON "reason" +#define FILENAME_COMMENT "comment" +#define FILENAME_REPRODUCE "reproduce" +#define FILENAME_RATING "rating" +#define FILENAME_CMDLINE "cmdline" +#define FILENAME_COREDUMP "coredump" +#define FILENAME_BACKTRACE "backtrace" +#define FILENAME_MEMORYMAP "memorymap" +#define FILENAME_KERNELOOPS "kerneloops" #define CD_UUID "UUID" #define CD_UID "UID" @@ -54,6 +61,23 @@ #define CD_MWUUID "_MWUUID" #define CD_MWDDD "_MWDDD" +// SYS - system value, should not be displayed +// BIN - binary data +// TXT - text data, can be displayed +#define CD_SYS "s" +#define CD_BIN "b" +#define CD_TXT "t" + +/* Text bigger than this usually is attached, not added inline */ +#define CD_TEXT_ATT_SIZE (2*1024) + +#define CD_ISEDITABLE "y" +#define CD_ISNOTEDITABLE "n" + +#define CD_TYPE (0) +#define CD_EDITABLE (1) +#define CD_CONTENT (2) + // currently, vector always has exactly 3 elements -> // typedef map_vector_string_t map_crash_data_t; -- cgit