From 46d60e990d57758c1d72ed76efdeee19e55996f1 Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Mon, 15 Nov 2010 16:58:16 +0100 Subject: Make "abrt-handle-crashdump -e BOGUS_EVENT" fail (also fail if asked over dbus) Signed-off-by: Denys Vlasenko --- src/include/abrtlib.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/include') diff --git a/src/include/abrtlib.h b/src/include/abrtlib.h index 4d565644..f069d311 100644 --- a/src/include/abrtlib.h +++ b/src/include/abrtlib.h @@ -227,6 +227,10 @@ static inline struct run_event_state *new_run_event_state() { return (struct run_event_state*)xzalloc(sizeof(struct run_event_state)); } static inline void free_run_event_state(struct run_event_state *state) { free(state); } +/* Returns exitcode of first failed action, or first nonzero return value + * of post_run_callback. If all actions are successful, returns 0. + * If no actions were run for the event, returns -1. + */ int run_event(struct run_event_state *state, const char *dump_dir_name, const char *event); char *list_possible_events(struct dump_dir *dd, const char *dump_dir_name, const char *pfx); -- cgit