summaryrefslogtreecommitdiffstats
path: root/src/include
diff options
context:
space:
mode:
authorDenys Vlasenko <dvlasenk@redhat.com>2011-02-28 17:16:28 +0100
committerDenys Vlasenko <dvlasenk@redhat.com>2011-02-28 17:16:28 +0100
commit39ce00f37c753ae7830a8f33631de468a0ec8212 (patch)
treeded3799f81e3d63c40b48427a33c5c87f1ab00dd /src/include
parent1bbf4c784aa9fda4d137013ea584874d56d45a33 (diff)
downloadabrt-39ce00f37c753ae7830a8f33631de468a0ec8212.tar.gz
abrt-39ce00f37c753ae7830a8f33631de468a0ec8212.tar.xz
abrt-39ce00f37c753ae7830a8f33631de468a0ec8212.zip
show more useful columns in abrt-gtk; use human-readable time in dir names
For most users, "hostname" is the same for every crash (it is their hostname). Not every problem even has "Application" field ("low on disk space" problem, for example, doesn't), whereas any problem should have "Reason" field. For non-root, it is useful to see which dumps are in /var/spool/abrt (and aren't writable), and which are in $HOME/.abrt/spool. Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
Diffstat (limited to 'src/include')
-rw-r--r--src/include/abrtlib.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/include/abrtlib.h b/src/include/abrtlib.h
index ecae0de7..61731587 100644
--- a/src/include/abrtlib.h
+++ b/src/include/abrtlib.h
@@ -221,6 +221,12 @@ char* get_cmdline(pid_t pid);
#define daemon_is_ok abrt_daemon_is_ok
int daemon_is_ok();
+/* Takes ptr to time_t, or NULL if you want to use current time.
+ * Returns "YYYY-MM-DD-hh:mm:ss" string.
+ */
+#define iso_date_string abrt_iso_date_string
+char *iso_date_string(time_t *pt);
+
#define make_description_bz abrt_make_description_bz
char* make_description_bz(crash_data_t *crash_data);
#define make_description_reproduce_comment abrt_make_description_reproduce_comment