diff options
Diffstat (limited to 'src/monkey/gnunet_monkey_action.h')
-rw-r--r-- | src/monkey/gnunet_monkey_action.h | 24 |
1 files changed, 21 insertions, 3 deletions
diff --git a/src/monkey/gnunet_monkey_action.h b/src/monkey/gnunet_monkey_action.h index da8f85396..8430c9f88 100644 --- a/src/monkey/gnunet_monkey_action.h +++ b/src/monkey/gnunet_monkey_action.h | |||
@@ -26,6 +26,8 @@ | |||
26 | #ifndef GNUNET_MONKEY_ACTION_H | 26 | #ifndef GNUNET_MONKEY_ACTION_H |
27 | #define GNUNET_MONKEY_ACTION_H | 27 | #define GNUNET_MONKEY_ACTION_H |
28 | 28 | ||
29 | #include "gdbmi.h" | ||
30 | |||
29 | #ifdef __cplusplus | 31 | #ifdef __cplusplus |
30 | extern "C" | 32 | extern "C" |
31 | { | 33 | { |
@@ -34,10 +36,26 @@ extern "C" | |||
34 | #endif | 36 | #endif |
35 | #endif | 37 | #endif |
36 | 38 | ||
37 | int GNUNET_MONKEY_ACTION_report_file(); | 39 | |
38 | int GNUNET_MONKEY_ACTION_report_email(); | 40 | /** |
41 | * Context for the Action API | ||
42 | */ | ||
43 | struct GNUNET_MONKEY_ACTION_Context | ||
44 | { | ||
45 | const char* binary_name; | ||
46 | int debug_mode; | ||
47 | char* debug_report; | ||
48 | |||
49 | /* gdb debugging attributes */ | ||
50 | mi_stop* gdb_stop_reason; | ||
51 | mi_frames* gdb_frames; | ||
52 | }; | ||
53 | |||
54 | int GNUNET_MONKEY_ACTION_report_file(struct GNUNET_MONKEY_ACTION_Context* cntxt, const char* dumpFileName); | ||
55 | int GNUNET_MONKEY_ACTION_report_email(struct GNUNET_MONKEY_ACTION_Context* cntxt); | ||
39 | int GNUNET_MONKEY_ACTION_rerun_with_valgrind(); | 56 | int GNUNET_MONKEY_ACTION_rerun_with_valgrind(); |
40 | int GNUNET_MONKEY_ACTION_rerun_with_gdb(); | 57 | int GNUNET_MONKEY_ACTION_rerun_with_gdb(struct GNUNET_MONKEY_ACTION_Context* cntxt); |
58 | int GNUNET_MONKEY_ACTION_format_report(struct GNUNET_MONKEY_ACTION_Context* cntxt); | ||
41 | int GNUNET_MONKEY_ACTION_check_bug_redundancy(); | 59 | int GNUNET_MONKEY_ACTION_check_bug_redundancy(); |
42 | 60 | ||
43 | 61 | ||