diff options
| author | Denys Vlasenko <dvlasenk@redhat.com> | 2011-04-28 22:02:46 +0200 |
|---|---|---|
| committer | Denys Vlasenko <dvlasenk@redhat.com> | 2011-04-28 22:02:46 +0200 |
| commit | 1912a7c3980713ccc81e9fd2895873e29dc519a2 (patch) | |
| tree | b621e0f468ad43cdf408d18f9bd82cb7e80a4132 /src/include | |
| parent | c6971f6de60e441c8edfe38e192c84a179d173b1 (diff) | |
| download | abrt-1912a7c3980713ccc81e9fd2895873e29dc519a2.tar.gz abrt-1912a7c3980713ccc81e9fd2895873e29dc519a2.tar.xz abrt-1912a7c3980713ccc81e9fd2895873e29dc519a2.zip | |
Logger: output "END:" line to delimit appended reports. closes bz#698458
Also changes Bugzilla and abrt-cli output format.
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
Diffstat (limited to 'src/include')
| -rw-r--r-- | src/include/abrt_problem_data.h | 13 | ||||
| -rw-r--r-- | src/include/abrtlib.h | 10 |
2 files changed, 18 insertions, 5 deletions
diff --git a/src/include/abrt_problem_data.h b/src/include/abrt_problem_data.h index 3ab6679c..dc003944 100644 --- a/src/include/abrt_problem_data.h +++ b/src/include/abrt_problem_data.h @@ -23,7 +23,8 @@ #include "abrt_types.h" // Text bigger than this usually is attached, not added inline -#define CD_TEXT_ATT_SIZE (2*1024) +// was 2k, now bumbed up to 20k: +#define CD_TEXT_ATT_SIZE (20*1024) // Filenames in dump directory: // filled by a hook: @@ -69,11 +70,13 @@ */ #define FILENAME_REPORTED_TO "reported_to" #define FILENAME_EVENT_LOG "event_log" + // Not stored as files, added "on the fly": -#define CD_DUMPDIR "DumpDir" -// "Which events are possible (make sense) on this dump dir?" -// (a string with "\n" terminated event names) -#define CD_EVENTS "Events" +#define CD_DUMPDIR "Directory" +//UNUSED: +//// "Which events are possible (make sense) on this dump dir?" +//// (a string with "\n" terminated event names) +//#define CD_EVENTS "Events" /* FILENAME_EVENT_LOG is trimmed to below LOW_WATERMARK * when it reaches HIGH_WATERMARK size diff --git a/src/include/abrtlib.h b/src/include/abrtlib.h index 19ce7ad9..85bbb289 100644 --- a/src/include/abrtlib.h +++ b/src/include/abrtlib.h @@ -196,6 +196,9 @@ char *run_in_shell_and_save_output(int flags, /* Random utility functions */ +#define is_in_string_list abrt_is_in_string_list +bool is_in_string_list(const char *name, char **v); + /* Frees every element'd data using free(), * then frees list itself using g_list_free(list): */ @@ -238,6 +241,13 @@ int daemon_is_ok(); #define iso_date_string abrt_iso_date_string char *iso_date_string(time_t *pt); +enum { + MAKEDESC_SHOW_FILES = (1 << 0), + MAKEDESC_SHOW_MULTILINE = (1 << 1), + MAKEDESC_SHOW_ONLY_LIST = (1 << 2), +}; +#define make_description abrt_make_description +char *make_description(problem_data_t *problem_data, char **names_to_skip, unsigned max_text_size, unsigned desc_flags); #define make_description_bz abrt_make_description_bz char* make_description_bz(problem_data_t *problem_data); #define make_description_comment abrt_make_description_comment |
